Comments (5)
Please add a sample what you mean to be printed wrongly. What do I have to do to see this bug?
from cpanpm.
It's this line that's the problem:
https://github.com/andk/cpanpm/blob/master/lib/CPAN/FirstTime.pm#L1344
It should be giving us a list of environment variables and we're getting an
empty string instead.
To replicate, you need a to have no CPAN configuration and have a perl for
which you don't have write access. Running "cpan" the autoconfig should
ask if you want local::lib. If you say yes, at the end of the bootstrap is
says "here's what you need to put in your bashrc:" but then it shows
nothing.
from cpanpm.
I think I know what's going on here. When a local::lib directory is active (and the most recently activated), it won't re-add it to the environment variables it outputs. It also was meant to behave like that before the internals change, but my changes seem to have made it happen in more cases.
One easy fix would be to save the ->environment_vars_string_for output before setting the %ENV options. I'll probably made some changes to local::lib because of this though. Someone else at the QA hackathon requested that local::lib be less 'smart' in this regard.
from cpanpm.
On Sat, Mar 29, 2014 at 4:21 PM, Graham Knop [email protected]:
One easy fix would be to save the ->environment_vars_string_for output
before setting the %ENV options. I'll probably made some changes to
local::lib because of this though. Someone else at the QA hackathon
requested that local::lib be less 'smart' in this regard.Maybe it can be "optionally" smart/dumb.
David
David Golden [email protected] Twitter/IRC: @xdg
from cpanpm.
I think this problem or a variation of it is back, per https://rt.cpan.org/Ticket/Display.html?id=103760
from cpanpm.
Related Issues (20)
- Configure with only fresh mirrors HOT 5
- Failure to configure cpan: getaddrinfo(ucu.ac.ug,,AF_INET) failed - No address associated with hostname HOT 1
- first time setup on cygwin with strawberry also installed picks up wrong patch executable, leading to an endless loop
- Some questions about the proxy settings for cpan and cpanm.
- Add environment variable to customize .cpan path HOT 3
- Relative dir for local::lib doesn't work
- Not able to create local::lib with non-root user in docker container : fileparse(): need a valid pathname at /usr/share/perl/5.30/CPAN/FirstTime.pm HOT 1
- Can't locate local/lib.pm in @INC : Installation of `App::cpanminus` fails on Windows 11, WSL with Ubuntu 20.04 HOT 2
- the distroprefs "Filenames" chapter documenting "File path" and "Activating the feature" was a frustrating surprise
- RT-145462: cpan -O chokes on some version numbers
- RT-145462: cpan -g exits with the wrong value
- RT-145462: cpan -g should use the same download mechanism as CPAN.pm HOT 2
- RT-145462: cpan -g does not handle paths, such as AUTHOR/Foo-1.0.tar.gz
- RT-145462: cpan -O version columns are too narrow to show full versions
- RT-145462: HTTP status code check in cpan is too inclusive
- RT-145462: cpan(1) log message uses the wrong key HOT 1
- [feature] Shell completion HOT 4
- Current key unsupported in FIPS mode
- fix INSTALLDIRS for newer PERL versions HOT 2
- Add support for static install
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpanpm.