Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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).
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.
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.
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.
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.