From: William S. <bil...@hb...> - 2007-07-20 02:08:12
|
William Steidtmann wrote: > If you attempt to compile (make) LMMS and then make install (or as I did > using checkinstall ) it may fail like this (also note that I configured > with --prefix=/usr ) > > ... > /usr/bin/install -c .libs/libaudiofileprocessor.a > /usr/lib/lmms/libaudiofileprocessor.a > /usr/bin/install: setting permissions for > `/usr/lib/lmms/libaudiofileprocessor.a': No such file or directory > chmod 644 /usr/lib/lmms/libaudiofileprocessor.a > ranlib /usr/lib/lmms/libaudiofileprocessor.a > ranlib: could not create temporary file whilst writing archive: No more > archived files > make[5]: *** [install-pkglibLTLIBRARIES] Error 1 > make[5]: Leaving directory > `/home/bill/src/lmms-SVN493/plugins/audio_file_processor' > make[4]: *** [install-am] Error 2 > make[4]: Leaving directory > `/home/bill/src/lmms-SVN493/plugins/audio_file_processor' > make[3]: *** [install] Error 2 > make[3]: Leaving directory > `/home/bill/src/lmms-SVN493/plugins/audio_file_processor' > make[2]: *** [install-recursive] Error 1 > make[2]: Leaving directory `/home/bill/src/lmms-SVN493/plugins' > make[1]: *** [install-recursive] Error 1 > make[1]: Leaving directory `/home/bill/src/lmms-SVN493' > make: *** [install] Error 2 > > **** Installation failed. Aborting package creation. > > Cleaning up...OK > > Bye. > > This error is apparently a bug (?) in libtool (I used 1.5.22 ), and I > found that it can be worked around by simply creating the lmms lib > directory like this: > > cd /usr/lib > sudo mkdir lmms > > Again note my configure --prefix was not the default. Another way to > work around this is to have a previous LMMS installed which means the > /usr/lib/lmms directory already exists. Or at least this is the case > with the Debian (Ubuntu) package. > > Bill > > I made it sound like this is a "make install" problem, but this is purely a checkinstall problem(s). I found at least 3 nasty issues: 1) checkinstall needs the /usr/lib/lmms directory as noted above. Workaround: See Above. 2) It leaves a bunch of garbage in the /usr/lib/lmms directory with file names like stXXXX* Workaround: Clean up the mess. 3) It tries to package/install insane files like /usr/bin/ld into the deb. Workaround: pass the --inspect flag to checkinstall and it will put you into vi and you will (probably) find the first few files listed as: /usr /usr/bin/g++ /usr/bin/ld /usr/bin/lmms /usr/bin/nm /usr/bin/strip /usr/lib /usr/lib/gcc/i486-linux-gnu/4.1.2/ /usr/lib/gcc/i486-linux-gnu/4.1.2/collect2 /usr/lib/gcc/i486-linux-gnu/4.1.2/crtbeginS.o /usr/lib/gcc/i486-linux-gnu/4.1.2/crtendS.o /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crti.o /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crtn.o which you can change to (in vi to delete a line put the cursor on the line and hit d twice):: /usr /usr/bin /usr/bin/lmms /usr/lib [keep all the rest of the lmms stuff] Then [colon]wq to write and quit out of vi. Or you could just not use checkinstall for anything... :) But it is nice to have apt package management. Bill P.S. The checkinstall website indicates that the author is aware of these problems and is working on it. |