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

Binaries installed in libs not found by shims #8

Open
Grinnz opened this issue Feb 15, 2016 · 2 comments · May be fixed by #11
Open

Binaries installed in libs not found by shims #8

Grinnz opened this issue Feb 15, 2016 · 2 comments · May be fixed by #11

Comments

@Grinnz
Copy link
Contributor

Grinnz commented Feb 15, 2016

It seems if a binary (such as cpanm) is installed in a lib created by the plenv lib command, but not installed in the main perl version the lib is created in, the binary is not found even when using the lib and must be installed in the outside perl to be accessible via the shim.

@Grinnz
Copy link
Contributor Author

Grinnz commented Feb 15, 2016

grinnz@home ~/p/Mojo-SQLite> plenv use 5.14.4@test_bin

A sub-shell is launched with PLENV_VERSION=5.14.4 and local::lib activated for @test_bin. Run 'exit' to finish it.

Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
grinnz@home ~/p/Mojo-SQLite> wget -qO - https://cpanmin.us | perl - App::cpanminus
--> Working on App::cpanminus
Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7040.tar.gz ... OK
==> Found dependencies: ExtUtils::MakeMaker
--> Working on ExtUtils::MakeMaker
Fetching http://www.cpan.org/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-7.10.tar.gz ... OK
Configuring ExtUtils-MakeMaker-7.10 ... OK
Building and testing ExtUtils-MakeMaker-7.10 ... OK
Successfully installed ExtUtils-MakeMaker-7.10 (upgraded from 6.57_05)
Configuring App-cpanminus-1.7040 ... OK
Building and testing App-cpanminus-1.7040 ... OK
Successfully installed App-cpanminus-1.7040
2 distributions installed
grinnz@home ~/p/Mojo-SQLite> plenv which cpanm
plenv: cpanm: command not found

The `cpanm' command exists in these Perl versions:
  5.10.0
  5.10.1
  5.12.5
  5.18.4
  5.20.3
  5.22.0
  5.22.1
  5.8.1
  5.8.2
  5.8.4
  5.8.8
  5.8.9

grinnz@home ~/p/Mojo-SQLite> exit

grinnz@home ~/p/Mojo-SQLite> plenv use 5.14.4

A sub-shell is launched with PLENV_VERSION=5.14.4. Run 'exit' to finish it.

Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
grinnz@home ~/p/Mojo-SQLite> wget -qO - https://cpanmin.us | perl - App::cpanminus
--> Working on App::cpanminus
Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7040.tar.gz ... OK
==> Found dependencies: ExtUtils::MakeMaker
--> Working on ExtUtils::MakeMaker
Fetching http://www.cpan.org/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-7.10.tar.gz ... OK
Configuring ExtUtils-MakeMaker-7.10 ... OK
Building and testing ExtUtils-MakeMaker-7.10 ... OK
Successfully installed ExtUtils-MakeMaker-7.10 (upgraded from 6.57_05)
Configuring App-cpanminus-1.7040 ... OK
Building and testing App-cpanminus-1.7040 ... OK
Successfully installed App-cpanminus-1.7040
2 distributions installed
grinnz@home ~/p/Mojo-SQLite> exit

grinnz@home ~/p/Mojo-SQLite> plenv use 5.14.4@test_bin

A sub-shell is launched with PLENV_VERSION=5.14.4 and local::lib activated for @test_bin. Run 'exit' to finish it.

Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
grinnz@home ~/p/Mojo-SQLite> plenv which cpanm
/home/grinnz/.plenv/versions/5.14.4/bin/cpanm

@djerius
Copy link

djerius commented Jun 8, 2019

@Grinnz see PR #11

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

Successfully merging a pull request may close this issue.

2 participants