k-user AT lists.siebelschool.illinois.edu
Subject: K-user mailing list
List archive
- From: Mark Hills <Mark.Hills AT cwi.nl>
- To: "Seyed H. HAERI (Hossein)" <hossein.haeri AT gmail.com>
- Cc: k-user AT cs.uiuc.edu
- Subject: Re: [K-user] Trouble with Making my $K_BASE
- Date: Tue, 07 Feb 2012 16:52:14 +0100 (CET)
- List-archive: <http://lists.cs.uiuc.edu/pipermail/k-user>
- List-id: <k-user.cs.uiuc.edu>
Hi Hossein,
I'm assuming this just means that cabal ran at some time in the past under su
and created the files as root. If that is the case, you can just run:
sudo chown -R hossein /home/hossein/.cabal
and set the permissions back to you as the owner. This may actually be a
problem under your Sources/k-framework directory as well if the make script
created any files before halting. David can correct me if I'm wrong, but I
don't think there is anything essential about running cabal under sudo. On my
K installation I have a .cabal directory as well, and I own all the files in
there.
Cheers,
Mark
----- Original Message -----
From: "Seyed H. HAERI (Hossein)"
<hossein.haeri AT gmail.com>
To: "Mark Hills"
<Mark.Hills AT cwi.nl>
Cc:
k-user AT cs.uiuc.edu
Sent: Tuesday, February 7, 2012 4:33:24 PM
Subject: Re: [K-user] Trouble with Making my $K_BASE
Hi Mark,
> I didn't notice this originally -- you are running the command under sudo.
> Since sudo doesn't preserve many of your environment variables (including
> this one, which it doesn't know about), this explains why it is
> disappearing.
My understanding is that I have to use sudo given the following access denial:
hossein@ubuntu:~/Sources/k-framework$
make -C $K_BASE
make: Entering directory `/home/hossein/Sources/k-framework'
make[1]: Entering directory `/home/hossein/Sources/k-framework/core/java'
make[1]: `all' is up to date.
make[1]: Leaving directory `/home/hossein/Sources/k-framework/core/java'
make[1]: Entering directory `/home/hossein/Sources/k-framework/tools/krun'
make[2]: Entering directory `/home/hossein/Sources/k-framework/tools/krun'
Resolving dependencies...
Downloading ansi-terminal-0.5.5...
Downloading deepseq-1.3.0.0...
Downloading transformers-0.2.2.0...
cabal: /home/hossein/.cabal/logs: permission denied
make[2]: *** [try-install] Error 1
make[2]: Leaving directory `/home/hossein/Sources/k-framework/tools/krun'
-e \e[91mNOTE: Please type `make clean` followed by `cabal update` and
try again before reporting any errors.\e[0m
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/hossein/Sources/k-framework/tools/krun'
make: *** [all] Error 2
Am I missing anything?
Cheers,
--Hossein
--------------------------------------------------------------------------------------------------------------
Seyed H. HAERI (Hossein)
Research Assistant
Institute for Software Systems (STS)
Technical University of Hamburg (TUHH)
Hamburg, Germany
ACCU - Professionalism in programming - http://www.accu.org/
--------------------------------------------------------------------------------------------------------------
- Re: [K-user] Trouble with Making my $K_BASE, (continued)
- Re: [K-user] Trouble with Making my $K_BASE, Seyed H. HAERI (Hossein), 02/07/2012
- Re: [K-user] Trouble with Making my $K_BASE, Andrei Arusoaie, 02/07/2012
- Re: [K-user] Trouble with Making my $K_BASE, Rosu, Grigore, 02/07/2012
- Re: [K-user] Trouble with Making my $K_BASE, Seyed H. HAERI (Hossein), 02/07/2012
- Re: [K-user] Trouble with Making my $K_BASE, Mark Hills, 02/07/2012
- Re: [K-user] Trouble with Making my $K_BASE, Seyed H. HAERI (Hossein), 02/07/2012
- Re: [K-user] Trouble with Making my $K_BASE, Mark Hills, 02/07/2012
- Re: [K-user] Trouble with Making my $K_BASE, Seyed H. HAERI (Hossein), 02/07/2012
- Re: [K-user] Trouble with Making my $K_BASE, Mark Hills, 02/07/2012
- Re: [K-user] Trouble with Making my $K_BASE, Seyed H. HAERI (Hossein), 02/07/2012
- Re: [K-user] Trouble with Making my $K_BASE, Mark Hills, 02/07/2012
- Re: [K-user] Trouble with Making my $K_BASE, Seyed H. HAERI (Hossein), 02/07/2012
- Re: [K-user] Trouble with Making my $K_BASE, Mark Hills, 02/07/2012
- Re: [K-user] Trouble with Making my $K_BASE, Seyed H. HAERI (Hossein), 02/07/2012
- Re: [K-user] Trouble with Making my $K_BASE, Rosu, Grigore, 02/07/2012
- Re: [K-user] Trouble with Making my $K_BASE, Andrei Arusoaie, 02/07/2012
- Re: [K-user] Trouble with Making my $K_BASE, Seyed H. HAERI (Hossein), 02/07/2012
Archive powered by MHonArc 2.6.16.