hello on raspberry installed haskell-platform and ghc but ghci is still a note-based command command even though ghc asks for an inpunta file what's the problem? in the raspberry itself? Or for ghci, you need to put something separately? something with usr / bin? dist Rasbian installed via apt-get install

  • You did not specify: first, the distribution kit, secondly, how to install ghc. point it all out in the question text by clicking edit . - aleksandr barakin

1 answer 1

in the raspbian distribution repository, the latest ghc package contains in the /usr/bin :

 $ file x/usr/bin/ghci x/usr/bin/ghci: symbolic link to ghci-8.0.1 $ file x/usr/bin/ghci-8.0.1 x/usr/bin/ghci-8.0.1: POSIX shell script, ASCII text executable $ cat x/usr/bin/ghci-8.0.1 #!/bin/sh exec "/usr/bin/ghc-8.0.1" --interactive "$@" 

Ie, there is everything you need.

The following hypotheses:

  1. perhaps the ghc package was installed from some kind of “left” repository. inspect the contents of /etc/apt/sources.list* for connected repositories, remove unnecessary and reinstall the package.
  2. perhaps in the PATH environment variable there is no /usr/bin (see the output of $ echo $PATH ). Try the full path: $ /usr/bin/ghci .

if the ghc program is still present, try launching it with the --interactive option, which is usually the “ghci run”, i.e., “ghc in interactive mode”.

  • I downloaded the archive from here haskell.org/ghc/download_ghc_8_0_1 in the ghc-8.0.1 folder I’m writing make says first to execute ./configure .3 installed haskell-platform and cabal can somehow through them or on the contrary do they interfere? - yasuoxyu
  • ghci from the repository is not put ghc is in / usr / bin and is ghc-7.6.3 and ghc-pkg gc-pkg-7.6.3 but they are not all directories but executables - yasuoxyu
  • x/usr/bin/ghci-8.0.1 there any rights to run the x/usr/bin/ghci-8.0.1 script? - Alexander Razorenov
  • @AlexanderRazorenov ghci * there is no ghc at all and only version 7.6.3 and this one runs and compiles completely - yasuoxyu
  • --interactive does not see the key ghc - yasuoxyu