Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Installing perlbrew on 1and1

by rpnoble419 (Pilgrim)
on Sep 20, 2012 at 03:30 UTC ( #994580=perlquestion: print w/replies, xml ) Need Help??
rpnoble419 has asked for the wisdom of the Perl Monks concerning the following question:

My fellow monks;

I'm working on a 1and1 server with Perl 5.10.1 on it. I'm trying to install perlbrew so I can install a more up to date Perl build. When I run the following command:

curl -kL | bash

I get the following error:

% Total % Received % Xferd Average Speed Time Time Time + Current Dload Upload Total Spent Left + Speed 100 1022 100 1022 0 0 266 0 0:00:03 0:00:03 --:--: +-- 266 ## Download the latest perlbrew ## Installing perlbrew bash: line 40: ./perlbrew-14284: Permission denied

I'm new to Perl on Linux, but I use Perl on Windows every day. Is there a better way to install perlbrew? I have tried using perl -MCPAN -e shell but I get a config error.

Any help will be greatly welcomed.....

Replies are listed 'Best First'.
Re: Installing perlbrew on 1and1
by mbethke (Hermit) on Sep 20, 2012 at 06:27 UTC

    The error message sounds like your directory was mounted with the noexec flag. Maybe you have to do this in /tmp or somewhere where you can actually run stuff without specifying it as an argument of the interpreter, or you have to hack the script to say something along the lines of "perl ./perlbrew-$$", "bash ./perlbrew-$$".

    Edit: as I guess you're probably new to Linux as a whole: use "mount" to see what file systems are mounted with what options, and "pwd" to check where your working directory is.

      Yes I'm very new to Linux (as in 24 hours new). Thanks for the reply...
Re: Installing perlbrew on 1and1
by mje (Curate) on Sep 20, 2012 at 08:18 UTC

    I've just recently had all sorts of problems with perlbrew on Solaris (see Trouble getting perlbrew working on Solaris machine. IIRC, the shell script curl downloads and is passed to bash creates the file you mention in /tmp. If you simple download the file with curl and examine it (instead of passing it to bash) it is fairly straight forward. I'd guess you don't have some permission on /tmp. Try setting TMPDIR to some dir you have permissions on before passing the curl output to bash.

    All the shell script really does is download and run it.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://994580]
Approved by chacham
[haukex]: I think you're right, I think Pod::Simple is the preferred parser now
[haukex]: But I was just using it as an author test anyway
[Corion]: haukex: Aaah - I thought you were still running these tests on every machine, but you only run these as author or Devel::Cover tests
[Corion]: haukex: Yeah, I think back then I used Test::Inline, which used a pod parser that was going through some changes and I didn't want to cater for all the various versions and thus stopped testing the Pod completely
[choroba]: I usually do this with presentations
[Corion]: But now I think statically (re)generating the Pod tests is a saner approach, and likely I'll regenerate the tests either in Makefile.PL or from xt/ but have them live below t/
[choroba]: I keep the snippets in files of their own, and use a Makefile to syntax highlight them and insert them into slides, while also running them and inserting the output if required
[Corion]: choroba: Ooooh - I didn't think of that! I write my presentations as POD and if it "roughly" looks like Perl code, I should also syntax-check that...
[haukex]: Yes sorry I don't run them all the time, my POD tests are only run as author tests (and are excluded when I'm using Devel::Cover)
[Corion]: choroba: Hmm - no, I keep the snippets inline, but as my framework also has support for capturing output etc., maybe I should do the same...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2017-02-27 12:22 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (385 votes). Check out past polls.