Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-17-2011, 09:51 PM   #1
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


I recently installed
in my mandriva machine. But whenever i try to use the library by
gcc file_name.c -llua
it displays the message
/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: 17,400

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

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
su -
yum groupinstall " Development Tools" "Development Libraries"
yum grouplist
Old 09-18-2011, 05:45 AM   #3
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,127

Rep: Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491
# 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.



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 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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration