Re: Re: make: ./libtool: Command not found

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

 



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@xxxxxxxxxxxxxxxxx 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
>
>
>
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux