Closed shivanshu-semwal closed 3 years ago
Yeah it seems that my wild editing broke the master
branch as well. Well, feeling risky and merging unstable which has that fix. Try the fix and have fun
It's another error now,
[WARN] xavaFindAndCheckFile at src/shared/io.c:170 - The current system does not support XDG_CONFIG_HOME.
There is a high likelyhood that something may be broken
at /home/antihero/Software/source/xava/build/libxava-shared.so(xavaFindAndCheckFile+0x521) [0x7fb24d6dac51]
at ./xava(+0x4253) [0x5614d59c6253]
at ./xava(+0x26d7) [0x5614d59c46d7]
at /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7fb24d3740b3]
at ./xava(+0x2dee) [0x5614d59c4dee]
[WARN] xavaFindAndCheckFile at src/shared/io.c:320 - File '/home/antihero/.config/xava/config' does not exist! Trying to make a new one...
at /home/antihero/Software/source/xava/build/libxava-shared.so(xavaFindAndCheckFile+0x3f4) [0x7fb24d6dab24]
at ./xava(+0x4253) [0x5614d59c6253]
at ./xava(+0x26d7) [0x5614d59c46d7]
at /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7fb24d3740b3]
at ./xava(+0x2dee) [0x5614d59c4dee]
[ERROR] xavaFindAndCheckFile at src/shared/io.c:411 - Could not open '/usr/local/share/xava/config.example' for reading!
at /home/antihero/Software/source/xava/build/libxava-shared.so(xavaFindAndCheckFile+0x3b2) [0x7fb24d6daae2]
at /home/antihero/Software/source/xava/build/libxava-shared.so(xavaFindAndCheckFile+0x43a) [0x7fb24d6dab6a]
at ./xava(+0x4253) [0x5614d59c6253]
at ./xava(+0x26d7) [0x5614d59c46d7]
at /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7fb24d3740b3]
at ./xava(+0x2dee) [0x5614d59c4dee]
[ERROR] xavaFindAndCheckFile at src/shared/io.c:330 - Could not find default config file! Bailing out...
at /home/antihero/Software/source/xava/build/libxava-shared.so(xavaFindAndCheckFile+0x64e) [0x7fb24d6dad7e]
at ./xava(+0x4253) [0x5614d59c6253]
at ./xava(+0x26d7) [0x5614d59c46d7]
at /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7fb24d3740b3]
at ./xava(+0x2dee) [0x5614d59c4dee]
[ERROR] load_config at src/config.c:174 - Failed to create default config file!
at ./xava(+0x4284) [0x5614d59c6284]
at ./xava(+0x26d7) [0x5614d59c46d7]
at /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7fb24d3740b3]
at ./xava(+0x2dee) [0x5614d59c4dee]
I did sudo make install
then I got another error,
xava: error while loading shared libraries: libxava-shared.so: cannot open shared object file: No such file or directory
So xava
is running from the build
directory, I copied the example config. But the installed xava
is not running.
oh boy, WHY UBUNTU of all distros is giving me this much trouble
Have to investigate further it seems
It gives some warning on starting, maybe this is related.
Yeah, that shouldn't occur. Are you running in a special environment (like some custom built thing)?
No, no virtual environment.
As a workaround, I'd suggest you run the local version of ./xava
from the build directory and seeing what it says.
oh wait, you already are
So I think I may create a soft link of build one to the bin one.
I tried bash
shell with it still give that error,
Also, I can bet my butt Ubuntu is not loading libraries from /usr/local/lib
(which is a distro problem)
Try rebuilding xava with -CMAKE_INSTALL_PREFIX=/usr
in the CMake args.
So I think I may create a soft link of build one to the bin one.
Don't do that
I did this,
cmake .. -DCMAKE_BUILD_TYPE=Release -CMAKE_INSTALL_PREFIX=/usr
I get this error at end,
-- iniparser not found on system, building from source.
Submodule 'lib/iniparser' (https://github.com/ndevilla/iniparser) registered for path '../lib/iniparser'
Cloning into '/home/antihero/Software/xava/lib/iniparser'...
Submodule path '../lib/iniparser': checked out '7b68537ac11fa62e923fd26aa87e206dc93a9a55'
-- Configuring incomplete, errors occurred!
See also "/home/antihero/Software/xava/build/CMakeFiles/CMakeOutput.log".
Am I running wrong command??
Show the entire log, and attach the suggested logfile. You're doing fine, the CMake script isn't.
oh wait, it's
-DCMAKE_INSTALL_PREFIX=/usr
apologies
Yes that fixed it,
oh boy, WHY UBUNTU of all distros is giving me this much trouble
You can make separate install instructions (int the README.md
), for each distro.
Thanks for helping me. 🙂
Here is what is did
Here is where it fails