Linux open failed: No such file or directory error


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Linux open failed: No such file or directory error
# 1  
Old 10-25-2018
Linux open failed: No such file or directory error

Hi, The below commands works fine on serverB

Code:
. /etc/profile;
cd /export/home/user2/utils/plugin/
./runme.sh

However, when i run the same commands from serverA it fails

Code:
[user1@serverA]$ ssh -q user2@serverB ". /etc/profile;  cd /export/home/user2/utils/plugin; ./runme.sh"

Output Error:
Quote:
ld.so.1: Test.exe: fatal: libFPCore32.so: open failed: No such file or directory
./runme.sh: line 3: 24770 Killed /export/home/user2/utils/plugin/Test.exe
Please find the below information help debug the issue.

Code:
[user2@serverB]$ uname -a
SunOS serverB 5.10 Generic_150400-62 sun4u sparc SUNW,SPARC-Enterprise

Code:
[user1@serverA]$ uname -a
Linux serverA 2.6.18-434.el5 #1 SMP Thu Aug 23 15:28:29 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux

[user2@serverB]$ more /export/home/user2/utils/plugin/runme.sh
Code:
#!/bin/bash
source /etc/profile
/export/home/user2/utils/plugin/Test.exe

Code:
[user2@serverB]$ file /export/home/user2/utils/plugin/Test.exe
/export/home/user2/utils/plugin/Test.exe:      ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped, no debugging information available


Last edited by mohtashims; 10-25-2018 at 08:26 AM..
# 2  
Old 10-25-2018
How do you expect to run SPARC binary on linux system ?

You will have to recompile the 'Test.exe' from source on linux system.

Regards
Peasant
# 3  
Old 10-25-2018
(No, this is just another way to run it on SPARC serverB.)
Check with
Code:
ldd /export/home/user2/utils/plugin/Test.exe

where the shared libraries are located.
You need to tweak LD_LIBRARY_PATH before you can run the /export/home/user2/utils/plugin/Test.exe.
Maybe you do this in your ~/.profile or ~/.bashrc_profile?
# 4  
Old 10-25-2018
Quote:
Originally Posted by MadeInGermany
(No, this is just another way to run it on SPARC serverB.)
Check with
Code:
ldd /export/home/user2/utils/plugin/Test.exe

where the shared libraries are located.
You need to tweak LD_LIBRARY_PATH before you can run the /export/home/user2/utils/plugin/Test.exe.
Maybe you do this in your ~/.profile or ~/.bashrc_profile?
I'm sorry as i could not understand the solution proposed.

If you look at the error it says
Quote:
fatal: libFPCore32.so: open failed: No such file or directory
"libFPCore32.so" is present on serverB(solaris) @ /opt/product/bin/libFPCore32.so

Can't find "libFPCore32.so" on ServerA(linux). I m also not sure where where the shared Libraries are location on ServerB
Code:
[user1@serverA]$ env | grep LD_LIBRARY_PATH
LD_LIBRARY_PATH=/usr/lib/client64/lib:/opt/python/lib

on ServerB the shared Libraries are here:
Code:
[user2@serverB]$ env | grep LD_LIBRARY_PATH
LD_LIBRARY_PATH=/opt/product/bin:/opt/shared/dfc:/opt/shared/java/1.6.0_27/jre/lib/sparc/client:/opt/shared/java/1.6.0_27/jre/lib/sparc:/opt/ora/client32//lib:/opt/Centera_SDK/lib/64:

I guess you are asking me to make these changes.

1. Change runme.sh on serverB from
/export/home/user2/utils/plugin/Test.exe to ldd /export/home/user2/utils/plugin/Test.exe

2. on ServerA modify the .profile and add the correct export LD_LIBRARY_PATH
(Note: I m however not sure where the LD_LIBRARY_PATH [shared library path] is )

Please let me know if there anything more i need to do apart from the above 2 points?
# 5  
Old 10-25-2018
This problems seems straight forward to solve.

This file is required on server A when you remotely execute on server A from server B. Did I understand this correctly?

Code:
libFPCore32.so

So, if the file is found on server A when executing on server A, but when executing on server A from server B , the file is not found.

This seems to tell it all.

Your remote login (remote command) environment is different when you remotely login (remove command) than when you execute on the server.

To check this, run something like env on server A logged directly into server A.

Then run the same command (in this case env) using your ssh remote access command.

You may find the results are not the same; if I understand your issue correctly.
# 6  
Old 10-25-2018
Quote:
Originally Posted by Neo
This problems seems straight forward to solve.

This file is required on server A when you remotely execute on server A from server B. Did I understand this correctly?

Code:
libFPCore32.so

No. Thats not the correct understanding.
I am able to execute successfully on ServerB.

The problem is executing on ServerB from ServerA using ssh -q

libFPCore32.so is found on ServerB and not on ServerA.
# 7  
Old 10-25-2018
OK.

But the issue is still the same regardless of the direction (server A v. server B).

It's a path / environment issue isn't it??
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to find Error: rpmdb open failed on list of servers

Hello all, I have a task to patch red hat servers and some servers have a corrupted rpm database and return the error: Error: rpmdb open failed I know how to fix this when it occurs. What I'm hoping to do is scan a list of servers by IP and report back which server have this error. ... (6 Replies)
Discussion started by: greavette
6 Replies

2. Shell Programming and Scripting

Rsync Error: rsync: link_stat failed: No such file or directory (2)

I wish to copy all the files & folder under /web/Transfer_Files/data/ on mymac1 (Linux) to remote server mybank.intra.com (Solaris 10) /tmp/ location I am using Ansible tool synchronize module which triggers the unix rsync command as below:rsync --delay-updates -F --compress --archive --rsh=ssh... (2 Replies)
Discussion started by: mohtashims
2 Replies

3. UNIX for Beginners Questions & Answers

Rdesktop - ERROR: Failed to open keymap en-us

I just updated my rdesktop to 1.8.3 from source ( on Slackware 11 ) and had troubles with arrow keys/page up/page down not working. I see this on the console: ERROR: Failed to open keymap en-us The fix is a permission change. I initially looked at /usr/share/rdesktop/keymaps and everything... (1 Reply)
Discussion started by: agentrnge
1 Replies

4. Solaris

./curl -V showing fatal: libldap.so.5: open failed: No such file or directory

Hi Guys, I am facing this Error bash-2.03$ ./curl -V ld.so.1: curl: fatal: libldap.so.5: open failed: No such file or directory Killed bash-2.03$ while executing ./curl -V in /opt/sfw/bin directory. I am using Sun Solaris 10. which package upgrage can give me this missing... (9 Replies)
Discussion started by: manalisharmabe
9 Replies

5. 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

6. UNIX for Dummies Questions & Answers

NDM: Source file open failed. Error= 2

Hi, I have try to ndm to one server to another server. but i am getting this error. what is this error? are files not in source folder? Source file open failed. Error= 2 Regards, Balamurgan (1 Reply)
Discussion started by: krbala1985
1 Replies

7. Solaris

Error- ld.so.1: expr: fatal: libgmp.so.3: open failed:No such file or directory

Hi Friends I have a compiler(Sun Forte,I believe) running in my Solaris 9 box. since y'day my development team is finding this error when they compile: ld.so.1: expr: fatal: libgmp.so.3: open failed: No such file or directory I ran a search for this file and found it in one of my file... (2 Replies)
Discussion started by: Hari_Ganesh
2 Replies

8. Solaris

Error:: libm.so.2:open failed

Hi, I am working with solaris 9 and I want to install perforce on that,so I downloaded the p4v.bin file and try to install it by the command ./p4v after that it is giving the error--- ld.so.1: ./p4v.bin: fatal: libm.so.2: open failed: No such file or directory Killed I am not... (3 Replies)
Discussion started by: smartgupta
3 Replies

9. UNIX and Linux Applications

svn diff failed (no such file or directory)

I'm on ubuntu fiesty using svn as version control and gvim as my IDE. i like to review changes to files before checking them in. at some point in my life i used " svn diff {path}/{filename} " this now returns Index: {path}/{file}... (5 Replies)
Discussion started by: manic
5 Replies

10. Shell Programming and Scripting

Failed to open output file Error

Hi guys, I Have written a script,In that it will call another file which contains the sql quaries. while wxecuting that I am getting the below exception 01/16|06:28:06:16800: Operating System Error|Failed to open output file Can anybody help me about this,,Its urgent (0 Replies)
Discussion started by: Anji
0 Replies
Login or Register to Ask a Question