[SOLVED] Why don't intltool perl scripts execute as perl scripts?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Why don't intltool perl scripts execute as perl scripts?
When trying to build systemd configure fails because, when it tries to get the version of intltool installed, it runs intltool-update --version and intltool-update gets run as though it were a shell script, not a perl script, reporting 'my' and 'use' as unrecognized commands.
Perl is installed. intltool-update begins with #!/usr/bin/perl -w. perl resides in /usr/bin, it works. perl -w intltool-update works. Other perl scripts (though none in the intltool package) work.
I assume this is a simple error, that I expose myself to your scorn, but there it is.
I did nothing so foolish. Just calling it straight causes it to fail as reported. I have written a few perl scripts (use them every day, in fact); there are others from other packages. Only those in the intltool package fail this way.
Maybe autoconf is doing something strange when generating your configure script .. I tried to attach mine but it's too large for LQ, PM if you want a copy and I'll email it to you.
Thanks for checking. You miss the point. Trying to build systemd pointed me to the problem. autoconf doesn't matter. I can try to run any intltool-* script on the command line and get the error.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.