Comments (13)
I have no idea since this is a terrible way to report an issue.
Run perl -v
(and -V) to see which version of the perl you're using, and make sure you use the perl for 5.20.1 you just installed.
from plenv.
$ perl -v
This is perl 5, version 20, subversion 1 (v5.20.1) built for darwin-2level
Copyright 1987-2014, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
dmarr@dmarr ~ $ perl -V
Summary of my perl5 (revision 5 version 20 subversion 1) configuration:
Platform:
osname=darwin, osvers=13.4.0, archname=darwin-2level
uname='darwin dmarr.local 13.4.0 darwin kernel version 13.4.0: sun aug 17 19:50:11 pdt 2014; root:xnu-2422.115.4~1release_x86_64 x86_64 '
config_args='-Dprefix=/opt/boxen/plenv/versions/5.20.1 -de -Dusedevel -A'eval:scriptdir=/opt/boxen/plenv/versions/5.20.1/bin''
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector',
optimize='-O3',
cppflags='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector'
ccversion='', gccversion='4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.51)', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -fstack-protector'
libpth=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0/lib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib /usr/lib
libs=-ldbm -ldl -lm -lutil -lc
perllibs=-ldl -lm -lutil -lc
libc=, so=dylib, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP
PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV
PERL_USE_DEVEL USE_64_BIT_ALL USE_64_BIT_INT
USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE
USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO
USE_PERL_ATOF
Built under darwin
Compiled at Oct 18 2014 11:37:45
@INC:
/opt/boxen/plenv/versions/5.20.1/lib/perl5/site_perl/5.20.1/darwin-2level
/opt/boxen/plenv/versions/5.20.1/lib/perl5/site_perl/5.20.1
/opt/boxen/plenv/versions/5.20.1/lib/perl5/5.20.1/darwin-2level
/opt/boxen/plenv/versions/5.20.1/lib/perl5/5.20.1
.
from plenv.
Particularly the Template one. I am trying to run that, and it is not found in my @inc.
Run what?
when you say "my @INC
" which INC directories?
What's the error message you got?
When you ran migrate-modules which directories did it install into?
i'm sure by answering them the solution would be obvious and i suspect you're not running that perl you just pasted.
from plenv.
So I am trying to just:
plenv exec perl -e 'use Template'
Can't locate Template.pm in @INC (you may need to install the Template module) (@INC contains: /opt/boxen/plenv/versions/5.20.1/lib/perl5/site_perl/5.20.1/darwin-2level /opt/boxen/plenv/versions/5.20.1/lib/perl5/site_perl/5.20.1 /opt/boxen/plenv/versions/5.20.1/lib/perl5/5.20.1/darwin-2level /opt/boxen/plenv/versions/5.20.1/lib/perl5/5.20.1 .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
I ran migrate-modules but I am not sure what dirs it installed the modules into. Is there a way to find that out?
from plenv.
The cpanm log should be found somewhere in ~/.cpanm/work/
.
from plenv.
I see some dirs in there and they look to contain the actual modules themselves.
from plenv.
sigh there's a build.log
file in those directories and you can see the actual log.
from plenv.
Sorry bout that. Here is an example of a build.log:
Installing /opt/boxen/plenv/versions/5.20.1/lib/perl5/site_perl/5.20.1/darwi n-2level/.meta/App-cpanminus-1.7014/MYMETA.json
Other build.log files there are pointing to my old perl install:
Installing /Users/dmarr/perl5/perlbrew/perls/perl-blead/lib/site_perl/5.19.6 /darwin-2level/.meta/strictures-1.005005/install.json
from plenv.
What about the log that installs Template?
from plenv.
If newer invocation of cpanm and migrate-modules run was installing them
into your old perlbrew that is your setup being wrong and have cpanm in
perlbrew PATH. (Run which cpanm
)
You basically have to nuke perlbrew environment before all of this since
obviously it will conflict.
from plenv.
which cpanm
points to /opt/boxen/plenv/shims/cpanm
I ran plenv migrate-modules system 5.20.1 and got a failure. Here is the relevant build.log: tail build.log
APACHE_TEST_PORT= APACHE_TEST_HTTPD= APACHE_TEST_USER= APACHE_TEST_GROUP= APACHE_TEST_APXS= \
/opt/boxen/plenv/versions/5.20.1/bin/perl5.20.1 -Iblib/arch -Iblib/lib \
t/TEST -bugreport -verbose=0
[warning] setting ulimit to allow core files
ulimit -c unlimited; /opt/boxen/plenv/versions/5.20.1/bin/perl5.20.1 /Users/dmarr/.cpanm/work/1413677072.84000/mod_perl-2.0.8/t/TEST -bugreport -verbose=0
/usr/sbin/httpd -d /Users/dmarr/.cpanm/work/1413677072.84000/mod_perl-2.0.8/t -f /Users/dmarr/.cpanm/work/1413677072.84000/mod_perl-2.0.8/t/conf/httpd.conf -D APACHE2
using Apache/2.2.26 (prefork MPM)
waiting 120 seconds for server to start: .httpd: Syntax error on line 205 of /Users/dmarr/.cpanm/work/1413677072.84000/mod_perl-2.0.8/t/conf/httpd.conf: Cannot load /Users/dmarr/.cpanm/work/1413677072.84000/mod_perl-2.0.8/src/modules/perl/mod_perl.so into server: dlopen(/Users/dmarr/.cpanm/work/1413677072.84000/mod_perl-2.0.8/src/modules/perl/mod_perl.so, 10): Symbol not found: _modperl_handler_name\n Referenced from: /Users/dmarr/.cpanm/work/1413677072.84000/mod_perl-2.0.8/src/modules/perl/mod_perl.so\n Expected in: dynamic lookup\n
from plenv.
That is not really relevant because it is just a failure of installing
mod_perl. It should've installed other modules just fine no?
Can you please more specific and not strip the part you think is not
important but actually is? There have been so many unnecessary back and
forth because you supply info just arbitrarily.
from plenv.
Well I ended up running the migrate task again and it seems to be working this time. I imagine it was something to do with perlbrew still being in the environment.
Thanks for the help.
from plenv.
Related Issues (20)
- "man perl" shows system Perl manual under local Perl dir (.perl-version) HOT 3
- homebrew plenv v2.3.0 is claiming it is 2.2.0 HOT 1
- Homebrew shows incorrect plenv versioning HOT 1
- no backend configured for scheme https HOT 7
- Plenv to control additional Perl lib paths (PERL5LIB env var?) HOT 7
- Complain about active local::lib in ~/perl5
- plenv install fails with "newer" Perls HOT 3
- failure when attempting to install any Perl version on macOS Big Sur HOT 8
- Separate GitHub Organization for plenv
- Use plenv-rehash to install the hooks from plugins
- How to use with wayland? HOT 2
- Respect .perl-version through symlinks?
- No problem to install-cpanm, but failed to find cpanm command HOT 6
- Thank you - seems to work in ksh93 HOT 1
- plenv should update MANPATH so that man pages installed in a plenv-managed Perl are found HOT 5
- install-cpanm Fails: ERROR: Cannot find the tarball for perl-cpanm HOT 2
- mxcl. in link
- plenv: no such command `shell'
- To support environments except bash/zsh( such as csh)
- `plenv migrate-modules` may break List::Util(and cpanm)
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 plenv.