GithubHelp home page GithubHelp logo

Comments (13)

miyagawa avatar miyagawa commented on September 25, 2024

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.

marr avatar marr commented on September 25, 2024

$ 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.

miyagawa avatar miyagawa commented on September 25, 2024

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.

marr avatar marr commented on September 25, 2024

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.

miyagawa avatar miyagawa commented on September 25, 2024

The cpanm log should be found somewhere in ~/.cpanm/work/.

from plenv.

marr avatar marr commented on September 25, 2024

I see some dirs in there and they look to contain the actual modules themselves.

from plenv.

miyagawa avatar miyagawa commented on September 25, 2024

sigh there's a build.log file in those directories and you can see the actual log.

from plenv.

marr avatar marr commented on September 25, 2024

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.

miyagawa avatar miyagawa commented on September 25, 2024

What about the log that installs Template?

from plenv.

miyagawa avatar miyagawa commented on September 25, 2024

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.

marr avatar marr commented on September 25, 2024

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.

miyagawa avatar miyagawa commented on September 25, 2024

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.

marr avatar marr commented on September 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.