Não é possível criar o nodejs mingw32: pkg-config não pode encontrar o gnutils

5

Estou tentando compilar os nodejs usando MSYS, mingw32 no 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')

Eu tenho gnutils construídos e instalados! Eu verifiquei o config.log, e havia um comando:

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

Eu digitei no console

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

Mas,

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

O que estou fazendo de errado?

    
por valya 02.12.2009 / 09:13

1 resposta

4

Eu segui basicamente o mesmo caminho com a seguinte exceção:

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 basicamente diz que não pode encontrar o pthread.lib. Então, depois de copiar pthread.lib em um diretório que ele lista como um diretório de pesquisa, me deparo com outro erro.

--- 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')

Parece que o pthread não é atualizado desde 2006 e em suas notas de lançamento eles dizem (ref: link ):

The following functions are not implemented:

....

      ---------------------------
      Fork Handlers
      ---------------------------
      pthread_atfork

É uma pena!

    
por 12.12.2009 / 07:22

Tags