Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plenv throws error while installing #27

Closed
cowens opened this issue Apr 7, 2016 · 1 comment
Closed

plenv throws error while installing #27

cowens opened this issue Apr 7, 2016 · 1 comment

Comments

@cowens
Copy link

cowens commented Apr 7, 2016

Using the instructions at https://github.com/tokuhirom/plenv, the plenv bash script throws an error in step 4:

$ exec $SHELL -l
/home/cowens/.plenv/bin/plenv: line 15: /dev/fd/62: No such file or directory
plenv: cannot find readlink - are you missing GNU coreutils?
/home/cowens/.plenv/bin/plenv: line 15: type: write error: Broken pipe

This seems to be related to the following code from the script:

read READLINK < <( type -p greadlink readlink )

I can't find a good way to strace a bash command like read (I tried `strace bash -c 'read A < <(echo foo)', but got nothing useful from it).

@cowens
Copy link
Author

cowens commented Apr 7, 2016

Hardcoding the path to readlink in plenv lets me get farther, but it errors during compiling in the second part of step 5:

$ plenv install 5.18.0
Installing 5.18.0 as 5.18.0
/usr/bin/perl -- /home/cowens/.plenv/plugins/perl-build/bin/perl-build --symlink-devel-executables --build-dir /home/cowens/.plenv/build/1460040814.2631/ --tarball-dir /home/cowens/.plenv/cache/ -Dusedevel 5.18.0 /home/cowens/.plenv/versions/5.18.0
Fetching 5.18.0 as /home/cowens/.plenv/cache/perl-5.18.0.tar.gz (http://www.cpan.org/authors/id/R/RJ/RJBS/perl-5.18.0.tar.gz)
Downloaded http://www.cpan.org/authors/id/R/RJ/RJBS/perl-5.18.0.tar.gz to /home/cowens/.plenv/cache/perl-5.18.0.tar.gz.
Configuring perl '5.18.0'
rm -f config.sh Policy.sh
Auto-guessed '5.18.0'
patching Configure
File Configure is read-only; trying to patch anyway
/usr/bin/patch: **** Can't rename file Configure to Configure.orig : Invalid argument
Died at /home/cowens/.plenv/plugins/perl-build/bin/perl-build line 69.
ABORT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants