Monday, June 8, 2009

Installing Eprints 3.1.3 in site 5 sharing account




Non-root proxy



-bash-3.00$ pwd
/home/liangzho/.cpan
-bash-3.00$ mkdir -p .cpan/CPAN
-bash-3.00$ cd .cpan/CPAN
-bash-3.00$ nano MyConfig.pm



# This is CPAN.pm's systemwide configuration file. This file provides
# defaults for users, and the values can be changed in a per-user
# configuration file. The user-config file is being looked for as
# ~/.cpan/CPAN/MyConfig.pm.

$CPAN::Config = {
'build_cache' => q[10],
'build_dir' => q[/home/slash/.cpan/build],
'cache_metadata' => q[1],
'cpan_home' => q[/home/slash/.cpan],
'dontload_hash' => { },
'ftp' => q[/usr/bin/ftp],
'ftp_proxy' => q[],
'getcwd' => q[cwd],
'gzip' => q[/usr/bin/gzip],
'http_proxy' => q[],
'inactivity_timeout' => q[0],
'index_expire' => q[1],
'inhibit_startup_message' => q[0],
'keep_source_where' => q[/home/slash/.cpan/sources],
'lynx' => q[],
'make' => q[/usr/bin/make],
'make_arg' => q[],
'make_install_arg' => q[UNINST=1],
'makepl_arg' => q[],
'ncftp' => q[],
'ncftpget' => q[],
'no_proxy' => q[],
'pager' => q[jless],
'prerequisites_policy' => q[follow],
'scan_cache' => q[atstart],
'shell' => q[/bin/tcsh],
'tar' => q[/usr/bin/tar],
'term_is_latin' => q[1],
'unzip' => q[/usr/local/bin/unzip],
'urllist' => [q[ftp://cpan.valueclick.com/pub/CPAN/]],
'wait_list' => [q[wait://ls6.informatik.uni-dortmund.de:1404]],
'wget' => q[/usr/local/bin/wget],
};
1;
__END__



Modified above to:
# This is CPAN.pm's systemwide configuration file. This file provides
# defaults for users, and the values can be changed in a per-user
# configuration file. The user-config file is being looked for as
# ~/.cpan/CPAN/MyConfig.pm.

$CPAN::Config = {
'build_cache' => q[10],
'build_dir' => q[/home/liangzho/.cpan/build],
'cache_metadata' => q[1],
'cpan_home' => q[/home/liangzho/.cpan],
'dontload_hash' => { },
'ftp' => q[/usr/bin/ftp],
'ftp_proxy' => q[],
'getcwd' => q[cwd],
'gzip' => q[/usr/bin/gzip],
'http_proxy' => q[],
'inactivity_timeout' => q[0],
'index_expire' => q[1],
'inhibit_startup_message' => q[0],
'keep_source_where' => q[/home/liangzho/.cpan/sources],
'lynx' => q[],
'make' => q[/usr/bin/make],
'make_arg' => q[],
'make_install_arg' => q[],
'makepl_arg' => q[/home/liangzho/perl5],
'ncftp' => q[],
'ncftpget' => q[],
'no_proxy' => q[],
'pager' => q[jless],
'prerequisites_policy' => q[follow],
'scan_cache' => q[atstart],
'shell' => q[/bin/tcsh],
'tar' => q[/usr/bin/tar],
'term_is_latin' => q[1],
'unzip' => q[/usr/local/bin/unzip],
'urllist' => [q[ftp://cpan.valueclick.com/pub/CPAN/]],
'wait_list' => [q[wait://ls6.informatik.uni-dortmund.de:1404]],
'wget' => q[/usr/local/bin/wget],
};
1;
__END__



While
-bash-3.00$ perl -V
Characteristics of this binary (from libperl):
Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO
Built under linux
Compiled at May 7 2007 12:09:55
@INC:
/usr/lib/perl5/5.8.8/i686-linux
/usr/lib/perl5/5.8.8
/usr/lib/perl5/site_perl/5.8.8/i686-linux
/usr/lib/perl5/site_perl/5.8.8
/usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl/5.8.4
/usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
.
==================================================

edit $HOME/.profile
PERL5LIB=/home/liangzho/perl5/lib/perl5/5.8.8/i686-linux/
PERL5LIB=$PERL5LIB:/home/liangzho/perl5/lib/perl5/5.8.8
PERL5LIB=$PERL5LIB:/home/liangzho/perl5/lib/perl5/site_perl/5.8.8/liangzho
PERL5LIB=$PERL5LIB:/home/liangzho/perl5/lib/perl5/site_perl/5.8.8
PERL5LIB=$PERL5LIB:/home/liangzho/perl5/lib/perl5/site_perl/5.8.5
PERL5LIB=$PERL5LIB:/home/liangzho/perl5/lib/perl5/site_perl/5.8.4
PERL5LIB=$PERL5LIB:/home/liangzho/perl5/lib/perl5/site_perl/5.8.3
PERL5LIB=$PERL5LIB:/home/liangzho/perl5/lib/perl5/site_perl/5.8.2
PERL5LIB=$PERL5LIB:/home/liangzho/perl5/lib/perl5/site_perl/5.8.1
PERL5LIB=$PERL5LIB:/home/liangzho/perl5/lib/perl5/site_perl/5.8.0
PERL5LIB=$PERL5LIB:/home/liangzho/perl5/lib/perl5/site_perl

export PERL5LIB




-bash-3.00$ ./configure --prefix=/home/liangzho/www --disable-userdir --disable-status

No comments: