Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>First, I'd check to see if you have the libraries libHStar, libHSoptparse-applicative, libHSghc-paths, libHSfsnotify and libHShinotify. If you installed the haskell platform using your distro's package manager, I suspect you'll find those libraries in <code>/usr/local/lib/ghc-*.*.*/</code>. For example, you might search for the first library using this command:</p> <pre><code>sudo find /usr/local/lib -name 'libHStar*' </code></pre> <p>If you don't have those libraries, then I think you can get them by using your distro's package manager to install the following:</p> <ul> <li>libghc-tar-dev</li> <li>libghc-optparse-applicative-dev</li> <li>libghc-ghc-paths-dev</li> <li>libghc-fsnotify-dev</li> <li>libghc-hinotify-dev</li> </ul> <p>If you already have those libraries, then you could adapt the fix suggested in your link:</p> <pre><code>sudo chmod a+r /usr/local/lib/ghc-*/libHS* </code></pre> <hr> <p>UPDATE:</p> <p>The standard recommendation seems to be that you should always use your linux distro's package manager to install stuff, rather than using the <code>cabal</code> command directly. And if a package you want isn't available yet on your distro, request it. This approach is the safest, because all of the dependencies have been sorted out for you. The disadvantage is that you won't usually have the latest release. I see that there is a <code>yesod</code> package on Ubuntu. I have no idea if it contains yesod-bin (I'm not familiar with yesod), but if it does, that's the safest approach. The downside is that you will probably have to wipe out your cabal library and start from scratch (re-install haskell-platform, then yesod).</p> <p>Another option, which seems to be the road you're on, is to use your package manager to install the haskell-platform, but after that use the <code>cabal</code> command to install any haskell-y stuff. You'll still use your package manager to install things that can't be installed using cabal (e.g., non-haskell stuff). If you do this, you can avoid a lot of cabal hell by never running cabal as root, and never letting your package manager do anything that can be done using cabal. The main disadvantage of this approach is that you have to deal with library dependencies yourself, as you've discovered. If you want to continue down this road, you might be able to get everything you need by switching to some development/test build for Ubuntu. Or you may have to get the correct versions of the libraries you need and manually install them.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload