libRmath.so: cannot open shared object file: No such file or directory


 
Thread Tools Search this Thread
Top Forums Programming libRmath.so: cannot open shared object file: No such file or directory
# 1  
Old 02-25-2009
libRmath.so: cannot open shared object file: No such file or directory

% locate Rmath
/m/backup/backup/lib/R/include/Rmath.h
/usr/lib/R/include/Rmath.h
% gcc -g -o stand stand.c -I/usr/lib/R/include/ -lRmath -lm
% ./stand
./stand: error while loading shared libraries: libRmath.so: cannot open shared object file: No such file or directory


What's the trouble and how to remove it ?

Regards
# 2  
Old 02-25-2009
The trouble is much like it says -- it can't find libRmath.so. It usually searches in /lib/ and /usr/lib, can you find it on your system?
# 3  
Old 02-26-2009
It is found in /usr/lib/, compiled but can not run

% gcc -g -o stand stand.c -I/usr/lib/ -lRmath -lm
% ./stand
./stand: error while loading shared libraries: libRmath.so: cannot open shared object file: No such file or directory

Is there some trick in '-I/usr/lib/' ?
# 4  
Old 02-26-2009
Check whether your LD_LIBRARY_PATH variable is correctly set.
# 5  
Old 02-28-2009
Is there any solution else? I am advised to avoid LD_LIBRARY_PATH. Can other methods be available?

Thanks
# 6  
Old 02-28-2009
LD_LIBRARY_PATH is a security risk when set to directories that can be easily modified, but I don't see harm in setting it to /usr/lib/. I'm more curious whether LD_LIBRARY_PATH even works; if it still doesn't load, the library may be corrupted or incompatible for some reason. You could also try running /sbin/ldconfig as root in case that library's not cached yet for some reason.
# 7  
Old 02-28-2009
LD_LIBRARY_PATH can work. But it is useful to remind that the library may be corrupted or incompatible
Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Cannot open shared object file: No such file or directory

Hi, While running tcpdump command on my Fedora 16 machine I am get shared library issue. # tcpdump tcpdump: error while loading shared libraries: libcrypto.so.6: cannot open shared object file: No such file or directory # which tcpdump /usr/software/sbin/tcpdump I have tried... (3 Replies)
Discussion started by: muzaffar.k
3 Replies

2. UNIX for Dummies Questions & Answers

Cannot open shared object: when starting nrpe

Got this error when starting nrpe Starting nagios-nrpe: nagios-nrpe/usr/sbin/nrpe: error while loading shared libraries: libssl.so.0.9.8: Pls advise ---------- Post updated at 04:05 PM ---------- Previous update was at 04:05 PM ---------- os is Debian lenny ---------- Post updated... (1 Reply)
Discussion started by: lhareigh890
1 Replies

3. Shell Programming and Scripting

Awk: cannot open file (No such file or directory)

Hello folks! I am new to Shell and awk scripting. This is my shell script that receives a string as an input from the user from the stdin. #!bin/sh printf "Enter your query\n" read query cmd=`echo $query | cut -f 1 -d " "` input_file=`echo $query | cut -f 2 -d " "` printf $input_file... (10 Replies)
Discussion started by: radiohead_
10 Replies

4. Shell Programming and Scripting

Cannot open [No such file or directory]

I am seeking help on one script that I created to celan up database audit files. The error returned is $./clean_audit.sh: /opt/oracle/logs/audit_clean.log: cannot open The same script is working on other 2 or 3 servers. But not working on other 4 servers. All servers are Oracle Linux. Here is... (21 Replies)
Discussion started by: duke0001
21 Replies

5. Shell Programming and Scripting

fatal: cannot open file `TNAME' for reading (No such file or directory)

Hi, I am running this command through a shell script and getting the error mentioned in the subject line: testing.awk -f x.txt TNAME My testing.awk file contains something like ++++++++++++++++++ #!/usr/bin/awk -f BEGIN{ TAB_NAME="INSERT_ONE_" ARGV ; } if ( $1=="JAM_ONE" &&... (1 Reply)
Discussion started by: kunwar
1 Replies

6. Red Hat

shared object

Hi, I would like to create a shared object ( .so). This shared object 1. uses the functions from a library. 2. Also it should be able to use the global variable in an app To achieve this what should I do ? 1) To use the functions in the library should I give the -ld option while... (1 Reply)
Discussion started by: rvan
1 Replies

7. Red Hat

libodbc.so.1: cannot open shared object file: No such file or directory

We are trying to install third party software on this unix server... Here is the error message we are getting... error while loading shared libraries: libodbc.so.1: cannot open shared object file: No such file or directory It seems like odbc driver is not installed... >rpm -q unixODBC... (1 Reply)
Discussion started by: govindts
1 Replies

8. UNIX for Advanced & Expert Users

how to open a last modified file in a directory

how to directly open a last modified file in a directory? Please help (5 Replies)
Discussion started by: apsprabhu
5 Replies

9. UNIX for Dummies Questions & Answers

copy file from UNIX to shared directory

Hi, I want to copy a file from unix machine to a shared windows directory. i tried using the ftp command but i was able to transfer the file only to my local directory. Is there any way we can transfer/copy the files from unix to windows shared directory.......... Please help. Thanks (5 Replies)
Discussion started by: sireesha15
5 Replies

10. Linux

Shared Object File

Hi All, I created the share object file using gcc -shared -fpic mypp.cpp -o myp.so but, pls tell me how to link this .so file to my client program. Thanks (0 Replies)
Discussion started by: sarwan
0 Replies
Login or Register to Ask a Question