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

Strawberry Portable 5.40.0.1 installs xs modules in C:\strawberry regardless of where perl is installed #234

Open
halak77 opened this issue Jan 31, 2025 · 2 comments

Comments

@halak77
Copy link

halak77 commented Jan 31, 2025

It is required that multiple version of perl exist on our developemtn systems.
We use a scheme like: C:\out-perl\Perl64-5.40.0.1<portable strawberry installation>\

When I install a cpan module : cpan Archive::Zip it is installed in : C:\strawberry\site ....

I have tried searching for this issue, and I am too dense to find answer. Please help!

@sisyphus
Copy link

sisyphus commented Feb 1, 2025

Sounds like the cpan command is finding and using a different cpan.bat than the one you intend.
Check that you're actually running the perl that you think you're running. - perl -V will tell you.
You could also try specifying the full path to the cpan you want, and see what difference that makes. Something like:

C:\out-perl\Perl64-5.40.0.1\perl\bin\cpan Archive Zip

I think you will eventually find that your setting for the PATH environment variable needs adjusting.

@shawnlaffan
Copy link
Contributor

Sessions using portable shells are usually started by calling the portableshell.bat in the top level of each portable distribution. That sets the various environment variables that are needed.

It might also be worth looking at berrybrew as a tool to manage portable distributions.

@halak77 - can you please advise if it is a path issue? Also, do you have an MSI version installed to C:\strawberry?

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

3 participants