bug-gnupod
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnupod] gnupod trying to install something in /etc/perl/GNUpod/


From: H. Langos
Subject: Re: [Bug-gnupod] gnupod trying to install something in /etc/perl/GNUpod/
Date: Tue, 15 Apr 2008 12:32:01 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

Hello Justin,

I have the same problem here using Debian etch.

Apparently tools/gnupod_install.pl (the perl script that does the real
work on "make install") will always try to install the gnupod helper
modules in the first diretory of Perl's module include path.

Try 
perl -e 'print "@INC\n";'
to see where perl will look for modules.

In my case it says:
/etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 
/usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl 
.


The quick and dirty way around is to open tools/gnupod_install.pl in
your favorite text editor and to do a search-and-replace of "$INC[0]"
with say "/usr/local/lib/site_perl".

If you want it somewhere outside of perl's module path (say "/my/pmdir") 
you'd have to make sure that each time the perl interpreter is called, 
it is called with the option '-I/my/pmdir'. This will prepend /my/pmdir
to the include path.


I guess you could do that by modifying the Makefile and changing

perlbinary   = /usr/bin/perl
to
perlbinary   = "/usr/bin/perl -I/my/pmdir"

or if that makes tools/gnupod_install.pl fail you could go into 
tools/gnupod_install.pl  and change

$opts{perlbin}      = $ARGV[1];  #Path to perl
to 
$opts{perlbin}      = $ARGV[1] ." -I/my/pmdir";  #Path to perl

I havn't tried any of this yet so plesae let me know if it worked.

cheers
-henrik

On Sun, Mar 16, 2008 at 02:14:23AM -0500, Justin Gedge wrote:
> Adrian Ulrich
> 
> first off- thanks for writing cool cli interface for the ipod.  looks like
> exactly what I need.
> 
> only problem is that ubuntu seems to have an older version in their
> repositories and I just bought a new ipod nano.  I've screwed up systems in
> the past by installing things in with the base OS- so I try to tuck all my
> compiled and personal add on packages in a /usr1 tree.  Tried that with the
> gnupod and I get the following complaint from make
> 
> -> use 'make install' to install GNUpod
> -> use 'info GNUpod' to read the documentation after you installed GNUpod
> -> use 'make uninstall' to remove GNUpod from /usr1/apps/gnupod/gnupod-
> 0.99.6.d
> /bin/bash ./mkinstalldirs /usr1/apps/gnupod/gnupod-0.99.6.d/bin
> /bin/bash ./mkinstalldirs /usr1/apps/gnupod/gnupod-0.99.6.d/share/man/man1
> /usr/bin/perl tools/gnupod_install.pl INSTALL "/usr/bin/perl"
> "/usr1/apps/gnupod/gnupod-0.99.6.d/bin"
> "/usr1/apps/gnupod/gnupod-0.99.6.d/share/info"
> "/usr1/apps/gnupod/gnupod-0.99.6.d/share/man" ""
> _recmkdir(//etc/perl/GNUpod): Failed to create //etc/perl/GNUpod/:
> Permission denied
> Installing GNUpod 0.99.6 using gnupod_install 0.25
>  > src/gnupod_addsong.pl --> //usr1/apps/gnupod/gnupod-0.99.6.d
> /bin/gnupod_addsong.pl
>  > src/gnupod_check.pl --> //usr1/apps/gnupod/gnupod-0.99.6.d
> /bin/gnupod_check.pl
>  > src/gnupod_convert_APE.pl --> //usr1/apps/gnupod/gnupod-0.99.6.d
> /bin/gnupod_convert_APE.pl
>  > src/gnupod_convert_FLAC.pl --> //usr1/apps/gnupod/gnupod-0.99.6.d
> /bin/gnupod_convert_FLAC.pl
>  > src/gnupod_convert_MIDI.pl --> //usr1/apps/gnupod/gnupod-0.99.6.d
> /bin/gnupod_convert_MIDI.pl
>  > src/gnupod_convert_OGG.pl --> //usr1/apps/gnupod/gnupod-0.99.6.d
> /bin/gnupod_convert_OGG.pl
>  > src/gnupod_convert_RIFF.pl --> //usr1/apps/gnupod/gnupod-0.99.6.d
> /bin/gnupod_convert_RIFF.pl
>  > src/gnupod_INIT.pl --> //usr1/apps/gnupod/gnupod-0.99.6.d
> /bin/gnupod_INIT.pl
>  > src/gnupod_otgsync.pl --> //usr1/apps/gnupod/gnupod-0.99.6.d
> /bin/gnupod_otgsync.pl
>  > src/gnupod_search.pl --> //usr1/apps/gnupod/gnupod-0.99.6.d
> /bin/gnupod_search.pl
>  > src/mktunes.pl --> //usr1/apps/gnupod/gnupod-0.99.6.d/bin/mktunes.pl
>  > src/tunes2pod.pl --> //usr1/apps/gnupod/gnupod-0.99.6.d/bin/tunes2pod.pl
> make: *** [install] Error 13
> 
> because it's my  `system` user account instead of root- it's complaining.
> It's late enough now that I'll probably look at it in detail on another
> day.
> 
> any tips on why it needs to create /etc/perl/GNUpod in the /etc/perl
> directory instead of the --prefix= path and any quick tips on working around
> this are appreciated
> 
> Thanks
> 
> -jmg




reply via email to

[Prev in Thread] Current Thread [Next in Thread]