Search code examples
linuxhaskellchmodghcichown

GHCi - Haskell Compiler Error - /home/user/.ghci is owned by someone else, IGNORING


While trying to change the ~/.ghci file to my configurations this error appeared when I opened GHCi.

GHCi, version 7.6.3: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
*** WARNING: /home/user is writable by someone else, IGNORING!
WARNING: /home/user/.ghci is owned by someone else, IGNORING!

I am using Ubuntu 14.04 and GHCi 7.6.3. What can I do to solve this problem so that my confiurations work?

My settings are based on this reddit link: http://www.reddit.com/r/haskell/comments/144biy/pretty_output_in_ghci_howto_in_comments/


Solution

  • Check that the owner of the directory is "user"

    ls -lah /home
    

    if it is owned by someone else, change the ownership:

    sudo chown user:user -R /home/user
    

    Edit: I noticed that root owns ~/.ghci so you must change it using sudo.