LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 02-20-2014, 06:33 AM   #1
validator456
Member
 
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 168

Rep: Reputation: Disabled
Problem with perlbrew


I installed perlbrew on my computer (http://perlbrew.pl/). Installed perl itself by running:
Code:
perlbrew install perl-5.16.0
perlbrew switch perl-5.16.0
Then I tried to run a script by:
Code:
perlbrew exec name.pl
and I get an errormessage, saying:
Code:
Can't exec "name.pl": No such file or directory at /usr/share/perl5/App/perlbrew.pm line 1210.
What am I doing wrong here?
 
Old 02-20-2014, 06:37 AM   #2
validator456
Member
 
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 168

Original Poster
Rep: Reputation: Disabled
perlbrew problem

I forgot one thing: running perlbrew init gives me:
Code:
Perlbrew environment initiated under ~/perl5/perlbrew

Append the following piece of code to the end of your ~/.bash_profile and start a
new shell, perlbrew should be up and fully functional from there:

    source ~/perl5/perlbrew/etc/bashrc

For further instructions, simply run `perlbrew` to see the help message.

Happy brewing!
Did that by:
Code:
touch ./bash_profile
and adding the code to the file. Rebooted the computer but still get this message.
 
Old 02-20-2014, 11:38 AM   #3
validator456
Member
 
Registered: Apr 2013
Location: Rotterdam, The Netherlands
Distribution: Crunchbang Linux
Posts: 168

Original Poster
Rep: Reputation: Disabled
perlbrew problem

I found the solution.
Execution of a perlfile should be:
Code:
perlbrew exec perl name.pl

Last edited by validator456; 02-20-2014 at 11:39 AM. Reason: not finished
 
  


Reply

Tags
perl, perlscript


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
Do I have a path problem, an Apache2 problem or a Javascript problem or any other pro rblampain Linux - Networking 0 12-29-2010 04:50 AM
Problem linking f77 and f90 object files Make problem (I think) TheBrick Programming 1 05-22-2006 07:17 AM
Sound Card problem(every time i install linux i have diffirent hardware problem) jacka1l Linux - Newbie 7 08-11-2005 07:10 AM
Lan configuration problem - NFS boot problem - RX&TX packets errors 242VDM242 Linux - Networking 4 11-25-2004 02:35 PM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 08:45 PM

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

All times are GMT -5. The time now is 08:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration