LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-17-2004, 06:35 AM   #1
KsA
LQ Newbie
 
Registered: Jan 2004
Posts: 11

Rep: Reputation: 0
Talking installation...where?


hi,
I’ve decided to program C/C++ under Linux and I’m concerning with some subject in c/c++ like graphics which requires additional libraries like GL,GD.
My question is where can I put the new library after downloading from internet, I mean is there particular directory should I put the library in it or I must put the path of the header file within the source code?
Also where should I install the drivers for my computer hardware like the modem either by rpm or other methods?
 
Old 02-17-2004, 08:33 AM   #2
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 32
You must put the libraries where the compiler can find them. Though you can put the libraries in any directory and point the compiler towards it using make files, that is rarely followed.
For rpm's, it automatically installs in the required directory.

For any programming in linux, this book is the bible : Advanced Linux Programming

You'll find all the answers to your queries if you read that book .
 
Old 02-17-2004, 09:04 AM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
the standard /usr/include and /usr/local/include will generally be searched automatically.

when you compile and install libraries, you deteremine where they will be installed
with the configure script,
like configure --prefix=/usr
that will put libraries in /usr/lib and headers in /usr/include
running ldconfig will let the system add the libraries it's list of available libraries.
 
Old 02-17-2004, 09:35 AM   #4
CycloLink
Member
 
Registered: Jan 2004
Distribution: Redhat 9.0
Posts: 32

Rep: Reputation: 15
i know for a fact that it is very common for GL to go in the /usr/include. I have used this no problem.
 
  


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
windows xp installation cd doesn't boot after suse installation thearchitect SUSE / openSUSE 8 09-09-2007 03:21 PM
FC3 installation freezes at package installation tmussche Fedora - Installation 1 04-19-2005 07:56 PM
Mandrake 10.1 Installation hangs at Installation of Bootloader dnl Linux - Software 12 01-08-2005 06:48 AM
Installation doesn't recognize Red Hat Enterprise Linux ES installation cd bizkut Red Hat 2 08-15-2004 08:57 AM
Mandrake 9.2 installation program crashes in the final step of the installation iqbala Mandriva 0 12-03-2003 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:59 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