LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-13-2007, 05:50 AM   #1
Zepiroth
Member
 
Registered: May 2003
Location: Surabaya, Jawa Timur, Indonesia
Distribution: Debian x64 and Ubuntu LTS Servers
Posts: 56

Rep: Reputation: 15
Question changing the parameter of -l<something> during ./confgure


dear Linux experts and gurus,

I am installing most of the Unix applications (on Linux and Solaris) by building from the source code. usually I did

# ./configure <with parameters>

and watch the response scrolling on the screen.
Sometime it shown some error when looking for the exact library.

These are the examples :
1) checking for library containing crypt... -lcrypt
2) checking for gethostbyname_r in -lnsl... yes
3) checking for floor in -lm... yes

4) checking for zlib location... /usr
adding "-lz" to LIBS

5) checking for zlib library... found
forcing MOD_DEFLATE_LDADD to "-lz"
removed "-lz" from LIBS


Is this "-l" had something to do with the ld linker ?
Is this parameter ( "-l" ) has configuration files stored somewhere ?
Are there any ways to change the configuration ?


Thank you in advance.

Last edited by Zepiroth; 12-13-2007 at 05:55 AM.
 
Old 12-13-2007, 05:51 AM   #2
Zepiroth
Member
 
Registered: May 2003
Location: Surabaya, Jawa Timur, Indonesia
Distribution: Debian x64 and Ubuntu LTS Servers
Posts: 56

Original Poster
Rep: Reputation: 15
Question the reason behind this question.

dear Unix experts & gurus,

Actually, I asked this because I compiled the cacti spine from source but encountered this error :

checking for mysql_init in -lmysqlclient_r... no
configure: error: MySQL libraries not found

This is what I got when I compiled cacti-spine with parameter "--with-mysql". I compiled the mysql from source with --prefix=/opt/mysql. the library is somehow stored on /opt/mysql/lib/mysql.

I tried to :
1. change the /etc/ld.conf.so.d/mysql.conf to refer into /opt/mysql/lib/mysql
2. replace the /usr/lib/mysql with the contents of /opt/mysql/lib/mysql

but both did not work at all.
My point is not about how to configure the cacti-spine. It is about this 'misterious' -l<something> .

Thank you.

Last edited by Zepiroth; 12-13-2007 at 05:56 AM.
 
  


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
View ./confgure options passed for an installed .deb? Akonbobot Linux - Software 4 12-11-2007 12:58 PM
linux bash - how to use a dynamic parameter in shell parameter expansion expression nickleus Linux - General 2 08-21-2006 04:54 AM
Need Help Compiling program (./confgure scrpt does not work) sunny000 Linux - Software 4 03-19-2006 11:53 AM
confgure linux box as a router databox Linux - Networking 6 08-22-2005 08:24 AM
Can't confgure with iwconfig nikkkko Linux - Wireless Networking 14 10-15-2004 03:02 AM

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

All times are GMT -5. The time now is 03:07 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
Open Source Consulting | Domain Registration