Erro na Cabal: Não é possível executar programas compilados c

1

Eu tenho uma versão antiga do cabal-install, então eu baixei o cabal-install 1.20 e ao instalar os erros.

Nota adicional: ghc 7.8.3
SO: CentOS 6.6

Erro:

Building network-2.4.2.3...
.......
......
......
usr/bin/ld: cannot find -lHSparsec-3.1.7-ghc7.8.3
collect2: ld returned 1 exit status
error during cabal-install bootstrap:
building the network package failed.

Quando eu tento executar "cabal install network-2.5.0.0", recebendo os seguintes erros

root@gains: cabal install network-2.5.0.0
Resolving dependencies...
Configuring network-2.5.0.0...
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in '/tmp/network-2.5.0.023068/network-2.5.0.0':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use '--host'.
See 'config.log' for more details
cabal: Error: some packages failed to install:
network-2.5.0.0 failed during the configure step. The exception was:
ExitFailure 1
    
por Vidhya 11.12.2014 / 11:35

1 resposta

2

Erro:

checking whether we are cross compiling... configure: error: in '/tmp/network-2.5.0.023068/network-2.5.0.0':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use '--host'.
See 'config.log' for more details

Então, eu executo o comando yum groupinstall "development tools" , instalei as ferramentas do compilador e poderia compilar os programas. Então,

checking whether we are cross compiling... configure: error: in /tmp/network-2.5.0.023068/network-2.5.0.0':

Eu tentei mount -o remount,exec,suid /tmp que resolveu o erro.É por causa do problema de direitos de execução no sistema de arquivos.

    
por 12.12.2014 / 09:38