local module path (PREFIX) not used in tests

local module path (PREFIX) not used in tests

am 11.11.2002 14:22:11 von Jens Harms

Hi,
i want to install dbd-mysql-2.1020 on unix, but i'm not root.

i tried this:
perl Makefile.PL PREFIX=$HOME/src/perl/modules
make
make test

the output:

t/insertid..........Can't locate DBI.pm in @INC (@INC contains: blib/arch
blib/lib /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503) at t/insertid.t line 4.
BEGIN failed--compilation aborted at t/insertid.t line 4.
dubious


i think Makefile.PL should prepend the following code to any test program:

unshift( @INC, $PREFIX );
( eg. unshift(@INC, "/home/jojo/localperlmodules" )


Jens Harms ( jens.harms@informatik.uni-oldenburg.de )



------------------------------------------------------------ ---------
Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
posting. To request this thread, e-mail msql-mysql-modules-thread1969@lists.mysql.com

To unsubscribe, send a message to the address shown in the
List-Unsubscribe header of this message. If you cannot see it,
e-mail msql-mysql-modules-unsubscribe@lists.mysql.com instead.

Re: local module path (PREFIX) not used in tests

am 11.11.2002 15:13:34 von fision

"make test" is complaining about another module, named "DBI". You have to=
=20
install this module before any DBD::*.
In fact, you have to use this module (which uses DBD::mysql) in your prog=
rams.

PREFIX problems would apeard when you will try to install it.

Ni=F1o Fision




El Lun 11 Nov 2002 10:22, Jens Harms escribi=F3:
> Hi,
> i want to install dbd-mysql-2.1020 on unix, but i'm not root.
>
> i tried this:
> perl Makefile.PL PREFIX=3D$HOME/src/perl/modules
> make
> make test
>
> the output:
>
> t/insertid..........Can't locate DBI.pm in @INC (@INC contains: blib/ar=
ch
> blib/lib /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503
> /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
> /usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach
> /usr/libdata/perl/5.00503
> /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
> /usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach
> /usr/libdata/perl/5.00503) at t/insertid.t line 4.
> BEGIN failed--compilation aborted at t/insertid.t line 4.
> dubious
>
>
> i think Makefile.PL should prepend the following code to any test progr=
am:
>
> unshift( @INC, $PREFIX );
> ( eg. unshift(@INC, "/home/jojo/localperlmodules" )
>
>
> Jens Harms ( jens.harms@informatik.uni-oldenburg.de )
>
>
>
> ------------------------------------------------------------ ---------
> Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" befo=
re
> posting. To request this thread, e-mail
> msql-mysql-modules-thread1969@lists.mysql.com
>
> To unsubscribe, send a message to the address shown in the
> List-Unsubscribe header of this message. If you cannot see it,
> e-mail msql-mysql-modules-unsubscribe@lists.mysql.com instead.


------------------------------------------------------------ ---------
Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
posting. To request this thread, e-mail msql-mysql-modules-thread1970@lists.mysql.com

To unsubscribe, send a message to the address shown in the
List-Unsubscribe header of this message. If you cannot see it,
e-mail msql-mysql-modules-unsubscribe@lists.mysql.com instead.

Re: local module path (PREFIX) not used in tests

am 11.11.2002 15:13:34 von fision

"make test" is complaining about another module, named "DBI". You have to=
=20
install this module before any DBD::*.
In fact, you have to use this module (which uses DBD::mysql) in your prog=
rams.

PREFIX problems would apeard when you will try to install it.

Ni=F1o Fision




El Lun 11 Nov 2002 10:22, Jens Harms escribi=F3:
> Hi,
> i want to install dbd-mysql-2.1020 on unix, but i'm not root.
>
> i tried this:
> perl Makefile.PL PREFIX=3D$HOME/src/perl/modules
> make
> make test
>
> the output:
>
> t/insertid..........Can't locate DBI.pm in @INC (@INC contains: blib/ar=
ch
> blib/lib /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503
> /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
> /usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach
> /usr/libdata/perl/5.00503
> /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
> /usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach
> /usr/libdata/perl/5.00503) at t/insertid.t line 4.
> BEGIN failed--compilation aborted at t/insertid.t line 4.
> dubious
>
>
> i think Makefile.PL should prepend the following code to any test progr=
am:
>
> unshift( @INC, $PREFIX );
> ( eg. unshift(@INC, "/home/jojo/localperlmodules" )
>
>
> Jens Harms ( jens.harms@informatik.uni-oldenburg.de )
>
>
>
> ------------------------------------------------------------ ---------
> Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" befo=
re
> posting. To request this thread, e-mail
> msql-mysql-modules-thread1969@lists.mysql.com
>
> To unsubscribe, send a message to the address shown in the
> List-Unsubscribe header of this message. If you cannot see it,
> e-mail msql-mysql-modules-unsubscribe@lists.mysql.com instead.


------------------------------------------------------------ ---------
Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
posting. To request this thread, e-mail msql-mysql-modules-thread1970@lists.mysql.com

To unsubscribe, send a message to the address shown in the
List-Unsubscribe header of this message. If you cannot see it,
e-mail msql-mysql-modules-unsubscribe@lists.mysql.com instead.

Re: local module path (PREFIX) not used in tests

am 11.11.2002 15:49:01 von Jens Harms

thank you. another problem apears if i try to install:

the makefile from DBD-mysql does not make use of PREFIX.

.perl Makefile.PL PREFIX=3D$HOME/local
.make install
.mkdir /usr/local/lib/perl5: Permission denied at
./usr/libdata/perl/5.00503/ExtUtils/Install.pm line 58


SOLUTION: installing DBD-mysql and DBI on UNIX without root permissons:
http://faqomatic.sourceforge.net/fom-serve/cache/437.html

Summary:
1. download DBD, DBI modules
2. untar, ungzip
3. HOME=3Dyour local home directory <-- normaly already defined)
mkdir $HOME/local
mkdir $HOME/lib
mkdir $HOME/bin
export PERL5LIB=3D$HOME/lib/perl5:$HOME/lib/perl5/site_perl
( perl5lib is used to find perl modules, 'export' is known by bash )
4. CREATE FILE $HOME/perl-local
---- FILE: ~/perl-local -------------------------
PREFIX=3D$HOME/local \
INSTALLPRIVLIB=3D$HOME/local/lib/perl5 \
INSTALLSCRIPT=3D$HOME/local/bin \
INSTALLSITELIB=3D$HOME/local/lib/perl5/site_perl \
INSTALLBIN=3D$HOME/local/bin \
INSTALLMAN1DIR=3D$HOME/local/lib/perl5/man \
INSTALLMAN3DIR=3D$HOME/local/lib/perl5/man/man3
--------------------------------------------------
5. cd path-to-dbi-files
6. perl Makefile.PL `cat ~/perl-local`
7. make / make test / make install
8. cd path-to-dbd-files
9. perl Makefile.PL `cat ~/perl-local`
10. make / make test / make install


OK. the clue is the PERL5LIB environment variable.



On Mon, 11 Nov 2002, Ni=F1o Fision wrote:
> "make test" is complaining about another module, named "DBI". You have to
> install this module before any DBD::*.
> In fact, you have to use this module (which uses DBD::mysql) in your prog=
rams.
>
> PREFIX problems would apeard when you will try to install it.

> El Lun 11 Nov 2002 10:22, Jens Harms escribi=F3:
> > Hi,
> > i want to install dbd-mysql-2.1020 on unix, but i'm not root.
> > t/insertid..........Can't locate DBI.pm in @INC (@INC contains: blib/ar=
ch


------------------------------------------------------------ ---------
Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
posting. To request this thread, e-mail msql-mysql-modules-thread1971@lists.mysql.com

To unsubscribe, send a message to the address shown in the
List-Unsubscribe header of this message. If you cannot see it,
e-mail msql-mysql-modules-unsubscribe@lists.mysql.com instead.

Re: local module path (PREFIX) not used in tests

am 11.11.2002 15:49:01 von Jens Harms

thank you. another problem apears if i try to install:

the makefile from DBD-mysql does not make use of PREFIX.

.perl Makefile.PL PREFIX=3D$HOME/local
.make install
.mkdir /usr/local/lib/perl5: Permission denied at
./usr/libdata/perl/5.00503/ExtUtils/Install.pm line 58


SOLUTION: installing DBD-mysql and DBI on UNIX without root permissons:
http://faqomatic.sourceforge.net/fom-serve/cache/437.html

Summary:
1. download DBD, DBI modules
2. untar, ungzip
3. HOME=3Dyour local home directory <-- normaly already defined)
mkdir $HOME/local
mkdir $HOME/lib
mkdir $HOME/bin
export PERL5LIB=3D$HOME/lib/perl5:$HOME/lib/perl5/site_perl
( perl5lib is used to find perl modules, 'export' is known by bash )
4. CREATE FILE $HOME/perl-local
---- FILE: ~/perl-local -------------------------
PREFIX=3D$HOME/local \
INSTALLPRIVLIB=3D$HOME/local/lib/perl5 \
INSTALLSCRIPT=3D$HOME/local/bin \
INSTALLSITELIB=3D$HOME/local/lib/perl5/site_perl \
INSTALLBIN=3D$HOME/local/bin \
INSTALLMAN1DIR=3D$HOME/local/lib/perl5/man \
INSTALLMAN3DIR=3D$HOME/local/lib/perl5/man/man3
--------------------------------------------------
5. cd path-to-dbi-files
6. perl Makefile.PL `cat ~/perl-local`
7. make / make test / make install
8. cd path-to-dbd-files
9. perl Makefile.PL `cat ~/perl-local`
10. make / make test / make install


OK. the clue is the PERL5LIB environment variable.



On Mon, 11 Nov 2002, Ni=F1o Fision wrote:
> "make test" is complaining about another module, named "DBI". You have to
> install this module before any DBD::*.
> In fact, you have to use this module (which uses DBD::mysql) in your prog=
rams.
>
> PREFIX problems would apeard when you will try to install it.

> El Lun 11 Nov 2002 10:22, Jens Harms escribi=F3:
> > Hi,
> > i want to install dbd-mysql-2.1020 on unix, but i'm not root.
> > t/insertid..........Can't locate DBI.pm in @INC (@INC contains: blib/ar=
ch


------------------------------------------------------------ ---------
Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
posting. To request this thread, e-mail msql-mysql-modules-thread1971@lists.mysql.com

To unsubscribe, send a message to the address shown in the
List-Unsubscribe header of this message. If you cannot see it,
e-mail msql-mysql-modules-unsubscribe@lists.mysql.com instead.