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

Can not install perl if there is no perl #799

Open
EugenKon opened this issue Apr 12, 2024 · 1 comment
Open

Can not install perl if there is no perl #799

EugenKon opened this issue Apr 12, 2024 · 1 comment

Comments

@EugenKon
Copy link

EugenKon commented Apr 12, 2024

\curl -L https://install.perlbrew.pl | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   170  100   170    0     0    661      0 --:--:-- --:--:-- --:--:--   664
100  1574  100  1574    0     0   5562      0 --:--:-- --:--:-- --:--:--  5562

## Download the latest perlbrew

## Installing perlbrew
Need /usr/bin/perl or /usr/local/bin/perl to use bash
$ uname -a
Linux www 4.1.6-coreos-r1 #2 SMP Wed Sep 2 04:16:15 UTC 2015 x86_64 Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz GenuineIntel GNU/Linux
$ cat /etc/os-release
NAME=CoreOS
ID=coreos
VERSION=766.3.0
VERSION_ID=766.3.0
BUILD_ID=
PRETTY_NAME="CoreOS 766.3.0"
ANSI_COLOR="1;32"
HOME_URL="https://coreos.com/"
BUG_REPORT_URL="https://github.com/coreos/bugs/issues"

The problem:
I do not have perl in my system and I do not have permissions to install it.

It would be nice if I will be able to install perlbrew into my home directory.

@gugod
Copy link
Owner

gugod commented Jun 9, 2024

Since perlbrew itself is written in perl, and without rewriting it with sh or something that's basically omni-available, this bootstrap problem cannot be easily mitigated.

But perhaps we could somehow prepare a binary perl distribution that is tailor-made, relocatable, self-contained, targeting at OSes that ship without an perl. Or we could try the approach of shipping perlbrew itself as a PAR-packed app.

But furthermore, perlbrew also requires a set of toolchain (c compiler, sh, .... etc) on the sysetem to build whatever perl's available. At the moment there are no binary installations just yet (perhaps there should be ?) So that's another blocker when we are in the situation when $USER really lacks permissions to install stuff onto the system.

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