Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11th February 2008, 09:54 AM
ecinar Offline
Registered User
 
Join Date: Feb 2008
Posts: 19
Library error

Hello,

When i call my make file in order to comple a .cc file on command line it gives me error that libraryname no such file or directory. I know this problem is being solved by typing these commands

export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

but when i start a new sesion in fedora I always have to repeat these commands is there a way of getting over this repeating things so I can do it permanently

thanks

Eyup
Reply With Quote
  #2  
Old 11th February 2008, 04:12 PM
PabloTwo's Avatar
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,126
If you add those two command lines to /etc/rc.d/rc.local they will be executed at each boot up.
Or add them to ~/.bash_profile if you only want them defined when that particular user logs in.

Paul
Reply With Quote
  #3  
Old 11th February 2008, 04:33 PM
ecinar Offline
Registered User
 
Join Date: Feb 2008
Posts: 19
Quote:
Originally Posted by PabloTwo
If you add those two command lines to /etc/rc.d/rc.local they will be executed at each boot up.
Or add them to ~/.bash_profile if you only want them defined when that particular user logs in.

Paul
thank you very much Paul!
Reply With Quote
  #4  
Old 11th February 2008, 04:54 PM
Mariano Suárez-
Guest
 
Posts: n/a
You should probably put /usr/local/lib in a text file in /etc/ld.conf.so.d, so that binaries using libraries there can be run independently of how they are invoked (putting the LD_* variable in your shell init scripts only `fixes' the problem for invocations which happen thought the shell)
Reply With Quote
Reply

Tags
error, library

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while installing a library khalidorama Using Fedora 1 10th February 2008 09:27 AM
Make error in library-linking: relocation R_X86_64_32 MarkE Using Fedora 0 8th January 2007 12:21 AM
xpistub library error futureguy Using Fedora 2 9th August 2006 02:00 PM
list library function of a shared library .so powah Programming & Packaging 2 26th April 2006 03:50 AM
Library verion error ronaldjw Using Fedora 0 1st April 2006 08:48 PM


Current GMT-time: 10:13 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat