Thread setting environmental variable correctly to include .pm file (13 answers)
Opened by Raffael2013 at 2013-04-08 13:59

Raffael2013
 2013-04-08 13:59
#166957 #166957
User since
2013-04-08
6 Artikel
BenutzerIn
[default_avatar]
Hi all,

I am using Ubuntu and I cannot start the vcftools/bin/vcf-fix-ploidy perl function from here:
http://vcftools.sourceforge.net/perl_mod...fix-plo...
It says:

Can't locate Vcf.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /opt/vcftools/bin/vcf-fix-ploidy line 9.

Ok, i have to add the vcftools/perl directory to PATH:

Code: (dl )
1
2
3
setenv PATH ${PATH}:/opt/vcftools/perl 
setenv PATH ${PATH}:/opt/vcftools/bin
setenv PATH ${PATH}:/opt/vcftools/

this does not help.

Furthermore I have no Variable PERL5LIB or PERLLIB, too.

These are my environmental variables, that I have:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
USER=user0815
LOGNAME=user0815
HOME=/home/user0815
PATH=/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/sbin:/sbin:/usr/games:/psi/bin:.:/progs/vcftools/perl
MAIL=/home/user0815/Mail/Inbox
SHELL=/bin/tcsh
SSH_CLIENT=xxx
SSH_CONNECTION=xxx
SSH_TTY=/dev/pts/15
TERM=xterm
LANG=de_DE.UTF-8
XDG_SESSION_COOKIE=xxx
NLSPATH=/usr/share/locale/%L/LC_MESSAGES/%N.cat HOSTTYPE=x86_64-linux
VENDOR=unknown
OSTYPE=linux
MACHTYPE=x86_64
SHLVL=1
PWD=progs/vcftools/perl
GROUP=mygroup
HOST=myhost
REMOTEHOST=myremotehost
OS_TYPE=LINUX
X11BASEDIR=/usr/X11R6
NNTPSERVER=news.mydomain.de
EDITOR=vi no_proxy=alt_domain.de
MAILCAPS=/home/user0815/.mailcap:/etc/mailcap PSI=/psi MATLAB_JAVA=/usr/lib/jvm/java-1.6.0-openjdk/jre/
MAPLE_JAVA=/usr/lib/jvm/java-1.6.0-openjdk/jre/ ENVIRONMENT=NOBATCH
COLUMNS=208
LINES=62


What can I do? How can I tell PERL to include this path? Antwort auf deutsch auch gerne willkommen :)

Thanks in advance

modedit Editiert von pq: code-tags
Last edited: 2013-04-08 14:13:35 +0200 (CEST)

View full thread setting environmental variable correctly to include .pm file