Hi,
I’m trying to install some extension in grass 7 (compiled from svn grass_trunk code in ubuntu 12.10) but I get this message for all my tests:
ERROR: MAPSET PERMANENT - permission denied
make: *** [v.surf.icw.tmp.html] Errore 1
rm v.surf.icw.tmp.html
ERROR: Compilation failed, sorry. Please check above error messages.
I can’t understand why the “permission is denied” in MAPSET PERMANENT: I’ve set all files and folders with “chmod 777 *” and my $GRASS_ADDON_BASE=/home/
gianluca/.grass7/addons.
I hope anybody can help me
gianluca
[I’m apologize for precedent post, I’ve sent a message with wrong object!]
On Fri, Nov 16, 2012 at 10:53 PM, Gianluca Massei
<agr.gianluca.massei@gmail.com> wrote:
Hi,
I'm trying to install some extension in grass 7 (compiled from svn
grass_trunk code in ubuntu 12.10) but I get this message for all my tests:
ERROR: MAPSET PERMANENT - permission denied
I can't understand why the "permission is denied" in MAPSET PERMANENT: I've
set all files and folders with "chmod 777 *" and my
$GRASS_ADDON_BASE=/home/gianluca/.grass7/addons.
Do you use the wxGUI integrated extension manager or "g.extension" (as
the subject states)?
I’m sorry I’ve sent the message “too many” times in the list! %-(
Are you the owner of the mapset?
Yes, I’m owner of the mapset. With ls -l -a I’ve this:
drwxrwxrwx 6 gianluca gianluca 4096 nov 6 21:58 UmbriaRoma40
I’ve used g.extension from command line.
I’ve the same problem in grass 6.4
Hi,
I’m trying to install some extension in grass 7 (compiled from svn
grass_trunk code in ubuntu 12.10) but I get this message for all my tests:
ERROR: MAPSET PERMANENT - permission denied
I can’t understand why the “permission is denied” in MAPSET PERMANENT: I’ve
set all files and folders with “chmod 777 *” and my
$GRASS_ADDON_BASE=/home/gianluca/.grass7/addons.
Do you use the wxGUI integrated extension manager or “g.extension” (as
the subject states)?
If you only want to use this addon, then you just need to download the addon and run the command " sudo make MODULE_TOPDIR=/usr/local/grass-7.0.svn/" in the addon folder.
Hi,
I’m trying to install some extension in grass 7 (compiled from svn
grass_trunk code in ubuntu 12.10) but I get this message for all my tests:
ERROR: MAPSET PERMANENT - permission denied
I can’t understand why the “permission is denied” in MAPSET PERMANENT: I’ve
set all files and folders with “chmod 777 *” and my
$GRASS_ADDON_BASE=/home/gianluca/.grass7/addons.
Do you use the wxGUI integrated extension manager or “g.extension” (as
the subject states)?
If you only want to use this addon, then you just need to download the addon
and run the command " sudo make MODULE_TOPDIR=/usr/local/grass-7.0.svn/" in
the addon folder.
Dehui,
Of course I don't know how you have setup your operating systems environment
variables and other details. Yet, I would like point out (actually repeat)
that one shouldn't compile, e.g. use the make command, as a super-user.
Inside a directory whose permissions grant read and write access to a user,
the use of sudo is not/should not be required. Furthermore, I am not sure if
there are/will be other implications -- probably not. But still, it is not a
good practice.
The reason that sudo is required for the installation step, is of course
that the process itself copies files in "privileged" directories. Without
sudo the installation would fail.
However, in case you know why you use sudo while compiling, I kindly ask
you to share some details. I would like to know -- since I too was told, in
the past, that doing "sudo make" is not required (maybe not correct).
Hi Nikos,
My grasssvns(7,6.5,6.4) and grass-addons are all in /usr/local/ folders, so the compiling and installing command need the super user permission, if not, the installations will be failed. For example, I use the following command to install all the grass7-addons:
cd /usr/local/grass-addons/grass7;sudo make MODULE_TOPDIR=/usr/local/grass-7.0.svn/
Best regards,
dehui
在2012-11-21 15:56:15,王德辉<dehuiw@gig.ac.cn>写道:
王德辉:
> If you only want to use this addon, then you just need to download the addon
> and run the command " sudo make MODULE_TOPDIR=/usr/local/grass-7.0.svn/" in
> the addon folder.
Dehui,
Of course I don't know how you have setup your operating systems environment
variables and other details. Yet, I would like point out (actually repeat)
that one shouldn't compile, e.g. use the make command, as a super-user.
Inside a directory whose permissions grant read and write access to a user,
the use of sudo is not/should not be required. Furthermore, I am not sure if
there are/will be other implications -- probably not. But still, it is not a
good practice.
The reason that sudo is required for the installation step, is of course
that the process itself copies files in "privileged" directories. Without
sudo the installation would fail.
However, in case you know why you use sudo while compiling, I kindly ask
you to share some details. I would like to know -- since I too was told, in
the past, that doing "sudo make" is not required (maybe not correct).
My grasssvns(7,6.5,6.4) and grass-addons are all in /usr/local/ folders,
you should grant rwx access to the respective directory(-ies)
> so the compiling...
...will and should not be required to be executed as a super-user
...and installing command need the super user permission,
the installation yes, it is probably required since stuff are copied in
"restricted" directories
if not, the installations will be failed.
For example, I use the following
command to install all the grass7-addons: cd
/usr/local/grass-addons/grass7;sudo make
MODULE_TOPDIR=/usr/local/grass-7.0.svn/ Best regards,
Here also, my guess is that you do not need _sudo_.
Nikos