LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 01-22-2014, 11:17 PM   #16
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 2,256

Original Poster
Rep: Reputation: 292Reputation: 292Reputation: 292

I had already run 'file'; it returns 'Perl script, ASCII text executable'

/usr is a directory on / . All the other executables on it, including perl scripts from other packages and those I have written myself, work.
 
Old 01-23-2014, 02:52 AM   #17
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Could you try copying it to your home dir then executing the copy? .. that way we can see if the problem travels with the file. Also is the intltool package up to date?
 
Old 01-23-2014, 05:16 PM   #18
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 2,256

Original Poster
Rep: Reputation: 292Reputation: 292Reputation: 292
The intltool package is up-to-date. Copying it to my home dir and executing the copy made no difference.
 
Old 01-23-2014, 07:47 PM   #19
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 2,256

Original Poster
Rep: Reputation: 292Reputation: 292Reputation: 292
I found a solution, though I don't understand it. perl executables that have this at the beginning
Code:
#!/usr/bin/perl
    eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
        if $running_under_some_shell;
work.

The build of systemd used another perl script, glib-mkenums, that lacked this preface; I had to 'fix' it too to make it work. Almost all perl scripts from other packages have it.
 
Old 01-24-2014, 03:37 PM   #20
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 2,256

Original Poster
Rep: Reputation: 292Reputation: 292Reputation: 292
I found an explanation in the section of 'man perlrun' that explains the -S switch.
 
  


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
Perl - executin all perl scripts in a specific folder aocferreira Programming 1 04-27-2011 11:57 AM
[SOLVED] Why does perl execute bash scripts? zensunni Linux - Newbie 3 11-13-2010 03:24 PM
how to execute scripts on opened tool from perl? veereshm Linux - Newbie 1 01-21-2009 05:50 PM
Apache2 on Debian won't execute perl cgi scripts, have tried chmod, Options ExecCGI dewert Linux - Software 1 07-03-2006 12:44 PM
perl scripts nightmare6667 Programming 13 06-29-2006 02:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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