LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-24-2005, 01:17 AM   #1
apenguinlinux
Member
 
Registered: Dec 2004
Distribution: debian
Posts: 91

Rep: Reputation: 15
perl compiling error......


hi..wheni m compilingmy code using ..

#perlcc ABC.pl
then i m getting this error.,..

what was that,...



/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
deepak..
 
Old 01-24-2005, 01:28 AM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
did you compile perl yourself?
 
Old 01-24-2005, 02:18 AM   #3
apenguinlinux
Member
 
Registered: Dec 2004
Distribution: debian
Posts: 91

Original Poster
Rep: Reputation: 15
meanns u r saying that ///


perl ABC.pl


deepak....
 
Old 01-24-2005, 03:50 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
uh, i meant did you compile perl or are you using the perl that came with debian ( the reason i ask is because you might need the perl-devel package to get the static libs for ld to find libperl.a)

whenevery you see an error like:

ld: cannot find -lperl

insert lib in place of -l and thats the library its trying to link with ( in this case libperl).
 
Old 01-24-2005, 05:59 AM   #5
apenguinlinux
Member
 
Registered: Dec 2004
Distribution: debian
Posts: 91

Original Poster
Rep: Reputation: 15
i didnt get ur point ...i m using perl which comes with debian...

where i will change,,

I am new in perl ..

plz help....
 
Old 01-24-2005, 04:14 PM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
in short:

/usr/bin/ld: cannot find -lperl

means the linker cannot find the perl library on your system. It is either:

1. not there, or you need the debian perl-devel (or maybe libperl-devel depending on what debian calls it) package installed

2. incorrectly installed.

3. not in the library search path.
 
  


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
Error compiling perl-DBD-MySQL after upgrading to MySQL 4.1 pitaro920 Linux - Software 1 01-16-2006 04:28 PM
Yum error: .conflict between perl and perl-NDBM_File zepplin611 Red Hat 3 10-20-2004 10:22 AM
Compiling Perl? Inexactitude Programming 3 04-15-2004 05:01 PM
Perl not compiling Gantrep Programming 1 08-06-2003 05:14 AM
Error compiling Perl (making LFS system 3.3)... MatMan5959 Linux - Software 0 06-02-2002 04:36 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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