Kompilowałem ZThread-2.3.2 z ta strona.
Po rozpakowaniu pliku tar.gz. W katalogu głównym ZThread-2.3.2 uruchomiłem polecenie
./configure --prefix=/home/Documents/zthread
Po chwili dał mi błąd
*** Gentoo sanity check failed! ***
*** libtool.m4 and ltmain.sh have a version mismatch! ***
*** (libtool.m4 = 1.5.10, ltmain.sh = ) ***
Please run:
libtoolize --copy --force
if appropriate, please contact the maintainer of this
package (or your distribution) for help.
Następnie wykonałem to polecenie w razie potrzeby:
libtoolize --copy --force
Ale nadal dał mi komunikat o błędzie:
libtoolize: putting auxiliary files in `.".
libtoolize: copying file `./ltmain.sh"
libtoolize: You should add the contents of the following files to `aclocal.m4":
libtoolize: `/usr/share/aclocal/libtool.m4"
libtoolize: `/usr/share/aclocal/ltoptions.m4"
libtoolize: `/usr/share/aclocal/ltversion.m4"
libtoolize: `/usr/share/aclocal/ltsugar.m4"
libtoolize: `/usr/share/aclocal/lt~obsolete.m4"
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])" to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4" to ACLOCAL_AMFLAGS in Makefile.am.
Sprawdziłem wersję libtool
jak poniżej:
libtool --version
Mówi, że wersja libtool to 2.4.2:
libtool (GNU libtool) 2.4.2
Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Co spowodowało ten problem? Czy ktoś pomyślnie zainstalował ZThread?
Wiem, że istnieje wiele bibliotek wątków innych niż ZThread, chcę tylko wiedzieć, co poszło źle.
Odpowiedzi:
1 dla odpowiedzi № 1Właśnie zainstalowałem ZThread na Ubuntu.
Powód, dla którego ltmain.sh
ma pustą wersję z powodu błędu składniowego w pliku ./configure. Powinieneś mieć następujący błąd *** Gentoo sanity check failed! ***
:
checking for correct ltmain.sh version... grep: character class syntax is [[:space:]], not [:space:]
no
Błąd znajduje się w następującym wierszu pliku ./configure:
gentoo_ltmain_version=`grep "^[:space:]*VERSION=" $ltmain | sed -e "s|^[:space:]*VERSION=||"`
Po zmianie [:space:]
do [[:space:]]
, staje się następujący i powinien rozwiązać problem:
gentoo_ltmain_version=`grep "^[[:space:]]*VERSION=" $ltmain | sed -e "s|^[:space:]*VERSION=||"`
Prawdopodobnie pojawi się błąd kompilacji z powodu przestarzałej składni używanej przez ZThread, którą możesz naprawić, dodając następującą linię do ./configure:
CXXFLAGS="$CXXFLAGS -fpermissive"