make: ./libtool: Command not found

gregory.machin at gmail.com gregory.machin at gmail.com
Wed Jul 14 00:01:59 UTC 2010


Sorry to say it didn't work .. also tried /usr/bin/libtool all with the  
same results

checking libjpeg version number... 62
creating ./config.status
creating Makefile
creating jconfig.h
+ make prefix=/var/tmp/libjpeg-root/usr  
exec_prefix=/var/tmp/libjpeg-root/usr bindir=/var/tmp/libjpeg-root/usr/bin  
sbindir=/var/tmp/libjpeg-root/usr/sbin sysconfdir=/var/tmp/libjpeg-root/etc  
datadir=/var/tmp/libjpeg-root/usr/share  
includedir=/var/tmp/libjpeg-root/usr/include  
libdir=/var/tmp/libjpeg-root/usr/lib  
libexecdir=/var/tmp/libjpeg-root/usr/libexec  
localstatedir=/var/tmp/libjpeg-root/var  
sharedstatedir=/var/tmp/libjpeg-root/usr/com  
mandir=/var/tmp/libjpeg-root/usr/share/man  
infodir=/var/tmp/libjpeg-root/usr/share/info install
./libtool --mode=compile gcc -O2 -g -m32 -march=i586  
-fasynchronous-unwind-tables -I. -c ./cjpeg.c
make: ./libtool: Command not found
make: *** [cjpeg.lo] Error 127
error: Bad exit status from /var/tmp/rpm-tmp.2121 (%prep)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.2121 (%prep)


On Jul 14, 2010 1:12am, Greg_Swift at aotx.uscourts.gov wrote:
> ..snip..

> > I can do a ./configure, make LIBTOOL= libtool , make install LIBTOOL=

> libtool

> > and it then installs manualy .. but this defeats the purpose of rpm..

> >

> > So how can I set LIBTOOL to the correct value in the libjpeg.spec file ?

> >

> > this is the spec file below ....

> ..snip..

> >

> > %build

> > %configure --enable-shared --enable-static

> >

> >

> > make libdir=%{_libdir} %{?_smp_mflags}

> > LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD make test

> > LIBTOOL=libtool

> > %install

> > rm -rf $RPM_BUILD_ROOT

> >

> > mkdir -p $RPM_BUILD_ROOT/usr/{include,bin}

> > mkdir -p $RPM_BUILD_ROOT%{_libdir}

> > mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1

> >

> > %makeinstall

> > # Work around the broken makefiles...

> ..snip..



> So try changing that section to this:



> %build

> %configure --enable-shared --enable-static



> make libdir=%{_libdir} %{?_smp_mflags} LIBTOOL=libtool

> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD make test



> %install

> rm -rf $RPM_BUILD_ROOT



> mkdir -p $RPM_BUILD_ROOT/usr/{include,bin}

> mkdir -p $RPM_BUILD_ROOT%{_libdir}

> mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1



> make install DESTDIR=$RPM_BUILD_ROOT LIBTOOL=libtool

> # Work around the broken makefiles...







> -greg



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20100714/de916b6f/attachment.html>


More information about the Rpm-list mailing list