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 07-23-2005, 09:13 AM   #1
caid
Member
 
Registered: Dec 2002
Location: NZ
Distribution: slack current
Posts: 61

Rep: Reputation: 15
problem "make"ing gtk+ "/usr/bin/env: perl -w"


Hi all

I'm trying to install gtk+-2.6.8, but am getting a make error (with several other packages also).
The error is

/usr/bin/env: perl -w: No such file or directory
make[2]: *** [s-enum-types-h] Error 127
make[2]: Leaving directory '/home/caid/downloads/gtk+-2.6.8/gdk-pixbuf'

etc.
I'm using kernel 2.6.12.3 on Slackware 10.0, with perl 5.8.7.
I've been googling like mad all night, and have found a lot of references to the limitations of the Berkeley #! hack with 'perl -w' being parsed as a single argument.

I've trawled through all of the gtk perl scripts, replacing any reference to perl -w with use warnings; instead, but make still keeps complaining about perl -w being invalid.

How do I get round this? I haven't seen any other complaints like this with regards to building gtk+-2.6.8, am I the only one having this problem?

Thanks in advance

caid.
 
Old 07-23-2005, 10:03 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
The #! line is interpreted by the shell, which in turn is set by reading /etc/passwd when you log in. You might try changing your login shell to GNU BASH (www.gnu.org).
 
Old 07-23-2005, 10:07 AM   #3
caid
Member
 
Registered: Dec 2002
Location: NZ
Distribution: slack current
Posts: 61

Original Poster
Rep: Reputation: 15
hi

thanks for your reply, but my shell is already bash.

caid
 
Old 07-23-2005, 05:15 PM   #4
caid
Member
 
Registered: Dec 2002
Location: NZ
Distribution: slack current
Posts: 61

Original Poster
Rep: Reputation: 15
any ideas?

Still haven't found a fix for this, it's slowly driving me mad.
I've cat-ed every file in the gtk install through grep looking for /usr/bin/perl, checked all the env variables for a reference to perl, and found nothing. i can only think that it's looking at an outside script, but don't know where else to look.

arrrrgghhh.

Any help would be much appreciated.
 
Old 07-23-2005, 07:27 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Assumming your Perl is in /usr/bin you should be able to replace the env command with

#!/usr/bin/perl -w

The env in this case exists in case you have Perl installed to someplace out of the way (it will try to find it).
 
Old 07-23-2005, 07:46 PM   #6
caid
Member
 
Registered: Dec 2002
Location: NZ
Distribution: slack current
Posts: 61

Original Poster
Rep: Reputation: 15
hi there

thanks a lot for your replies.

i pulled down the gtk+ 2.7.4 source and tried making that.
unfortunately I've got a new, different problem.

the build is now requiring cairo >= 0.5.2-head

but I can't find a -head version anywhere.

If I install cairo 0.5.2, it says:

Requested 'cairo >= 0.5.2-head' but version of cairo is 0.5.2

Now what?

Thanks

caid
 
Old 07-24-2005, 08:25 AM   #7
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Re: problem "make"ing gtk+ "/usr/bin/env: perl -w"

Quote:
Originally posted by caid
I've been googling like mad all night, and have found a lot of references to the limitations of the Berkeley #! hack with 'perl -w' being parsed as a single argument.
Caid,

Could you possibly post some links to the sites you found on Google? Maybe we can find or deduce something that you missed.
 
Old 07-29-2005, 04:33 AM   #8
rodjo
LQ Newbie
 
Registered: Jul 2005
Location: Croatia
Distribution: Slackware 10.0
Posts: 1

Rep: Reputation: 0
Re: hi there

Quote:
Originally posted by caid
thanks a lot for your replies.

i pulled down the gtk+ 2.7.4 source and tried making that.
unfortunately I've got a new, different problem.

the build is now requiring cairo >= 0.5.2-head

but I can't find a -head version anywhere.

If I install cairo 0.5.2, it says:

Requested 'cairo >= 0.5.2-head' but version of cairo is 0.5.2

Now what?

Thanks

caid
I found the solution, had the same problem. Just edit configure.in and replace any 0.5.2-head with 0.5.2 so it will check for a 0.5.2 version not the 0.5.2-head.
 
Old 07-29-2005, 04:51 AM   #9
caid
Member
 
Registered: Dec 2002
Location: NZ
Distribution: slack current
Posts: 61

Original Poster
Rep: Reputation: 15
success

thanks for your help.

managed to get it all ship-shape. ended up moving the /bin/env executable so the mystery script couldn't find it. the resulting error gave the script file name, and once i had that i could happily remove the bad call to env.
feel like a moron for making such hard work of it, but you get that. or at least i do ;o)

thanks again.

caid
 
  


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
"/usr/bin/ls: reading directory .: Input/output error" DiZi Slackware 15 07-13-2008 10:03 AM
error when "make"ing stuff jimjamjahaa Linux - Newbie 9 05-25-2005 09:55 AM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM
what is "S" instead of "X" in the file permission when i look at /usr/bin/chsh? Linux_interest Linux - Newbie 4 08-28-2004 09:22 AM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 03:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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