Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rexgen compiled and installed but... #5

Open
Pyr3x opened this issue Jul 17, 2014 · 5 comments
Open

rexgen compiled and installed but... #5

Pyr3x opened this issue Jul 17, 2014 · 5 comments
Assignees

Comments

@Pyr3x
Copy link

Pyr3x commented Jul 17, 2014

I am getting this when trying to run rexgen:

rexgen: error while loading shared libraries: librexgen.so.1.1: cannot open shared object file: No such file or directory

The file exist so why is it complaining?

@janstarke
Copy link
Owner

Have you tried to to update your loader cache? please try to run a ldconfig
after install...

Kind regards, Jan

2014-07-17 18:42 GMT+02:00 Pyr3x [email protected]:

I am getting this when trying to run rexgen:

rexgen: error while loading shared libraries: librexgen.so.1.1: cannot
open shared object file: No such file or directory

The file exist so why is it complaining?


Reply to this email directly or view it on GitHub
#5.

@janstarke janstarke self-assigned this Feb 16, 2015
@janstarke
Copy link
Owner

I added a notification to run ldconfig after "make install"...

@capsicumw
Copy link

capsicumw commented Aug 19, 2017

I know this is old but I had just had this issue on a Manjaro Linux build, finally found a solution(seems more like a workaround) and figured it could help others. Simply running ldconfig did not work.
$locate librexgen.so
it is probably in /usr/local/lib/ but run locate just to be sure
then read files /etc/ld.so.conf and /etc/ld.so.conf.d/*
If none of the files contain the librexgen.so directory you should add it, just make a new file in /etc/ld.so.conf.d/ with the directory path:
$sudo nano /etc/ld.so.conf.d/libc.conf

# libc default configuration
/usr/local/lib

This file was in my Ubuntu machine(where RexGen worked) but not my Manjaro machine.
After creating the entry run $ldconfig to activate it.
End of fix--------------------
Comment from peanut gallery
Now I say it seems like a workaround only because I came across this note from IBM that indicates LD_LIBRARY_PATH is a fall back when the path given in the program header is incorrect.
https://www.ibm.com/support/knowledgecenter/en/SSYKE2_8.0.0/com.ibm.java.lnx.80.doc/user/setlpath.html
And this article that discourages builds that rely on $LD_LIBRARY_PATH http://xahlee.info/UnixResource_dir/_/ldpath.html

@janstarke
Copy link
Owner

Thx for this comment. I'll take a look if there are some best practices when deploying open source software on differently configured systems.

@janstarke janstarke reopened this Dec 17, 2017
@Cxarli
Copy link

Cxarli commented May 29, 2018

I was able to fix this by doing

sudo ln /usr/local/lib/librexgen.so.2.0 /usr/lib/librexgen.so.2.0
sudo ln /usr/local/lib/librexgen.so.2.0.8 /usr/lib/librexgen.so.2.0.8

In case it's relevant, I'm using Antergos (Arch-based)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants