Archive for the ‘GNU Linux’ Category

Instalando Haskell (GHC 6.10) no Slackware 12.1

Wednesday, February 11th, 2009

Após instalar o GHC 6.10 tive o seguinte problema ao tentar rodar tanto o compilador Haskell ghc quanto o ambiente interativo ghci:

/opt/ghc/ghc: error while loading shared libraries: libedit.so.0: cannot open shared object file: No such file or directory

Essa library não é instalada por padrão no Slackware. Então, resolvi esse problema baixando-a e procedendo da seguinte maneira:

$ ./configure --prefix=/usr; make; make install

Se tudo der certo, temos então o arquivo libedit.so no diretório /usr/lib. Mas o ghc procura pela library pelo nome libedit.so.0. Então, crie um link simbólico para o arquivo e tente rodar o ghc novamente.

$ ln -s /usr/lib/libedit.so /usr/lib/libedit.so.0