magamig magamig - 4 months ago 6x
Linux Question

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: :? 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:

dom dom

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.