Modify

Opened 6 years ago

Last modified 4 years ago

#10073 new defect

Can't locate DBI/DBD.pm in @INC when trying to compile DBI:mysql

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: dbi-mysql Cc:

Description

I am trying to build mysql package but it fails due to DBD.pm not found problem.

my make file is:

# $Id

include $(TOPDIR)/rules.mk

PKG_NAME:=perl-mysql
PKG_VERSION:=4.020
PKG_RELEASE:=1
PKG_MD5SUM:=a2bf8808bbd45298e84dde06afbd58e9

PKG_SOURCE_URL:=http://ftp.esat.net/pub/languages/perl/CPAN/authors/id/C/CA/CAPTTOFU
PKG_SOURCE:=DBD-mysql-$(PKG_VERSION).tar.gz
PKG_CAT:=zcat

PKG_BUILD_DIR:=$(BUILD_DIR)/perl/DBD-mysql-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk
include ../perl/perlmod.mk

define Package/perl-mysql
SUBMENU:=Perl
SECTION:=lang
CATEGORY:=Languages
TITLE:=DBD driver for mySQL
URL:=http://search.cpan.org/~capttofu/DBD-mysql
DEPENDS:=perl +perlbase-essential +perl-dbi
endef

define Build/Configure

$(call perlmod/Configure)

endef

define Build/Compile

$(call perlmod/Compile)

endef

define Package/perl-mysql/install

$(call perlmod/Install,$(1))

endef

$(eval $(call BuildPackage,perl-mysql))

build command make package/feeds/packages/perl-mysql/compile V=99

And I am getting response:

make[2]: Entering directory `/home/kris79/openwrt2/trunk/package/feeds/packages/perl-mysql'
(cd /home/kris79/openwrt2/trunk/build_dir/target-mips_r2_uClibc-0.9.32/perl/DBD-mysql-4.020; PERL5LIB=/home/kris79/openwrt2/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/perl5/5.10 PERL_MM_USE_DEFAULT=1 /home/kris79/openwrt2/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/bin/perl Makefile.PL PERL_LIB=/home/kris79/openwrt2/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/perl5/5.10 PERL_ARCHLIB=/home/kris79/openwrt2/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/perl5/5.10 INSTALLSITELIB=/usr/lib/perl5/5.10 INSTALLSITEARCH=/usr/lib/perl5/5.10 DESTDIR=/home/kris79/openwrt2/trunk/build_dir/target-mips_r2_uClibc-0.9.32/perl/DBD-mysql-4.020/ipkg-install );
Can't locate DBI/DBD.pm in @INC (@INC contains: /home/kris79/openwrt2/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/perl5/5.10 /usr/local/lib/perl5/5.10.0/i686-linux /usr/local/lib/perl5/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i686-linux /usr/local/lib/perl5/site_perl/5.10.0 /home/kris79/openwrt2/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/perl5/5.10 .) at Makefile.PL line 25.
make[2]: * /home/kris79/openwrt2/trunk/build_dir/target-mips_r2_uClibc-0.9.32/perl/DBD-mysql-4.020/.configured_ Error 2
make[2]: Leaving directory `/home/kris79/openwrt2/trunk/package/feeds/packages/perl-mysql'
make[1]:
* [package/feeds/packages/perl-mysql/compile] Error 2
make[1]: Leaving directory `/home/kris79/openwrt2/trunk'
make: * [package/feeds/packages/perl-mysql/compile] Error 2

Any advise on this one ?? Where make package/feeds/packages/perl-dbi/compile
finishes fine ?

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by Norbert

add:

define Build/InstallDev
	$(call perlmod/Install,$(1),DB* auto/DBI,DBI/W32ODBC.pm auto/DBI/*.h)
endef

to feeds/packages/lang/perl-dbi

comment:2 Changed 4 years ago by anonymous

That gets the DBI module material installed. The last remaining barrier to compiling the DBD drvier is solving the dynamic module loading during build. With the patch mentioned above you'll now get a version check failure that is actually due to the host-perl binary not supporting dynamic module loading.
Not sure how to get around it yet.

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.