LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-16-2008, 05:46 PM   #1
razier
LQ Newbie
 
Registered: Jul 2008
Posts: 3

Rep: Reputation: 0
How do I to link to libGL.so.1


Hi everyone,

brand new to linux and my first post here, so bear with me.

I installed a program for work (pymol) cannot get it to run.

I unzipped and ran setup (setup.sh) in
/home/cnelson36/Download/pymol/pymol

the when I try to execute the program, I get this message:
[cnelson36@localhost pymol]$ ./pymol.exe
./pymol.exe: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

I located this file in /usr/lib64/libGL.so.1

[cnelson36@localhost ~]$ locate libGL.so.1
/usr/lib64/libGL.so.1
/usr/lib64/libGL.so.1.2

So my question is: do I need to link to this file, and if so, how do I do this?

Thanks so much in advance for your help!

[edit] forgot to mention that I'm running Fedora 9 x64

Last edited by razier; 07-16-2008 at 05:50 PM. Reason: added more information
 
Old 07-16-2008, 05:55 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Try the following command:
Code:
ldd pymol.exe
this will give a list of the shared objects to which the pymol executable is linked, along with their path. You can check also if the libGL.so.1 is in the current library cache:
Code:
/sbin/ldconfig -p | grep libGL.so.1
 
Old 07-16-2008, 06:23 PM   #3
razier
LQ Newbie
 
Registered: Jul 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks so much for the quick reply! OK so it looks like pymol is looking in /lib and not /lib64, where all of these files are located. Is there any way to link pymol to look in /lib64 instead?


[cnelson36@localhost pymol]$ ldd pymol.exe
linux-gate.so.1 => (0x00110000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00111000)
libutil.so.1 => /lib/libutil.so.1 (0x0012a000)
libGL.so.1 => not found
libGLU.so.1 => not found
libXi.so.6 => not found
libXmu.so.6 => not found
libXxf86vm.so.1 => not found
libdl.so.2 => /lib/libdl.so.2 (0x0012e000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0016a000)
libm.so.6 => /lib/libm.so.6 (0x0025a000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00133000)
libc.so.6 => /lib/libc.so.6 (0x00283000)
/lib/ld-linux.so.2 (0x0014c000)
libX11.so.6 => not found
[cnelson36@localhost pymol]$ /sbin/ldconfig -p | grep libGL.so.1
libGL.so.1 (libc6,x86-64) => /usr/lib64/libGL.so.1
[cnelson36@localhost pymol]$

Thanks again.
 
Old 07-16-2008, 06:35 PM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Maybe pymol is a 32-bit application, so that it looks for 32-bit shared libraries (check documentation about 64-bit support and installation). Anyway, you can always install the 32-bit version of the required libraries: they will be installed under /lib or /usr/lib and will not interfere with the 64-bit version.
 
Old 07-17-2008, 12:45 PM   #5
pymol
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by colucix View Post
Maybe pymol is a 32-bit application, so that it looks for 32-bit shared libraries (check documentation about 64-bit support and installation). Anyway, you can always install the 32-bit version of the required libraries: they will be installed under /lib or /usr/lib and will not interfere with the 64-bit version.
Correct. Most free PyMOL builds floating around the net are 32-bit, so to use them, youll need a 32-bit install of mesa-libGLU and possibly libXmu as well as compat-libstdc++ (or similar). Also, to obtain adequate performance under Linux, you'll need to install proprietary 3D graphics drivers for your card including the 32/64-bit compatibility interface. More information on PyMOL can be found at pymolwiki.org.
 
Old 07-18-2008, 10:28 AM   #6
razier
LQ Newbie
 
Registered: Jul 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Hi everyone,
Thanks so much for your help, I searched back through the pymol website last night and downloaded the 64 bit install of pymol, which works great.

Thanks again, this site is amazing!
 
Old 11-10-2011, 05:24 AM   #7
naman.neoanderson
LQ Newbie
 
Registered: Nov 2011
Posts: 2

Rep: Reputation: Disabled
facing same problem.

Quote:
Originally Posted by razier View Post
Hi everyone,
Thanks so much for your help, I searched back through the pymol website last night and downloaded the 64 bit install of pymol, which works great.

Thanks again, this site is amazing!
==============================================

Hello razier,

I am getting the same ERROR:

/usr/local/pymol/pymol.exe: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

Would you give me the source or link of PYMOL 0.99 for 64-bit ?
I have tried but not getting it.

-naman
 
Old 11-10-2011, 05:40 AM   #8
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 210Reputation: 210Reputation: 210
Quote:
Originally Posted by naman.neoanderson View Post
Would you give me the source or link of PYMOL 0.99 for 64-bit ?
I have tried but not getting it.

-naman
Naman, if you're using 64-bit Ubuntu, just install it with aptitude. It's a package:

Code:
sudo aptitude install pymol
Otherwise, maybe it's available on whatever distro you're using.

You could build it. Source is here:
 
Old 11-10-2011, 06:43 AM   #9
naman.neoanderson
LQ Newbie
 
Registered: Nov 2011
Posts: 2

Rep: Reputation: Disabled
Hello jhwilliams,

I have downloaded PYMOL from sourceforge.net only.

But somehow I am not able to resolve it.

some outputs to understand error:
---------

[root@localhost pymol]# pwd
/usr/local/pymol
[root@localhost pymol]# ./pymol
/usr/local/pymol/pymol.exe: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
[root@localhost pymol]# ldd pymol
not a dynamic executable
[root@localhost pymol]# ldd ./pymol
not a dynamic executable
[root@localhost pymol]# ldd pymol.exe
linux-gate.so.1 => (0x0081b000)
libpthread.so.0 => /lib/libpthread.so.0 (0x0073a000)
libutil.so.1 => /lib/libutil.so.1 (0x00863000)
libGL.so.1 => not found
libGLU.so.1 => not found
libXi.so.6 => not found
libXmu.so.6 => not found
libdl.so.2 => /lib/libdl.so.2 (0x00cb4000)
libm.so.6 => /lib/libm.so.6 (0x00b00000)
libc.so.6 => /lib/libc.so.6 (0x00454000)
/lib/ld-linux.so.2 (0x00ccc000)
libXext.so.6 => not found
libX11.so.6 => not found
[root@localhost pymol]#

---------
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problem installing - libtool: link: cannot find the library `__LIBGL_PATH__/libGL.la' sparX CG Linux - Software 4 11-14-2005 06:45 PM
No libGL hylke Linux - Newbie 2 10-07-2005 03:40 AM
libGL.so.1 ET TuxFreak Linux - Games 11 08-22-2005 01:33 PM
libGL.so.1(LIBGL) for SuSE 9.1? darkmatter333 SUSE / openSUSE 1 12-17-2004 11:23 PM
How do I link to my custom libGL.la during configure/make/install if I am not root? lbermude Linux - Software 2 12-13-2004 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:31 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration