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

DateTime.pm v075 do not install into x86_64-linux folder #40

Closed
autarch opened this issue Nov 12, 2016 · 1 comment
Closed

DateTime.pm v075 do not install into x86_64-linux folder #40

autarch opened this issue Nov 12, 2016 · 1 comment
Labels

Comments

@autarch
Copy link
Member

autarch commented Nov 12, 2016

Migrated from rt.cpan.org #77920 (status was 'stalled')

Requestors:

From morten.bjornsvik@evry.com on 2012-06-20 11:34:12:

Hi all

I tried to upgrade DateTime from v0.50 to V.75

DateTime installs here:
:
Prepending /root/.cpan/build/DateTime-0.75-SOd13E/blib/arch /root/.cpan/build/DateTime-0.75-SOd13E/blib/lib to PERL5LIB for 'install'
Building DateTime
Installing /opt/perl/lib/site_perl/5.8.9/DateTime.pm
Installing /opt/perl/lib/site_perl/5.8.9/DateTimePP.pm
Installing /opt/perl/lib/site_perl/5.8.9/DateTimePPExtra.pm
Installing /opt/perl/lib/site_perl/5.8.9/DateTime/Duration.pm
Installing /opt/perl/lib/site_perl/5.8.9/DateTime/Helpers.pm
Installing /opt/perl/lib/site_perl/5.8.9/DateTime/Infinite.pm
Installing /opt/perl/lib/site_perl/5.8.9/DateTime/LeapSecond.pm
Installing /opt/perl/man/man3/DateTime::Infinite.3
Installing /opt/perl/man/man3/DateTime.3
Installing /opt/perl/man/man3/DateTime::Duration.3
Installing /opt/perl/man/man3/DateTime::LeapSecond.3
DROLSKY/DateTime-0.75.tar.gz
./Build install -- OK

But when I run:
/opt/perl/bin/perl -e 'use DateTime; print "$DateTime::VERSION\n";'
0.50

cat /opt/perl/lib/site_perl/5.8.9/DateTime.pm | grep DateTime::VERSION
$DateTime::VERSION = '0.75';
$serialized .= "version:$DateTime::VERSION";

find /opt/perl/ -name 'DateTime.pm'
/opt/perl/lib/site_perl/5.8.9/x86_64-linux/DateTime.pm
/opt/perl/lib/site_perl/5.8.9/DateTime.pm

cat /opt/perl/lib/site_perl/5.8.9/x86_64-linux/DateTime.pm | grep VERSION
our $VERSION;
$VERSION = '0.50';
XSLoader::load( 'DateTime', $DateTime::VERSION );
$serialized .= "version:$VERSION";

So it seems to me it is forgetting to install under /opt/perl/lib/site_perl/5.8.9/x86_64-linux/

Doing this as root seem to fix it:
cp -rv /opt/perl/lib/site_perl/5.8.9/DateTime* /opt/perl/lib/site_perl/5.8.9/x86_64-linux/

Then most of our code seem to work fine.

A bit ugly?
Is it my custom build perl 5.8.9 under /opt/perl that confuses it?
I'm building on an opensuse 11.4 X86_64 with system perl 5.12.3

Thanks

Morten Bjoernsvik
Senior Developer Secana
Evry Card Services AS

@autarch
Copy link
Member Author

autarch commented Nov 12, 2016

From autarch@urth.org (@autarch) on 2012-06-20 16:39:17:

On Wed, 20 Jun 2012, Bjørnsvik Morten via RT wrote:

I tried to upgrade DateTime from v0.50 to V.75

DateTime installs here:
:
Prepending /root/.cpan/build/DateTime-0.75-SOd13E/blib/arch /root/.cpan/build/DateTime-0.75-SOd13E/blib/lib to PERL5LIB for 'install'
Building DateTime
Installing /opt/perl/lib/site_perl/5.8.9/DateTime.pm
Installing /opt/perl/lib/site_perl/5.8.9/DateTimePP.pm
Installing /opt/perl/lib/site_perl/5.8.9/DateTimePPExtra.pm
Installing /opt/perl/lib/site_perl/5.8.9/DateTime/Duration.pm
Installing /opt/perl/lib/site_perl/5.8.9/DateTime/Helpers.pm
Installing /opt/perl/lib/site_perl/5.8.9/DateTime/Infinite.pm
Installing /opt/perl/lib/site_perl/5.8.9/DateTime/LeapSecond.pm
Installing /opt/perl/man/man3/DateTime::Infinite.3
Installing /opt/perl/man/man3/DateTime.3
Installing /opt/perl/man/man3/DateTime::Duration.3
Installing /opt/perl/man/man3/DateTime::LeapSecond.3
DROLSKY/DateTime-0.75.tar.gz
./Build install -- OK

My guess is that for some reason DateTime thought it couldn't compile XS
on your system (see the actual shipped Build.PL for how it determines
this).

Why it thought this, I couldn't tell you, but I'd suggest starting by
installing Module::Build from CPAN, which will pull in all the required
C-building deps.

-dave

/============================================================
http://VegGuide.org http://blog.urth.org
Your guide to all that's veg House Absolute(ly Pointless)
============================================================
/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant