Hi. I have successfully compiled the libcsdbg library on a Raspberry Pi 2 under jessie with gcc and -std=c++11 specified.
Compiles fine with a test program but on running, after loading symbol tables, it exits with the message [x] [6404, 0x76ff4210 (anon)] file '/usr/local/etc/keywords.dict' does not exist
It does exist - I can open and list (or edit, if I wished) the file.
What am I doing wrong, please?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think that what you may be missing is root privilege while compiling and installation. If you don't use a root shell use sudo and a sudoer shell. This is of course mandatory if you want to use the default prefix /usr/local. Either way you need to visit the libcsdbg main page (there is a link at sourceforge page) and carefully study the section about compilation, installation and usage. By the way the file that can't be installed is part of the syntax highlighting mechanism so another approach may be to disable this feature in the makefile. This is of course not the best way to proceed as it robs you from a very important feature
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"If you install as a simple user (not root) use of sudo is essential if you want to keep the default prefix (/usr/local). Installing in another prefix may not need root privilege, but the dynamic loader configuration file (ld.so.conf) will not be updated if sudo is not used"
so the proper way to do things is by invocation of:
sudo ./build
in a clean system or
sudo ./build -c -u -s -d
if you want to clean, uninstall, skip parrallel make and rebuild docs
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "Old (resolved)" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
Hi. I have successfully compiled the libcsdbg library on a Raspberry Pi 2 under jessie with gcc and -std=c++11 specified.
Compiles fine with a test program but on running, after loading symbol tables, it exits with the message
[x] [6404, 0x76ff4210 (anon)] file '/usr/local/etc/keywords.dict' does not exist
It does exist - I can open and list (or edit, if I wished) the file.
What am I doing wrong, please?
View and moderate all "Old (resolved)" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
Hello
I think that what you may be missing is root privilege while compiling and installation. If you don't use a root shell use sudo and a sudoer shell. This is of course mandatory if you want to use the default prefix /usr/local. Either way you need to visit the libcsdbg main page (there is a link at sourceforge page) and carefully study the section about compilation, installation and usage. By the way the file that can't be installed is part of the syntax highlighting mechanism so another approach may be to disable this feature in the makefile. This is of course not the best way to proceed as it robs you from a very important feature
Please visit http://libcsdbg.sourceforge.net/#sec3_1
I quote:
"If you install as a simple user (not root) use of sudo is essential if you want to keep the default prefix (/usr/local). Installing in another prefix may not need root privilege, but the dynamic loader configuration file (ld.so.conf) will not be updated if sudo is not used"
so the proper way to do things is by invocation of:
sudo ./build
in a clean system or
sudo ./build -c -u -s -d
if you want to clean, uninstall, skip parrallel make and rebuild docs
Please, also, to make sure things are installed as they should can you send me an email with the results of
ls -la /usr/local/etc
It was a bug, it got fixed. It will be shipped in version 1.2
Last edit: Tasos Parisinos 2019-05-25