bioperl rpms via yum on Darwin (Was: [Bioperl-l] darwin PERL5LIB ignored0

Allen Day allenday at ucla.edu
Wed Aug 3 23:00:19 EDT 2005


yep, that did it.  i don't know why i didn't prefix export onto that line
as will all the others in my .bashrc file.

thanks a bunch.  btw, the reason i'm doing this is b/c i'm in the middle 
of porting the biopackages rpm repository to be installable on darwin.

i just finished porting rpm and yum yesterday -- should be able to have 
bioperl installable via rpm within a week, barring no c library dependency 
problems.

-allen

On Thu, 4 Aug 2005, Tim Erwin wrote:

> > #the variable is defined in my .bashrc file, which is evaluated at login
> > buildmac:~ allenday$ cat ~/.bashrc | grep PERL5LIB
> > PERL5LIB=/net/groove/lib/perl5/site_perl:/usr/local/lib/perl5/site_perl
> 
> You should export the variable from your .bashrc
> 
> export PERL5LIB=/net/groove/lib/perl5/site_perl:/other_dirs
> 
> If you don't export it it will only get set for the current shell and
> wont be transfer to other shells.
> 
> Regards,
> 
> Tim
> 
> On Wed, 2005-08-03 at 18:08 -0700, Allen Day wrote:
> > This is an off-topic question for the list, but I know there are lot of 
> > mac users here, and I'm hoping for a quick fix.
> > 
> > I'm having problems getting my bash environment to recognize my $PERL5LIB 
> > variable.  Even if I declare the variable in my .bashrc file and source 
> > it, the variable is ignored until I explicitly export it from my session 
> > prompt.  Below is a dialog illustrating the problem.
> > 
> > Anyone know of a workaround to get perl to use $PERL5LIB as declared in
> > the .bashrc file, as opposed to requiring an explicit export of the
> > variable?
> > 
> > Thanks.
> > -Allen
> > 
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > 
> > #variable appears to be set up correctly
> > buildmac:~ allenday$ echo $PERL5LIB
> > /net/groove/lib/perl5/site_perl:/usr/local/lib/perl5/site_perl
> > 
> > #but it doesn't appear in @INC
> > buildmac:~ allenday$ perl -e 'print join "\n", at INC,"\n"'
> > /System/Library/Perl/5.8.6/darwin-thread-multi-2level
> > /System/Library/Perl/5.8.6
> > /Library/Perl/5.8.6/darwin-thread-multi-2level
> > /Library/Perl/5.8.6
> > /Library/Perl
> > /Network/Library/Perl/5.8.6/darwin-thread-multi-2level
> > /Network/Library/Perl/5.8.6
> > /Network/Library/Perl
> > /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level
> > /System/Library/Perl/Extras/5.8.6
> > /Library/Perl/5.8.1
> > .
> > 
> > #the variable is defined in my .bashrc file, which is evaluated at login
> > buildmac:~ allenday$ cat ~/.bashrc | grep PERL5LIB
> > PERL5LIB=/net/groove/lib/perl5/site_perl:/usr/local/lib/perl5/site_perl
> > 
> > #just to make sure, sourcing the .bashrc file has no effect on @INC
> > buildmac:~ allenday$ source ~/.bashrc
> > buildmac:~ allenday$ perl -e 'print join "\n", at INC,"\n"'
> > /System/Library/Perl/5.8.6/darwin-thread-multi-2level
> > /System/Library/Perl/5.8.6
> > /Library/Perl/5.8.6/darwin-thread-multi-2level
> > /Library/Perl/5.8.6
> > /Library/Perl
> > /Network/Library/Perl/5.8.6/darwin-thread-multi-2level
> > /Network/Library/Perl/5.8.6
> > /Network/Library/Perl
> > /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level
> > /System/Library/Perl/Extras/5.8.6
> > /Library/Perl/5.8.1
> > .
> > 
> > #I have to explicitly export from the prompt to affect @INC
> > buildmac:~ allenday$ export PERL5LIB=/net/groove/lib/perl5/site_perl:/usr/local/lib/perl5/site_perl
> > buildmac:~ allenday$ perl -e 'print join "\n", at INC,"\n"'
> > /net/groove/lib/perl5/site_perl
> > /usr/local/lib/perl5/site_perl
> > /System/Library/Perl/5.8.6/darwin-thread-multi-2level
> > /System/Library/Perl/5.8.6
> > /Library/Perl/5.8.6/darwin-thread-multi-2level
> > /Library/Perl/5.8.6
> > /Library/Perl
> > /Network/Library/Perl/5.8.6/darwin-thread-multi-2level
> > /Network/Library/Perl/5.8.6
> > /Network/Library/Perl
> > /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level
> > /System/Library/Perl/Extras/5.8.6
> > /Library/Perl/5.8.1
> > .
> > 
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > 
> > _______________________________________________
> > Bioperl-l mailing list
> > Bioperl-l at portal.open-bio.org
> > http://portal.open-bio.org/mailman/listinfo/bioperl-l
> > 
> > 
> 


More information about the Bioperl-l mailing list