Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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/

like image 735
magamig Avatar asked Sep 02 '25 03:09

magamig


2 Answers

You can try:

$ chmod 600 ~/.ghci

This has removed the permission to use it for any groups other than me.

like image 61
3rr4t1c Avatar answered Sep 05 '25 00:09

3rr4t1c


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.

like image 36
dom Avatar answered Sep 05 '25 00:09

dom