undefined symbol: Perl_Istack_sp_ptr when Installing with ActivePerl

404 views
Skip to first unread message

Krasimir Berov

unread,
Mar 7, 2015, 5:04:30 AM3/7/15
to ado...@googlegroups.com
Francisco wrote:

Finally I could find sometime to follow on this...

I did install ActivePerl:

[fortizmu@web433 Ado-0.83]$ which perl
~/lib/perl5/perls/ActivePerl-
5.18/bin/perl

[fortizmu@web433 Ado-0.83]$ perl -v
This is perl 5, version 18, subversion 4 (v5.18.4) built for x86_64-linux-thread-multi
(with 1 registered patch, see perl -V for more detail)

When I try to install Ado, I get the following message:
[fortizmu@web433 Ado-0.83]$ perl Build.PL --install_base /home/fortizmu/lib/perl5/lib/perl5
perl: symbol lookup error: /home/fortizmu/lib/perl5/lib64/perl5/auto/version/vxs/vxs.so: undefined symbol: Perl_Istack_sp_ptr

I've been reading it might be a matter regarding of mixing Perl "local" installations (in this case ActivePerl) with system wide Perl.
Also, I've tried to set some variables on my environment (PATH, PERL5LIB), but no result.

Might you have a hint?

Thanks and have a nice weekend!

Krasimir Berov

unread,
Mar 7, 2015, 5:25:10 AM3/7/15
to ado...@googlegroups.com
Hi Francisco,
Looks like the problem is exactly this. You have somewhere in your $PERL5LIB or $PATH a path which in this case goes before the ActivePerl one.
Other people faced this problem too:
http://www.perlmonks.org/?node_id=968826

Try the following:

#1. Find which perl you are using? In my case it shows the following
$ which perl
/home/berov/opt/ActivePerl-5.18/bin/perl

To set it add the path to .bashrc. In my case I have:
PATH=$MYOPT/ActivePerl-5.18/site/bin:$MYOPT/ActivePerl-5.18/bin:$PATH
export PATH;
#2. Do not put in $PERL5LIB additional folders. when running Ado.
Well you can, but the main Idea is to try to not mess up paths.
Check your $PERL5LIB. I put there only my stuff while developing:
echo $PERL5LIB
/home/berov/opt/public_dev/mojolicious-plugin-assetpack/lib:/home/berov/opt/public_dev/mojo/lib:/home/berov/opt/public_dev/Ado-Plugin-Admin/lib:/home/berov/opt/public_dev/Ado/lib

If you own the machine or have access to gcc, you can use also perlbrew (https://metacpan.org/pod/distribution/App-perlbrew/bin/perlbrew)
see also https://metacpan.org/pod/Ado::Manual::Installation

fortizmu

unread,
Mar 7, 2015, 7:46:31 PM3/7/15
to ado...@googlegroups.com
Hello Krasi,

I was able to install Ado! :-)

After I could install a local perl version with perlbrew (perlbrew install perl-5.16.0), then
1) I cleared up my PERL5LIB and deleted local lib directories 

2) Installed Mojolicious with cpanm
[fortizmu@web433 ~]$ which mojo
~/lib/perl5/perls/perl-5.18.0/bin/mojo

3) Installed Ado... in two steps
3.1) the first run of "cpanm Ado" got stuck at some point...

[fortizmu@web433 perl5]$ cpanm Ado
--> Working on Ado
Configuring Ado-0.83 ... OK
==> Found dependencies: Mojolicious::Plugin::DSC, Locale::Maketext, DBIx::Simple::Class, Text::MultiMarkdown, Mojolicious::Plugin::SemanticUI, Email::Address
--> Working on Mojolicious::Plugin::DSC
Configuring Mojolicious-Plugin-DSC-1.004 ... OK
==> Found dependencies: DBIx::Simple::Class
--> Working on DBIx::Simple::Class
Configuring DBIx-Simple-Class-1.008 ... OK
==> Found dependencies: DBIx::Simple, DBD::SQLite
--> Working on DBIx::Simple
Configuring DBIx-Simple-1.35 ... OK
==> Found dependencies: DBI
--> Working on DBI
Configuring DBI-1.633 ... OK
Building and testing DBI-1.633 ...

but stays after more than 15min...

[fortizmu@web433 ~]$  ps -u fortizmu -o rss,etime,pid,command
  RSS     ELAPSED   PID COMMAND
21208       16:02 30703 perl /home/fortizmu/lib/perl5/bin/cpanm Ado


3.2) Then run again (after starting again a shell)


[fortizmu@web433 perls]$ cpanm Ado

.....
/bin/tar: Ignoring unknown extended header keyword `SCHILY.nlink'
/bin/tar: Ignoring unknown extended header keyword `SCHILY.dev'
/bin/tar: Ignoring unknown extended header keyword `SCHILY.ino'
/bin/tar: Ignoring unknown extended header keyword `SCHILY.nlink'
/bin/tar: Ignoring unknown extended header keyword `SCHILY.dev'
/bin/tar: Ignoring unknown extended header keyword `SCHILY.ino'
/bin/tar: Ignoring unknown extended header keyword `SCHILY.nlink'
/bin/tar: Ignoring unknown extended header keyword `SCHILY.dev'
/bin/tar: Ignoring unknown extended header keyword `SCHILY.ino'
/bin/tar: Ignoring unknown extended header keyword `SCHILY.nlink'
/bin/tar: Ignoring unknown extended header keyword `SCHILY.dev'
/bin/tar: Ignoring unknown extended header keyword `SCHILY.ino'
/bin/tar: Ignoring unknown extended header keyword `SCHILY.nlink'
/bin/tar: Ignoring unknown extended header keyword `SCHILY.dev'
/bin/tar: Ignoring unknown extended header keyword `SCHILY.ino'
/bin/tar: Ignoring unknown extended header keyword `SCHILY.nlink'
/bin/tar: Ignoring unknown extended header keyword `SCHILY.dev'
/bin/tar: Ignoring unknown extended header keyword `SCHILY.ino'
/bin/tar: Ignoring unknown extended header keyword `SCHILY.nlink'
/bin/tar: Ignoring unknown extended header keyword `SCHILY.dev'
/bin/tar: Ignoring unknown extended header keyword `SCHILY.ino'
/bin/tar: Ignoring unknown extended header keyword `SCHILY.nlink'
Configuring Text-MultiMarkdown-1.000035 ... OK
==> Found dependencies: HTML::Entities, List::MoreUtils, Test::Exception, Text::Markdown
--> Working on HTML::Entities
Configuring HTML-Parser-3.71 ... OK
==> Found dependencies: HTML::Tagset
--> Working on HTML::Tagset
Configuring HTML-Tagset-3.20 ... OK
Building and testing HTML-Tagset-3.20 ... OK
Successfully installed HTML-Tagset-3.20
Building and testing HTML-Parser-3.71 ... OK
Successfully installed HTML-Parser-3.71
--> Working on List::MoreUtils
Configuring List-MoreUtils-0.406 ... OK
==> Found dependencies: Exporter::Tiny
--> Working on Exporter::Tiny
Configuring Exporter-Tiny-0.042 ... OK
Building and testing Exporter-Tiny-0.042 ... OK
Successfully installed Exporter-Tiny-0.042
Building and testing List-MoreUtils-0.406 ... OK
Successfully installed List-MoreUtils-0.406
--> Working on Test::Exception
Configuring Test-Exception-0.38 ... OK
==> Found dependencies: Sub::Uplevel
--> Working on Sub::Uplevel
Configuring Sub-Uplevel-0.25 ... OK
Building and testing Sub-Uplevel-0.25 ... OK
Successfully installed Sub-Uplevel-0.25
Building and testing Test-Exception-0.38 ... OK
Successfully installed Test-Exception-0.38
--> Working on Text::Markdown
Configuring Text-Markdown-1.000031 ... OK
==> Found dependencies: Test::Differences
--> Working on Test::Differences
Configuring Test-Differences-0.63 ... OK
==> Found dependencies: Text::Diff, Capture::Tiny
--> Working on Text::Diff
Configuring Text-Diff-1.41 ... OK
==> Found dependencies: Algorithm::Diff
--> Working on Algorithm::Diff
Configuring Algorithm-Diff-1.1903 ... OK
Building and testing Algorithm-Diff-1.1903 ... OK
Successfully installed Algorithm-Diff-1.1903
Building and testing Text-Diff-1.41 ... OK
Successfully installed Text-Diff-1.41
--> Working on Capture::Tiny
Configuring Capture-Tiny-0.28 ... OK
Building and testing Capture-Tiny-0.28 ... OK
Successfully installed Capture-Tiny-0.28
Building and testing Test-Differences-0.63 ... OK
Successfully installed Test-Differences-0.63
Building and testing Text-Markdown-1.000031 ... OK
Successfully installed Text-Markdown-1.000031
Building and testing Text-MultiMarkdown-1.000035 ... OK
Successfully installed Text-MultiMarkdown-1.000035
Building and testing Ado-0.83 ... OK
Successfully installed Ado-0.83
15 distributions installed
[fortizmu@web433 perls]$
[fortizmu@web433 perls]$ which ado
~/lib/perl5/perls/perl-5.18.0/bin/ado


Now I have just to figure out how to run a script based on Ado/Mojolicious on my hosting...


Thanks very much for your support!

Francisco

Krasimir Berov

unread,
Mar 7, 2015, 8:10:09 PM3/7/15
to ado...@googlegroups.com
Great news :)
Well it takes time the first time because of the dependencies. Notice that Ado it self instals quickly.

Ado is a regular Mojo application.
You only need to create a controller under the Ado::Control namespace
I hope you have read http://mojolicio.us/perldoc/Mojolicious/Guides/Growing
Ado is build following these principles.

You can try
$ ado generate crud
to generate a stub set of files
or
$ ado generate adoplugin

Also look at
$ ado generate apache2vhost
$ ado generate apache2htaccess
if you want to run ado with Apache and fcgid

Run these commands and read the help messages

Wish you success!
Reply all
Reply to author
Forward
0 new messages