LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-17-2011, 09:51 PM   #1
lemon09
Member
 
Registered: Jun 2009
Location: kolkata,India
Distribution: Mandriva,openSuse,Mint,Debian
Posts: 285
Blog Entries: 1

Rep: Reputation: 37
cant find a library though it is installed


hello..........

I recently installed
liblua
in my mandriva machine. But whenever i try to use the library by
Code:
gcc file_name.c -llua
it displays the message
Code:
/usr/bin/ld: cannot find -llua                                                                                    
collect2: ld returned 1 exit status

liblua is installed in /usr/lib/
So i set the PATH variable to the above mentioned directory. and still I find no luck!!!!

Please help me in locating the library
 
Old 09-17-2011, 10:29 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
are you 100% sure that /usr/lib/liblua is the files name
and not "liblua.so.5.1"

and is the lua devel rpm installed
you will not need the header for linking but the packageconfig *.pc file would help

and on fedora - fedora what 14 or 15 ( a guess on that )
how did you install gcc ?
the recommended
Code:
su -
yum groupinstall " Development Tools" "Development Libraries"
see
Code:
yum grouplist
 
Old 09-18-2011, 05:45 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
# 2 : Mandriva : No yum !


# 1 : The required package is 'liblua-devel'

# urpmi liblua-devel

At compile time, lib<name>.so is used.
Development packages, (lib)<name>-devel, provides :
Headers, /usr/lib/pkgconfig/<name>.pc, lib<name>.so,
where lib<name>.so is a link to the version, you want to use at run time.

..
 
  


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
[SOLVED] smbpasswd cannot find installed library libwbclient.so.0 Ciesar Linux - Newbie 7 12-22-2010 01:05 AM
[SOLVED] How to find out what options a library was configured with when it was installed kvm1983 Linux - General 4 11-28-2010 08:42 PM
install from source - unable to find the libcurl library - but library is installed pulper Linux - Newbie 2 02-23-2009 10:00 PM
Couldn't find ltdl library - but all libtools etc installed... trekk Linux - Software 1 11-10-2006 01:54 AM
How may I know if I have a library installed? Starch Linux - Newbie 1 06-27-2005 12:22 AM


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