guineawheek / olwtools

Automatically exported from code.google.com/p/olwtools
0 stars 0 forks source link

install fails to copy 'lib' #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Output of installation command:

===========================================================================

su -c './install.pl --prefix=/usr'          

Password: 
install: creating directory `{/usr/bin,'
install: creating directory `{/usr/bin,/usr'
install: creating directory `{/usr/bin,/usr/lib'
install: creating directory `{/usr/bin,/usr/lib/volwheel,'
install: creating directory `{/usr/bin,/usr/lib/volwheel,/usr'
install: creating directory `{/usr/bin,/usr/lib/volwheel,/usr/share'
install: creating directory `{/usr/bin,/usr/lib/volwheel,/usr/share/volwheel,'
install: creating directory 
`{/usr/bin,/usr/lib/volwheel,/usr/share/volwheel,/usr'
install: creating directory 
`{/usr/bin,/usr/lib/volwheel,/usr/share/volwheel,/usr/share'
install: creating directory 
`{/usr/bin,/usr/lib/volwheel,/usr/share/volwheel,/usr/share/icons'
install: creating directory 
`{/usr/bin,/usr/lib/volwheel,/usr/share/volwheel,/usr/share/icons/hicolor'
install: creating directory 
`{/usr/bin,/usr/lib/volwheel,/usr/share/volwheel,/usr/share/icons/hicolor/scalab
le'
install: creating directory 
`{/usr/bin,/usr/lib/volwheel,/usr/share/volwheel,/usr/share/icons/hicolor/scalab
le/apps,'
install: creating directory 
`{/usr/bin,/usr/lib/volwheel,/usr/share/volwheel,/usr/share/icons/hicolor/scalab
le/apps,/usr'
install: creating directory 
`{/usr/bin,/usr/lib/volwheel,/usr/share/volwheel,/usr/share/icons/hicolor/scalab
le/apps,/usr/share'
install: creating directory 
`{/usr/bin,/usr/lib/volwheel,/usr/share/volwheel,/usr/share/icons/hicolor/scalab
le/apps,/usr/share/applications}'
`volwheel' -> `/usr/bin/volwheel'
install: target `/usr/lib/volwheel' is not a directory
`icons' -> `/usr/share/volwheel/'
`icons/simple-green' -> `/usr/share/volwheel/simple-green'
`icons/simple-green/7.png' -> `/usr/share/volwheel/simple-green/7.png'
`icons/simple-green/6.png' -> `/usr/share/volwheel/simple-green/6.png'
`icons/simple-green/4.png' -> `/usr/share/volwheel/simple-green/4.png'
`icons/simple-green/3.png' -> `/usr/share/volwheel/simple-green/3.png'
`icons/simple-green/1.png' -> `/usr/share/volwheel/simple-green/1.png'
`icons/simple-green/5.png' -> `/usr/share/volwheel/simple-green/5.png'
`icons/simple-green/8.png' -> `/usr/share/volwheel/simple-green/8.png'
`icons/simple-green/2.png' -> `/usr/share/volwheel/simple-green/2.png'
`icons/speaker-blue.png' -> `/usr/share/volwheel/speaker-blue.png'
`icons/simple-blue' -> `/usr/share/volwheel/simple-blue'
`icons/simple-blue/7.png' -> `/usr/share/volwheel/simple-blue/7.png'
`icons/simple-blue/6.png' -> `/usr/share/volwheel/simple-blue/6.png'
`icons/simple-blue/4.png' -> `/usr/share/volwheel/simple-blue/4.png'
`icons/simple-blue/3.png' -> `/usr/share/volwheel/simple-blue/3.png'
`icons/simple-blue/1.png' -> `/usr/share/volwheel/simple-blue/1.png'
`icons/simple-blue/5.png' -> `/usr/share/volwheel/simple-blue/5.png'
`icons/simple-blue/8.png' -> `/usr/share/volwheel/simple-blue/8.png'
`icons/simple-blue/2.png' -> `/usr/share/volwheel/simple-blue/2.png'
`icons/speaker-white.png' -> `/usr/share/volwheel/speaker-white.png'
`icons/volwheel.svg' -> `/usr/share/volwheel/volwheel.svg'
`icons/speaker-green.png' -> `/usr/share/volwheel/speaker-green.png'
`icons/volwheel.png' -> `/usr/share/volwheel/volwheel.png'
`icons/speaker-pink.png' -> `/usr/share/volwheel/speaker-pink.png'
`icons/speaker-black.png' -> `/usr/share/volwheel/speaker-black.png'
`icons/speaker-red.png' -> `/usr/share/volwheel/speaker-red.png'
`icons/speaker-yellow.png' -> `/usr/share/volwheel/speaker-yellow.png'
removed `/usr/share/icons/hicolor/scalable/apps/volwheel.svg'
`icons/volwheel.svg' -> `/usr/share/icons/hicolor/scalable/apps/volwheel.svg'

VolWheel has been succesfully installed.
===========================================================================

After install:
===========================================================================

find /usr -name '*volwheel*'                

/usr/bin/volwheel
/usr/share/volwheel
/usr/share/volwheel/volwheel.svg
/usr/share/volwheel/volwheel.png
/usr/share/icons/hicolor/scalable/apps/volwheel.svg
/usr/share/applications/volwheel.desktop
/usr/local/bin/volwheel
/usr/local/share/volwheel
/usr/local/share/volwheel/volwheel.svg
/usr/local/share/volwheel/volwheel.png

find /usr -name '*Alsa.pm*'                 

 (no results)

===========================================================================

So of course it fails to run:

===========================================================================
volwheel                                  

Can't locate Alsa.pm in @INC (@INC contains: /usr/local/lib/volwheel /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 /usr/local/bin/volwheel line 24.
BEGIN failed--compilation aborted at /usr/local/bin/volwheel line 24.

===========================================================================

I looked over the install script and I'm assuming the problem is here:

27: my $libdir  = "$path/lib/$package";
40: $output = install ("-v -m644 lib/* $libdir");

Since I supplied "prefix" as /usr and didn't supply a destdir, it should be 
installing ./lib/* to /usr/lib/, but as the find output above demonstrates, 
that is not happening.

Original issue reported on code.google.com by DanielBa...@gmail.com on 24 Nov 2010 at 12:49

GoogleCodeExporter commented 9 years ago
I removed everything by hand and started over, this time using local

su -c 'mkdir /usr/local/lib/volwheel'

su -c './install.pl --prefix=/usr/local'
`volwheel' -> `/usr/local/bin/volwheel'
`lib/Alsa.pm' -> `/usr/local/lib/volwheel/Alsa.pm'
`lib/Conf.pm' -> `/usr/local/lib/volwheel/Conf.pm'
`lib/ConfDialog.pm' -> `/usr/local/lib/volwheel/ConfDialog.pm'
`lib/MiniMixer.pm' -> `/usr/local/lib/volwheel/MiniMixer.pm'
`lib/OSS.pm' -> `/usr/local/lib/volwheel/OSS.pm'
`lib/Scale.pm' -> `/usr/local/lib/volwheel/Scale.pm'
`icons' -> `/usr/local/share/volwheel/'
`icons/simple-green' -> `/usr/local/share/volwheel/simple-green'
`icons/simple-green/7.png' -> `/usr/local/share/volwheel/simple-green/7.png'
`icons/simple-green/6.png' -> `/usr/local/share/volwheel/simple-green/6.png'
`icons/simple-green/4.png' -> `/usr/local/share/volwheel/simple-green/4.png'
`icons/simple-green/3.png' -> `/usr/local/share/volwheel/simple-green/3.png'
`icons/simple-green/1.png' -> `/usr/local/share/volwheel/simple-green/1.png'
`icons/simple-green/5.png' -> `/usr/local/share/volwheel/simple-green/5.png'
`icons/simple-green/8.png' -> `/usr/local/share/volwheel/simple-green/8.png'
`icons/simple-green/2.png' -> `/usr/local/share/volwheel/simple-green/2.png'
`icons/speaker-blue.png' -> `/usr/local/share/volwheel/speaker-blue.png'
`icons/simple-blue' -> `/usr/local/share/volwheel/simple-blue'
`icons/simple-blue/7.png' -> `/usr/local/share/volwheel/simple-blue/7.png'
`icons/simple-blue/6.png' -> `/usr/local/share/volwheel/simple-blue/6.png'
`icons/simple-blue/4.png' -> `/usr/local/share/volwheel/simple-blue/4.png'
`icons/simple-blue/3.png' -> `/usr/local/share/volwheel/simple-blue/3.png'
`icons/simple-blue/1.png' -> `/usr/local/share/volwheel/simple-blue/1.png'
`icons/simple-blue/5.png' -> `/usr/local/share/volwheel/simple-blue/5.png'
`icons/simple-blue/8.png' -> `/usr/local/share/volwheel/simple-blue/8.png'
`icons/simple-blue/2.png' -> `/usr/local/share/volwheel/simple-blue/2.png'
`icons/speaker-white.png' -> `/usr/local/share/volwheel/speaker-white.png'
`icons/volwheel.svg' -> `/usr/local/share/volwheel/volwheel.svg'
`icons/speaker-green.png' -> `/usr/local/share/volwheel/speaker-green.png'
`icons/volwheel.png' -> `/usr/local/share/volwheel/volwheel.png'
`icons/speaker-pink.png' -> `/usr/local/share/volwheel/speaker-pink.png'
`icons/speaker-black.png' -> `/usr/local/share/volwheel/speaker-black.png'
`icons/speaker-red.png' -> `/usr/local/share/volwheel/speaker-red.png'
`icons/speaker-yellow.png' -> `/usr/local/share/volwheel/speaker-yellow.png'
`icons/volwheel.svg' -> `/usr/share/icons/hicolor/scalable/apps/volwheel.svg'

VolWheel has been succesfully installed.

ls /usr/local/lib/volwheel
Alsa.pm  ConfDialog.pm  Conf.pm  MiniMixer.pm  OSS.pm  Scale.pm

volwheel                                    
Can't locate Alsa.pm in @INC (@INC contains: /usr/lib/volwheel /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 /usr/local/bin/volwheel line 24.
BEGIN failed--compilation aborted at /usr/local/bin/volwheel line 24

So why does my @INC now contain "/usr/lib/volwheel" instead of 
"/usr/local/lib/volwheel"?

perl version 5.10.1-16 from Debian squeeze

Original comment by DanielBa...@gmail.com on 24 Nov 2010 at 1:04

GoogleCodeExporter commented 9 years ago
I made a sym link,

su -c 'ln -s /usr/local/lib/volwheel /usr/lib/volwheel'

Now volwheel will start but there is not output in the console and the tray 
icon does not appear.

Original comment by DanielBa...@gmail.com on 24 Nov 2010 at 1:07