libucb.s0.1: open failed...


 
Thread Tools Search this Thread
Operating Systems Solaris libucb.s0.1: open failed...
# 1  
Old 01-24-2010
libucb.so.1: open failed...

Hi all.
I try to start an application, but libucb.so1 is missing.
Code:
# appl23
# appl23ld.so.1: appl23: fatal: libucb.so1: open failed: No such file or directory
killed
#
# ldd appl23
        libXm.so.3 =>    /usr/lib/libXm.so.3
        libMrm.so.3 =>   /usr/lib/libMrm.so.3
        libXt.so.4 =>    /usr/lib/libXt.so.4
        libucb.so.1 =>   (file not found)
        libX11.so.4 =>   /usr/lib/libX11.so.4
        libthread.so.1 =>        /usr/lib/libthread.so.1
        libposix4.so.1 =>        /usr/lib/libposix4.so.1
        libXpm.so.4.0 =>         (file not found)
        libm.so.1 =>     /usr/lib/libm.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libXi.so.5 =>    /usr/lib/libXi.so.5
        libc.so.1 =>     /usr/lib/libc.so.1
        libSM.so.6 =>    /usr/openwin/lib/libSM.so.6
        libICE.so.6 =>   /usr/openwin/lib/libICE.so.6
        libXext.so.0 =>  /usr/openwin/lib/libXext.so.0
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libaio.so.1 =>   /usr/lib/libaio.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1
#
# find /usr -name libucb.so.1
/usr/ucblib/libucb.so.1
/usr/ucblib/sparcv9/libucb.so.1
#

Here's my .login file

Code:
vi .login
# Erasing LD_LIBRARY_PATH
setenv LD_LIBRARY_PATH

# Important Paths set
#setenv LD_LIBRARY_PATH     /usr/ucblib:$LD_LIBRARY_PATH

# @(#)local.login 1.5     98/10/03 SMI
stty -istrip
# setenv TERM `tset -Q -`

#
# if possible, start the windows system.  Give user a chance to bail out
#
if ( "`tty`" == "/dev/console" ) then

        if ( "$TERM" == "sun" || "$TERM" == "sun-color" || "$TERM" == "AT386" )
then
        endif   logoutINHOME/bin# logout after leaving windows systemeol-C to interrupt)"

endif

After adding LD_LIBRARY_PATH
Code:
Starting OpenWindows in 2 seconds (type Control-C to interrupt)

Fatal server error:
failed to initialize core devices
giving up.
/usr/openwin/bin/xinit:  Connection refused (errno 146):  unable to connect to X server
/usr/openwin/bin/xinit:  No such process (errno 3):  Server error.
Killed

XXXXXXX console login:

I changed the path /usr/ucblib:$LD_LIBRARY_PATH to /usr/lib:$LD_LIBRARY_PATH - the Openwindows run OK thereafter. Smilie

What is wrong? Smilie
Thanks.

Last edited by wolfgang; 01-24-2010 at 11:58 AM..
# 2  
Old 01-24-2010
So add both library paths to your LD_LIBRARY_PATH:
Code:
LD_LIBRARY_PATH=/usr/lib:/usr/ucblib:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH

You would normally want /usr/dt/lib and /usr/openwin/lib in your LD_LIBRARY_PATH also.
# 3  
Old 01-24-2010
Code:
vi .login

# Erasing LD_LIBRARY_PATH &

setenv LD_LIBRARY_PATH


# Important Paths set

setenv LD_LIBRARY_PATH     /usr/ucblib:$LD_LIBRARY_PATH

# Openwindows

setenv LD_LIBRARY_PATH    /usr/openwin/lib:$LD_LIBRARY_PATH


I tried many of variants.
But when I include the path /usr/ucblib exactly - OpenWindows doesn't run OK (e.g. start cmdtool window without csh % prompt etc.).

Last edited by wolfgang; 01-25-2010 at 08:50 PM..
# 4  
Old 01-25-2010
Setting LD_LIBRARY_PATH globally is a poor practice and leads to the issues you are experiencing. You need to either fix appl23 by recompiling it with providing the correct options or, if you have no access to the developement environment, set LD_LIBRARY_PATH just for that command:
Code:
env LD_LIBRARY_PATH=/usr/ucblib appl123

# 5  
Old 01-25-2010
I do just the same Solaris 2.6 simply, but my box is running Solaris 8 02/04.

now, follow Jilliagre advice:

Code:
# setenv LD_LIBRARY_PATH
# setenv LD_LIBRARY_PATH   /usr/ucblib:$LD_LIBRARY_PATH appl23
setenv: Too many arguments
#

# 6  
Old 01-25-2010
That wasn't my advice. Please read closer the command I suggested.
# 7  
Old 01-25-2010
Am I missing something? Just create a symbolic link in /usr/lib for the missing libraries. I've done this before and it worked fine. I wouldn't mess with the LD_LIBRARY_PATH
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Linux open failed: No such file or directory error

Hi, The below commands works fine on serverB . /etc/profile; cd /export/home/user2/utils/plugin/ ./runme.shHowever, when i run the same commands from serverA it fails $ ssh -q user2@serverB ". /etc/profile; cd /export/home/user2/utils/plugin; ./runme.sh"Output Error: Please find the below... (8 Replies)
Discussion started by: mohtashims
8 Replies

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

3. Solaris

Sendmai l: libssl.so.0.9.7: open failed

Hey for some reason I think I deleted a critical file for sendmail. I was looking the log file on /var/log/cron for cron, and the file isn't there and I found out the reason why is because I'm missing libssl.so.0.9.7. Im running Solaris 11. I checked smtp and got the following: #svcs -xv... (3 Replies)
Discussion started by: picolin
3 Replies

4. Red Hat

rpmdb open failed

Hi, # yum --skip-broken -y update rpmdb: Thread/process 6657/3078387392 failed: Thread died in Berkeley DB library error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db3 - (-30974) error: cannot open... (3 Replies)
Discussion started by: sef alislam
3 Replies

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

6. UNIX for Dummies Questions & Answers

Rdesktop failed to open keymap common#015

Hi everybody... I have installed qrdesktop(is a tool similar to rdesktop used to access remote desktop) on Ubuntu 8.10. when i am accessing the remote desktop some of the keyboard keys are not working on remote desktop like up arrow ,down arrow, left, right, delete etc. the output of tail... (5 Replies)
Discussion started by: lokeshsingla
5 Replies

7. Solaris

Solaris10..Open boot diagnostic failed

Hi all, when am rebooting the server (SF v890) we are facing "open boot diagnostic failed". Thanks in Adv. (5 Replies)
Discussion started by: arjunreddy3
5 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. Solaris

libCstd.so.1: open failed

Morning all, I have a problem with a Sun workstation which is running Solaris 8. When I attempt to open an application, the executable fails with this message : "fatal: libcstd.so.1: open failed: No such file or directory" It was suggested to me that I need to add these patches to fix the... (4 Replies)
Discussion started by: AndyD
4 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