You are not logged in.
Hi all. I am developing an application using Catalyst and Perl, so after the installation of Catalyst::Devel, I need to install DBIx::Class and this is what I am doing :
$ pacpan DBIx::Class
--> DBIx::Class RETRIEVING CPAN INFO
--> Scalar::Util FOUND PKG: perl (already installed)
--> Scope::Guard FOUND PKG: perl-scope-guard (already installed)
--> Storable FOUND PKG: perl (already installed)
--> List::Util FOUND PKG: perl (already installed)
--> Class::C3 FOUND PKG: perl-class-c3 (already installed)
--> DBI FOUND PKG: perl-dbi (in repo)
--> JSON::Any FOUND PKG: perl-json-any (already installed)
--> Class::Accessor::Grouped FOUND PKG: perl-class-accessor-grouped (already installed)
--> SQL::Abstract FOUND PKG: perl-sql-abstract (already installed)
--> SQL::Abstract::Limit FOUND PKG: perl-sql-abstract-limit (already installed)
--> Data::Page FOUND PKG: perl-data-page (already installed)
--> Class::C3::Componentised FOUND PKG: perl-class-c3-componentised (already installed)
--> Carp::Clan FOUND PKG: perl-carp-clan (in repo)
--> Module::Find FOUND PKG: perl-module-find (already installed)
--> Class::Inspector FOUND PKG: perl-class-inspector (already installed)
--> Test::Exception FOUND PKG: perl-test-exception (in repo)
--> DBD::SQLite FOUND PKG: perl-dbd-sqlite (in repo)
--> ExtUtils::MakeMaker FOUND PKG: perl (already installed)
--> Class::Trigger FOUND PKG: perl-class-trigger (already installed)
--> Test::Simple FOUND PKG: perl (already installed)
--> Test::Deep FOUND PKG: perl-test-deep (in repo)
--> DBIx::ContextualFetch FOUND PKG: perl-dbix-contextualfetch (already installed)
==> SUCCESS: generated build script: build_cpan
--> run "./build_cpan" to build and install the packages
--> run "./build_cpan --help" to see the available build options
Runing the script!
$ ./build_cpan
--> building perl-dbix-class
==> Making package: perl-dbix-class 0.08013-1 x86_64 (Tue Apr 14 19:38:04 CEST 2009)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
-> Downloading DBIx-Class-0.08013.tar.gz...
--2009-04-14 19:38:11-- http://search.cpan.org/CPAN/authors/id/ … 013.tar.gz
Resolving search.cpan.org... 84.45.68.23
Connecting to search.cpan.org|84.45.68.23|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://osl.ugr.es/CPAN/authors/id/A/AS/ … 013.tar.gz [following]
--2009-04-14 19:38:11-- http://osl.ugr.es/CPAN/authors/id/A/AS/ … 013.tar.gz
Resolving osl.ugr.es... 150.214.191.24
Connecting to osl.ugr.es|150.214.191.24|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 322992 (315K) [application/x-gzip]
Saving to: `DBIx-Class-0.08013.tar.gz.part'
100%[=============================================================================================================================>] 322,992 236K/s in 1.3s
2009-04-14 19:38:13 (236 KB/s) - `DBIx-Class-0.08013.tar.gz.part' saved [322992/322992]
==> Validating source files with md5sums...
DBIx-Class-0.08013.tar.gz ... Passed
==> Extracting Sources...
-> bsdtar -x -f DBIx-Class-0.08013.tar.gz
==> Entering fakeroot environment...
==> Starting build()...
*** Module::AutoInstall version 1.03
*** Checking for Perl dependencies...
Cannot open >/usr/share/perl5/core_perl/CPAN/Config.pm at /usr/share/perl5/core_perl/CPAN/HandleConfig.pm line 468
CPAN::HandleConfig::_configpmtest('/usr/share/perl5/core_perl/CPAN', '/usr/share/perl5/core_perl/CPAN/Config.pm') called at /usr/share/perl5/core_perl/CPAN/HandleConfig.pm line 534
CPAN::HandleConfig::load('CPAN::HandleConfig') called at inc/Module/AutoInstall.pm line 637
Module::AutoInstall::_load_cpan() called at inc/Module/AutoInstall.pm line 251
Module::AutoInstall::_check_lock(1) called at inc/Module/AutoInstall.pm line 117
Module::AutoInstall::import('Module::AutoInstall', '-core', 'ARRAY(0x12c9538)') called at inc/Module/Install/AutoInstall.pm line 39
Module::Install::AutoInstall::auto_install(undef) called at Makefile.PL line 44
==> ERROR: Build Failed.
Aborting...
I was looking on the inet about this error but it does not appear to be common, does anyone has that problem too?..
Thank you very much in advance and best regards.
Offline
I tried to install perl-dbd-sqlite because of my project uses SQLite engine, from ABS but I was no success. I read this posts : http://bbs.archlinux.org/viewtopic.php?pid=521198 and still nothing. Am I makeing a mistake?
thanks
Offline
That's good that you read the post but what did you try? What were your results?
Offline
Ohh Sorry I forgot that, the results of the step 3 are these :
3. Created a perl-dbd-sqlite (For DBD::SQLite) package from ABS with makepkg, adding the USE_LOCAL_SQLITE option to the PKGBUILD file.
A followed these steps : http://wiki.archlinux.org/index.php/ABS … ild_System
I edited the PGKBUILD and reading another post it says add USE_LOCAL_SQLITE = 1 and I did it as follow :
Line 21 of PKGBUILD :
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendo USE_LOCAL_SQLITE=1 || return 1
after that :
$ makepkg -s
==> Making package: perl-dbd-sqlite 1.14-1 x86_64 (Wed Apr 15 15:27:55 CEST 2009)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
-> Found DBD-SQLite-1.14.tar.gz in build dir
==> Validating source files with md5sums...
DBD-SQLite-1.14.tar.gz ... Passed
==> Extracting Sources...
-> bsdtar -x -f DBD-SQLite-1.14.tar.gz
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
Using DBI 1.607 (for perl 5.010000 on x86_64-linux-thread-multi) installed in /usr/lib/perl5/vendor_perl/auto/DBI/
Writing Makefile for DBD::SQLite
cc -c -I. -I/usr/lib/perl5/vendor_perl/auto/DBI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.14\" -DXS_VERSION=\"1.14\" -fPIC "-I/usr/lib/perl5/core_perl/CORE" -DSQLITE_CORE -DSQLITE_ENABLE_FTS2 -DNDEBUG=1 -DSQLITE_PTR_SZ=8 -DHAVE_USLEEP=1 SQLite.c
.
.
.
.
Running Mkbootstrap for DBD::SQLite ()
chmod 644 SQLite.bs
cp SQLite.bs blib/arch/auto/DBD/SQLite/SQLite.bs
chmod 644 blib/arch/auto/DBD/SQLite/SQLite.bs
rm -f blib/arch/auto/DBD/SQLite/SQLite.so
cc -shared -march=x86-64 -mtune=generic -O2 -pipe -L/usr/local/lib SQLite.o alter.o analyze.o attach.o auth.o btree.o build.o callback.o complete.o date.o dbdimp.o delete.o expr.o fts2.o fts2_hash.o fts2_icu.o fts2_porter.o fts2_tokenizer.o fts2_tokenizer1.o func.o hash.o insert.o legacy.o loadext.o main.o malloc.o opcodes.o os.o os_os2.o os_unix.o os_win.o pager.o parse.o pragma.o prepare.o printf.o random.o select.o table.o tokenize.o trigger.o update.o utf.o util.o vacuum.o vdbe.o vdbeapi.o vdbeaux.o vdbeblob.o vdbefifo.o vdbemem.o vtab.o where.o -o blib/arch/auto/DBD/SQLite/SQLite.so \
\
chmod 755 blib/arch/auto/DBD/SQLite/SQLite.so
Manifying blib/man3/DBD::SQLite.3pm
make: *** No rule to make target `pure_vendo_install', needed by `pure_install'. Stop.
make: *** Waiting for unfinished jobs....
==> ERROR: Build Failed.
Aborting...
So, I was looking on inet for that problem and It seems to be uncommon. Does anyone has that problem?..
Offline
Hey I saw the problem.
Line 21 of PKGBUILD :
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor USE_LOCAL_SQLITE=1 || return 1
I do not know how but I deleted the "r" letter from vendor. now I installed the perl-dbd-sqlite package. SUCCESS.
Now I am trying to install DBIx::Class with pacpan.
Thanks. I will tell you about it in few minutes.
Offline
mmmm I got stuck again :
$pacpan DBIx::Class
--> DBIx::Class RETRIEVING CPAN INFO
--> Scalar::Util FOUND PKG: perl (already installed)
--> Scope::Guard FOUND PKG: perl-scope-guard (already installed)
--> Storable FOUND PKG: perl (already installed)
--> List::Util FOUND PKG: perl (already installed)
--> Class::C3 FOUND PKG: perl-class-c3 (already installed)
--> DBI FOUND PKG: perl-dbi (in repo)
--> JSON::Any FOUND PKG: perl-json-any (already installed)
--> Class::Accessor::Grouped FOUND PKG: perl-class-accessor-grouped (already installed)
--> SQL::Abstract FOUND PKG: perl-sql-abstract (already installed)
--> SQL::Abstract::Limit FOUND PKG: perl-sql-abstract-limit (already installed)
--> Data::Page FOUND PKG: perl-data-page (already installed)
--> Class::C3::Componentised FOUND PKG: perl-class-c3-componentised (already installed)
--> Carp::Clan FOUND PKG: perl-carp-clan (in repo)
--> Module::Find FOUND PKG: perl-module-find (already installed)
--> Class::Inspector FOUND PKG: perl-class-inspector (already installed)
--> Test::Exception FOUND PKG: perl-test-exception (in repo)
--> DBD::SQLite FOUND PKG: perl-dbd-sqlite (in repo)
--> ExtUtils::MakeMaker FOUND PKG: perl (already installed)
--> Class::Trigger FOUND PKG: perl-class-trigger (already installed)
--> Test::Simple FOUND PKG: perl (already installed)
--> Test::Deep FOUND PKG: perl-test-deep (in repo)
--> DBIx::ContextualFetch FOUND PKG: perl-dbix-contextualfetch (already installed)
==> SUCCESS: generated build script: build_cpan
--> run "./build_cpan" to build and install the packages
--> run "./build_cpan --help" to see the available build options
$ ./build_cpan
--> building perl-dbix-class
==> Making package: perl-dbix-class 0.08013-1 x86_64 (Wed Apr 15 15:37:48 CEST 2009)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
-> Found DBIx-Class-0.08013.tar.gz in build dir
==> Validating source files with md5sums...
DBIx-Class-0.08013.tar.gz ... Passed
==> Extracting Sources...
-> bsdtar -x -f DBIx-Class-0.08013.tar.gz
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
*** Module::AutoInstall version 1.03
*** Checking for Perl dependencies...
Cannot open >/usr/share/perl5/core_perl/CPAN/Config.pm at /usr/share/perl5/core_perl/CPAN/HandleConfig.pm line 468
CPAN::HandleConfig::_configpmtest('/usr/share/perl5/core_perl/CPAN', '/usr/share/perl5/core_perl/CPAN/Config.pm') called at /usr/share/perl5/core_perl/CPAN/HandleConfig.pm line 534
CPAN::HandleConfig::load('CPAN::HandleConfig') called at inc/Module/AutoInstall.pm line 637
Module::AutoInstall::_load_cpan() called at inc/Module/AutoInstall.pm line 251
Module::AutoInstall::_check_lock(1) called at inc/Module/AutoInstall.pm line 117
Module::AutoInstall::import('Module::AutoInstall', '-core', 'ARRAY(0x1211538)') called at inc/Module/Install/AutoInstall.pm line 39
Module::Install::AutoInstall::auto_install(undef) called at Makefile.PL line 44
==> ERROR: Build Failed.
Aborting...
I did not touch anything this time. :S Does anybody has the same problem?.
thanks in advance and best regards.
Offline
Good job on DBD::SQLite! I have never seen your other error myself, though. I would try to initialize the CPAN shell if you have never used it before. Run '/usr/bin/perlbin/core/cpan' at your shell to start CPAN. Answer all the questions with the defaults (pressing enter), but you might want to change the mirrors. This will create a configuration file for your user.
My theory: Module::AutoInstall uses CPAN to find the DBIx::Class module's dependencies and CPAN must be having trouble loading without being setup for the first time.
Offline
Just a quick note to say that initialising CPAN fixes the Cannot open >/usr/share/perl5/core_perl/CPAN/Config.pm problem.
Kind regards
Benedict White
Offline