LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 05-07-2006, 10:38 PM   #1
zbenjudah
Member
 
Registered: Mar 2006
Posts: 64

Rep: Reputation: 15
what is glib and why does MC need it to compile


When I execute ./configure in the mc top level directory it tells me it can not
find glib that mc needs glib-1.2.6 or above I thought that I installed glib-1.2.6 correctly I did configure make make install... what more
how does one set the LD_LIBRARY_PATH environment variable? I edited ld.so.conf to piont to /usr/local/bin that does not work I still get the error cant find glib

Last edited by zbenjudah; 05-07-2006 at 10:50 PM.
 
Old 05-07-2006, 11:09 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 3,988

Rep: Reputation: 261Reputation: 261Reputation: 261
The libraries are probably in /usr/local/lib -- bin directories are for actually executables while libraries go to live in the corresponding lib directory.

To set the LD_LIBRARY_PATH you can do:

export LD_LIBRARY_PATH=<whatever>

to append to it:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<whatever>

This assumes bash or a Bourne style shell, which is the most commonly used Linux shell. The syntac for csh and tcsh is slightly different. If you want to make changes to an environment variable permanent accross shell sessions, you'll need too add the export command(s) to the shell startup files.
 
Old 05-08-2006, 12:21 AM   #3
zbenjudah
Member
 
Registered: Mar 2006
Posts: 64

Original Poster
Rep: Reputation: 15
this may sound like a stupid question but where are the bash shell startup files kept

and am i suposed to type that whole command LD_LIBRARY_PATH thing at the prompt befor compileing or put it in the configure script

Iam sorry I dont understand linux environment varibles

Last edited by zbenjudah; 05-08-2006 at 12:25 AM.
 
Old 05-08-2006, 12:43 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Yeah, you enter the "export ..." stuff at the prompt before compiling. As for the startup files, they should be in your home directory (~) and I know you can put stuff like this in ~/.bashrc, but you may be able to put it in ~/.profile or ~/.bash_profile instead.
 
Old 05-08-2006, 01:24 AM   #5
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian jessie/sid; OpenSuSE; Fedora
Posts: 1,589

Rep: Reputation: 161Reputation: 161
Quote:
Originally Posted by zbenjudah
this may sound like a stupid question but where are the bash shell startup files kept

and am i suposed to type that whole command LD_LIBRARY_PATH thing at the prompt befor compileing or put it in the configure script

Iam sorry I dont understand linux environment varibles

In /etc

You can try running ldconfig. Sometimes you have to do that. It doesn't hurt anything. If you have SuSE 9.x or 10 you might consider running SuSEconfig after an install. If nothing else: if a configure fusses about a package you know you installed:

./configure --with-package

package is the name of the package, not the path.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GTK+ compile error : glib-mkenums Sjaaksken Suse/Novell 6 12-11-2005 03:16 PM
Glib compile problems after upgrading to 10.0 jrdioko Slackware 2 08-10-2005 09:07 PM
can't install gtk 2.4.4: "Requested 'glib-2.0 >= 2.4.0' but version of GLib is 2.2.3 webazoid Linux - Software 0 07-15-2004 06:07 PM
glib-2.4.0 compile error trollman Linux - Software 2 04-09-2004 09:37 AM
glib-2.2.3 won't compile because libiconv prob behmjose Linux - Newbie 6 02-21-2004 10:14 PM


All times are GMT -5. The time now is 08:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration