LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 10-23-2005, 07:58 PM   #1
anuode
Member
 
Registered: Nov 2004
Location: china
Distribution: Mandrake 10.1 Official
Posts: 37

Rep: Reputation: 15
how to get those unfound lib files?


when i run the program /opt/csw/bin/gxine,I get many errors:
Code:
bash-3.00# /opt/csw/bin/gxine 
ld.so.1: /opt/csw/bin/gxine: ÖÂÃüµÄ: libintl.so.2: ´ò¿ªÊ§°Ü: ÎÞ´ËÎļþ»òĿ¼
±»É±µô     (in english:fatal error,not found libintl.so.2,kill the process)
more problems:
Code:
bash-3.00# ldd /opt/csw/bin/gxine 
        libxine.so.1 =>  /opt/csw/lib/libxine.so.1
        libintl.so.2 =>  (ÎļþûÓз¢ÏÖ)      (in english:not found the file)
        libc.so.1 =>     /lib/libc.so.1
        libfreetype.so.6 =>      (ÎļþûÓз¢ÏÖ)       (in english:not found the file)
        librt.so.1 =>    /lib/librt.so.1
        libz.so.1 =>     /usr/lib/libz.so.1
        libpthread.so.1 =>       /lib/libpthread.so.1
        libiconv.so.2 =>         (ÎļþûÓз¢ÏÖ)              (in english:not found the file)
        libgtk-1.2.so.0 =>       (ÎļþûÓз¢ÏÖ)               (in english:not found the file)
        libgdk-1.2.so.0 =>       (ÎļþûÓз¢ÏÖ)               (in english:not found the file)
        libgmodule-1.2.so.0 =>   (ÎļþûÓз¢ÏÖ)           (in english:not found the file)
        libglib-1.2.so.0 =>      (ÎļþûÓз¢ÏÖ)                   (in english:not found the file)
        libdl.so.1 =>    /lib/libdl.so.1
        libXi.so.5 =>    /usr/lib/libXi.so.5
        libXext.so.0 =>  /usr/lib/libXext.so.0
        libX11.so.4 =>   /usr/lib/libX11.so.4
        libsocket.so.1 =>        /lib/libsocket.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        libm.so.1 =>     /lib/libm.so.1
        libgthread-1.2.so.0 =>   (ÎļþûÓз¢ÏÖ)              (in english:not found the file)
        libthread.so.1 =>        /lib/libthread.so.1
        libintl.so.3 =>  (ÎļþûÓз¢ÏÖ)                           (in english:not found the file)
        libiconv.so.2 =>         (ÎļþûÓз¢ÏÖ)                 (in english:not found the file)
        libfreetype.so.6 =>      (ÎļþûÓз¢ÏÖ)                  (in english:not found the file)
        libaio.so.1 =>   /lib/libaio.so.1
        libmd5.so.1 =>   /lib/libmd5.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libscf.so.1 =>   /lib/libscf.so.1
        libdoor.so.1 =>  /lib/libdoor.so.1
        libuutil.so.1 =>         /lib/libuutil.so.1
        libm.so.2 =>     /lib/libm.so.2
but before I installed gxine I had installed the libxine package!
how can I get those lib files?thanks!
 
Old 10-23-2005, 08:31 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
First, you can have the error messages printed in english by prefixing any command with LC_ALL=C, eg.
Code:
LC_ALL=C ldd /opt/csw/bin/gxine
For your problem, try updating the database and gxine:
Code:
pkg-get -U
pkg-get -u gxine
With doing that, I have no linked libraries issues, and this is expected, as pkg-get is automatically fixing any dependancy:
Code:
ldd /opt/csw/bin/gxine
        libxine.so.1 =>  /opt/csw/lib/libxine.so.1
        libintl.so.2 =>  /opt/csw/lib/libintl.so.2
        libc.so.1 =>     /lib/libc.so.1
        libfreetype.so.6 =>      /opt/csw/lib/libfreetype.so.6
        librt.so.1 =>    /lib/librt.so.1
        libz.so.1 =>     /opt/csw/lib/libz.so.1
        libpthread.so.1 =>       /lib/libpthread.so.1
        libiconv.so.2 =>         /opt/csw/lib/libiconv.so.2
        libgtk-1.2.so.0 =>       /opt/csw/lib/libgtk-1.2.so.0
        libgdk-1.2.so.0 =>       /opt/csw/lib/libgdk-1.2.so.0
        libgmodule-1.2.so.0 =>   /opt/csw/lib/libgmodule-1.2.so.0
        libglib-1.2.so.0 =>      /opt/csw/lib/libglib-1.2.so.0
        libdl.so.1 =>    /lib/libdl.so.1
        libXi.so.5 =>    /usr/lib/libXi.so.5
        libXext.so.0 =>  /usr/lib/libXext.so.0
        libX11.so.4 =>   /usr/lib/libX11.so.4
        libsocket.so.1 =>        /lib/libsocket.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        libm.so.1 =>     /lib/libm.so.1
        libgthread-1.2.so.0 =>   /opt/csw/lib/libgthread-1.2.so.0
        libthread.so.1 =>        /lib/libthread.so.1
        libintl.so.3 =>  /opt/csw/lib/libintl.so.3
        libaio.so.1 =>   /lib/libaio.so.1
        libmd5.so.1 =>   /lib/libmd5.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libscf.so.1 =>   /lib/libscf.so.1
        libuutil.so.1 =>         /lib/libuutil.so.1
        libm.so.2 =>     /lib/libm.so.2
 
Old 10-23-2005, 09:01 PM   #3
anuode
Member
 
Registered: Nov 2004
Location: china
Distribution: Mandrake 10.1 Official
Posts: 37

Original Poster
Rep: Reputation: 15
hi jIIiagre
when I do those as you tell me ,I get the message:
Code:
bash-3.00# ./pkg-get -U
WARNING: gpg not found
Getting catalog...
--09:48:09--  http://ibiblio.org/pub/packages/sola...6/5.10/catalog
           => `catalog'
Resolving ibiblio.org... 152.2.210.80
Connecting to ibiblio.org[152.2.210.80]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 136,186 [text/plain]

100%[====================================>] 136,186       18.77K/s    ETA 00:00

09:48:16 (18.75 KB/s) - `catalog' saved [136186/136186]

WARNING: gpg not available.
Stripping off catalog signature without verifying
Updating catalog file
/var/pkg-get/catalog-ibiblio.org updated

--09:48:16--  http://ibiblio.org/pub/packages/sola...0/descriptions
           => `descriptions'
Resolving ibiblio.org... 152.2.210.80
Connecting to ibiblio.org[152.2.210.80]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 58,846 [text/plain]

100%[====================================>] 58,846        17.14K/s    ETA 00:00

09:48:20 (17.12 KB/s) - `descriptions' saved [58846/58846]

Updated description file
Code:
bash-3.00# ./pkg-get -u gxine
WARNING: gpg not found
No worries... you already have version 0.2.1,REV=2003.04.12 of gxine
If you doubt this message, run 'pkg-get -U', then run
 'pkg-get upgrade gxine'
and I still doesn't get those lib files!

and what is gpg,if is it important?
 
Old 10-24-2005, 01:21 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
gpg is a cryptographic package, it allows making sure the data has not been tampered, but is not required for pkg-get to work properly.

You are missing the following packages, try (re)installing them:
Code:
ggettext
freetype2
iconv
gtk
gdk
glib
 
Old 10-24-2005, 03:03 AM   #5
anuode
Member
 
Registered: Nov 2004
Location: china
Distribution: Mandrake 10.1 Official
Posts: 37

Original Poster
Rep: Reputation: 15
Thank you very much!
I have worked it out!
 
Old 10-24-2005, 05:38 AM   #6
AgentX
Member
 
Registered: Sep 2005
Posts: 43

Rep: Reputation: 15
Sorry for posting here, but my problem is almost a releated one. Today, I
installed the Opera 9 technology preview for Solaris x86 : http://snapshot.opera.com/unix/u90p1.html

The pkg installed fine, but Opera fails to load because of the 'missing'
libstdc++.so.6 library. I think that it's only searching for it in /usr/lib, while my
box has these files in /usr/sfw/lib. Which is the correct way to set the library
search path? Should it be LC_LIBRARY_PATH or crle? Please shed some light!

Another problem: aliasing isn't working properly. If I set it all in one ~/.profile,
dtterm in CDE doen't recognize aliases. And if I move the aliases to ~/.bashrc
and source it in ~/.profile via "set ENV", text mode bash fails to get aliases.

Please suggest a good and portable way to fix this thing.
 
Old 10-24-2005, 12:22 PM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I had the same issue with opera, and fixed it by editing the opera launcher script, line 180, I added a couple of directories to the loader path:
Code:
LD_LIBRARY_PATH="${OPERA_BINARYDIR}${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}:/opt/
csw/lib:/usr/sfw/lib"
I use ksh, and have no problem with using ENV and aliases there.
Is DTSOURCEPROFILE set to true in your .dt_profile ?
 
Old 10-24-2005, 02:47 PM   #8
AgentX
Member
 
Registered: Sep 2005
Posts: 43

Rep: Reputation: 15
Yes, my .dtprofile has "DTSOURCEPROFILE=true" as the last line. What's strange is that ksh
works fine as it should, but bash doesn't get the aliases. If only ksh had up/down arrow history
and easy command completion like bash.

Please let me know if you ever come across a solution.
 
Old 10-24-2005, 03:01 PM   #9
AgentX
Member
 
Registered: Sep 2005
Posts: 43

Rep: Reputation: 15
Well, I don't know why ...but soon after posting my problems here, they're getting solved mysteriously.
Or may be, I'm getting a little lazy thinking about outsourcing my problems to forum members.

Here's what I put in my ~/.profile to get aliases working in both login and non-login shells:

export ENV=${HOME}/.bashrc
source ${HOME}/.bashrc

ksh was working alright with only the ENV exported, bash wasn't however.

Solved!
 
Old 10-24-2005, 03:15 PM   #10
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
If only ksh had up/down arrow history
and easy command completion like bash.
ksh93 has up/down arrow history and command/filename completion.
 
Old 10-25-2005, 01:12 AM   #11
AgentX
Member
 
Registered: Sep 2005
Posts: 43

Rep: Reputation: 15
ksh93 is nice alright! But, Solaris comes with ksh88 only, I think. At least ksh
is ksh88. How do I get ksh93? Blastwave? Building it from sources is a
Royal PITA, thanks to those research.att people.

Regards.

Last edited by AgentX; 10-25-2005 at 02:04 AM.
 
Old 10-25-2005, 03:03 AM   #12
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
ksh93 is bundled with some open solaris based distributions, binaries are also available from blastwave http://www.blastwave.org/packages.php/ksh or David Korn himself http://www.research.att.com/~gsf/cgi...=list&name=ksh
 
Old 10-25-2005, 04:36 AM   #13
AgentX
Member
 
Registered: Sep 2005
Posts: 43

Rep: Reputation: 15
I was going to install it from Blastwave, but then I read somewhere that it's
slightly older version than what is available from research.att site.

Thanks jlliagre! BTW, do you know why Opera fails to load with a module error
when started by a user? It works fine as root, though.
 
Old 10-25-2005, 12:13 PM   #14
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
This Opera problem doesn't happen to me (as a non root user I mean)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
where can i get lib files waelali Linux - Software 1 02-20-2005 04:20 PM
Need two lib files mickeyboa Fedora 1 11-26-2004 09:31 AM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM
Missing lib files! stonehurstX11 Mandriva 9 12-15-2003 04:09 PM
MySQL lib files and more cli_man Linux - Software 3 03-14-2003 11:34 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration