Knotenjs kann nicht mingw32 erstellt werden: pkg-config kann keine Gnutils finden

1770
valya

Ich versuche, nodejs mit MSYS zu kompilieren, mingw32 unter Windows 7-64

Valentin Golev@VALYASNOTEBOOK /home/Valentin_Golev/nodejs $ ./configure Checking for program CL : ok C:\Program Files (x86)\Microsoft V isual Studio 10.0\VC\BIN\x86_amd64\CL.exe Checking for program CL : ok C:\Program Files (x86)\Microsoft V isual Studio 10.0\VC\BIN\CL.exe Checking for program CL : ok C:\Program Files (x86)\Microsoft V isual Studio 10.0\VC\BIN\amd64\CL.exe Checking for program CL : ok c:\Program Files (x86)\Microsoft V isual Studio 9.0\VC\BIN\CL.exe Checking for program CL : ok c:\Program Files (x86)\Microsoft V isual Studio 9.0\VC\BIN\CL.exe Checking for program CL : ok c:\Program Files (x86)\Microsoft V isual Studio 9.0\VC\BIN\x86_amd64\CL.exe Checking for program CL : ok c:\Program Files (x86)\Microsoft V isual Studio 9.0\VC\BIN\CL.exe Checking for program CL : ok c:\Program Files (x86)\Microsoft V isual Studio 9.0\VC\BIN\amd64\CL.exe Checking for program CL : ok c:\Program Files (x86)\Microsoft V isual Studio 9.0\VC\BIN\amd64\CL.exe Checking for program LINK : ok c:\Program Files (x86)\Microsoft V isual Studio 9.0\VC\BIN\amd64\LINK.exe Checking for program LIB : ok c:\Program Files (x86)\Microsoft V isual Studio 9.0\VC\BIN\amd64\LIB.exe Checking for program MT : ok C:\Program Files\\Microsoft SDKs\W indows\v6.0A\bin\x64\MT.exe Checking for program RC : ok C:\Program Files\\Microsoft SDKs\W indows\v6.0A\bin\x64\RC.exe Checking for msvc : ok Checking for msvc : ok Checking for library dl : not found Checking for library execinfo : not found Checking for gnutls >= 2.5.0 : fail --- libeio --- Checking for library pthread : not found Checking for function pthread_create : not found error: the configuration failed (see 'C:\\msys\\1.0\\home\\Valentin_Golev\\node js\\build\\config.log') 

Ich habe Gnutils gebaut und installiert! Ich habe die config.log überprüft und es gab einen Befehl:

 pkg-config --errors-to-stdout --print-errors --atleast-version=2.5.0 gnutls 

Ich habe es in die Konsole eingegeben

Valentin Golev@VALYASNOTEBOOK /home/Valentin_Golev/nodejs $ pkg-config --errors-to-stdout --print-errors --atleast-version=2.5.0 gnutls Package gnutls was not found in the pkg-config search path. Perhaps you should add the directory containing `gnutls.pc' to the PKG_CONFIG_PATH environment variable No package 'gnutls' found 

Aber,

Valentin Golev@VALYASNOTEBOOK ~ $ $PKG_CONFIG_PATH sh: c:/msys/1.0/local/lib/pkgconfig: is a directory  Valentin Golev@VALYASNOTEBOOK ~ $ cd $PKG_CONFIG_PATH  Valentin Golev@VALYASNOTEBOOK /local/lib/pkgconfig $ ls gnutls-extra.pc gnutls.pc 

Was mache ich falsch?

5

1 Antwort auf die Frage

4
tmpvar

Ich bin im Grunde den gleichen Weg gegangen mit der folgenden Ausnahme:

Checking for gnutls >= 2.5.0 : fail --- libeio --- Checking for library pthread : not found Checking for function pthread_create : not found error: the configuration failed (see 'd:\\Code\\Javascript\\node\\build\\config.log') 

config.log sagt im Wesentlichen, dass es pthread.lib nicht finden kann. Nach dem Kopieren von pthread.lib in ein Verzeichnis, das als durchsuchbares Verzeichnis aufgeführt ist, stoße ich auf einen weiteren Fehler.

--- libeio --- Checking for library pthread : ok Checking for function pthread_create : ok Checking for function pthread_atfork : not found error: the configuration failed (see 'd:\\Code\\Javascript\\node\\build\\config.log') 

Es scheint, als ob pthread seit 2006 nicht mehr aktualisiert wurde und in den Versionshinweisen heißt es (ref: http://sourceware.org/pthreads-win32/announcement.html ):

The following functions are not implemented:  ....  --------------------------- Fork Handlers --------------------------- pthread_atfork 

Es ist bedauerlich!