[GRASS-dev] Gaining write privileges to usr/local and subdirectories

Is there a way I can give myself privileges in my own usr/local to write to it and its subdirectories?

In following the directions to build grass7_trunk, I put the source under /usr/local/src/grass7_trunk, and now everything I do which modifies anything must be preceeded with sudo. I would like to eliminate this requirement for day-to-day work.

Thanks.

  • Paul

Hi,

2017-05-23 17:12 GMT+02:00 Paul Schrum <paul.schrum@gmail.com>:

In following the directions to build grass7_trunk, I put the source under
/usr/local/src/grass7_trunk, and now everything I do which modifies anything
must be preceeded with sudo. I would like to eliminate this requirement for
day-to-day work.

chown [1], chmod [2]. Martin

[1] http://www.linfo.org/chown.html
[2] http://man.cat-v.org/plan_9/1/chmod

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

On 23/05/17 17:21, Martin Landa wrote:

Hi,

2017-05-23 17:12 GMT+02:00 Paul Schrum <paul.schrum@gmail.com>:

In following the directions to build grass7_trunk, I put the source under
/usr/local/src/grass7_trunk, and now everything I do which modifies anything
must be preceeded with sudo. I would like to eliminate this requirement for
day-to-day work.

chown [1], chmod [2]. Martin

[1] http://www.linfo.org/chown.html
[2] http://man.cat-v.org/plan_9/1/chmod

Even though these commands do the job, I would not recommend it. Just put your entire src tree somewhere into your $HOME directory. No need to have it in /usr/local.

Moritz

Paul Schrum wrote

Is there a way I can give myself privileges in my own usr/local to write
to
it and its subdirectories?

In following the directions to build grass7_trunk, I put the source under
/usr/local/src/grass7_trunk, and now everything I do which modifies
anything must be preceeded with sudo. I would like to eliminate this
requirement for day-to-day work.

here on my debian, I put the grass source code in my /home/ directory [1]
and do there all my coding and compiling. maybe not the best practice, but
no chown/chmod needed.

[1] https://wiki.debian.org/FilesystemHierarchyStandard

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Gaining-write-privileges-to-usr-local-and-subdirectories-tp5321487p5321498.html
Sent from the Grass - Dev mailing list archive at Nabble.com.

I started off trying to build it in a directory under my home directory using the instructions here, but I could not get it to build. The only part of those instructions that I was not following were the path. So I started using the paths indicated in those instructions and then it would build. That is why my copy of the source is where it is.

Based on yall’s comments, I now think it was something other than the path where I was storing the source code, but I have no idea what.

···

On Tue, May 23, 2017 at 11:33 AM, Moritz Lennert <mlennert@club.worldonline.be> wrote:

On 23/05/17 17:21, Martin Landa wrote:

Hi,

2017-05-23 17:12 GMT+02:00 Paul Schrum <paul.schrum@gmail.com>:

In following the directions to build grass7_trunk, I put the source under
/usr/local/src/grass7_trunk, and now everything I do which modifies anything
must be preceeded with sudo. I would like to eliminate this requirement for
day-to-day work.

chown [1], chmod [2]. Martin

[1] http://www.linfo.org/chown.html
[2] http://man.cat-v.org/plan_9/1/chmod

Even though these commands do the job, I would not recommend it. Just put your entire src tree somewhere into your $HOME directory. No need to have it in /usr/local.

Moritz

Paul Schrum wrote

I started off trying to build it in a directory under my home directory
using the instructions here
&lt;https://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu#Dependencies&gt;,
but I could not get it to build. The only part of those instructions that
I was not following were the path. So I started using the paths indicated
in those instructions and then it would build. That is why my copy of the
source is where it is.

Based on yall's comments, I now think it was something other than the path
where I was storing the source code, but I have no idea what.

please post here your steps and error (?)/warning(?) messages of compiling.

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Gaining-write-privileges-to-usr-local-and-subdirectories-tp5321487p5321504.html
Sent from the Grass - Dev mailing list archive at Nabble.com.

Going by https://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu#GRASS_GIS and focusing on GRASS GIS 7 trunk:

  1. Last week I did
svn co [https://svn.osgeo.org/grass/grass/trunk](https://svn.osgeo.org/grass/grass/trunk) grass7_trunk

On a directory under my ownership.

  1. Today in that same directory I ran

svn up

  1. I ran the large statement which begins with
CFLAGS="-O2 -Wall" LDFLAGS="-s" ./configure \

Here is where the problem is. It seems to go into an infinite loop.*

Also note that when I run it from /usr/local/src/grass7_trunk – where I was running it when I started this thread – it succeeded. It did not go into the infinite loop.

  • When the process starts, the first few lines read:
    ./configure: 229: ./configure: Cannot fork
    ./configure: 300: ./configure: Cannot fork
    ./configure: 300: ./configure: Cannot fork

There is a lot more I could send but have not, including the last lines before it restarts at the top of the loop.

Please let me know what more information to five you or what changes I should make.

  • Paul
···

On Tue, May 23, 2017 at 11:44 AM, Helmut Kudrnovsky <hellik@web.de> wrote:

Paul Schrum wrote

I started off trying to build it in a directory under my home directory
using the instructions here
<https://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu#Dependencies&gt;,
but I could not get it to build. The only part of those instructions that
I was not following were the path. So I started using the paths indicated
in those instructions and then it would build. That is why my copy of the
source is where it is.

Based on yall’s comments, I now think it was something other than the path
where I was storing the source code, but I have no idea what.

please post here your steps and error (?)/warning(?) messages of compiling.


best regards
Helmut

View this message in context: http://osgeo-org.1560.x6.nabble.com/Gaining-write-privileges-to-usr-local-and-subdirectories-tp5321487p5321504.html

Sent from the Grass - Dev mailing list archive at Nabble.com.


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

On Wed, May 24, 2017 at 1:28 PM, Paul Schrum <paul.schrum@gmail.com> wrote:

Going by
https://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu#GRASS_GIS and
focusing on GRASS GIS 7 trunk:

1. Last week I did

svn co https://svn.osgeo.org/grass/grass/trunk grass7_trunk

On a directory under my ownership.

2. Today in that same directory I ran
svn up

3. I ran the large statement which begins with

CFLAGS="-O2 -Wall" LDFLAGS="-s" ./configure \

Here is where the problem is. It seems to go into an infinite loop.*

The backslash there means that the command continues on the next line,
you should copy the entire command.

This is my configure command for example:

CFLAGS="-ggdb -O0 -Werror-implicit-function-declaration -Wall" ./configure \
--enable-largefile=yes \
--with-nls \
--with-cxx \
--with-readline \
--with-pthread \
--with-proj-share=/usr/share/proj/ \
--with-geos=/usr/local/bin/geos-config \
--with-wxwidgets \
--with-cairo \
--with-opengl-libs=/usr/include/GL \
--with-freetype=yes --with-freetype-includes="/usr/include/freetype2/" \
--with-postgres=yes --with-postgres-includes="/usr/include/postgresql" \
--with-sqlite=yes \
--with-mysql=yes --with-mysql-includes="/usr/include/mysql" \
--with-odbc=no \
--with-netcdf \
--with-lapack \
--with-blas \
--with-omp \
--with-liblas=yes --with-liblas-config=/usr/bin/liblas-config

Also note that when I run it from /usr/local/src/grass7_trunk -- where I was
running it when I started this thread -- it succeeded. It did not go into
the infinite loop.

* When the process starts, the first few lines read:
./configure: 229: ./configure: Cannot fork
./configure: 300: ./configure: Cannot fork
./configure: 300: ./configure: Cannot fork

There is a lot more I could send but have not, including the last lines
before it restarts at the top of the loop.

Please let me know what more information to five you or what changes I
should make.

- Paul

On Tue, May 23, 2017 at 11:44 AM, Helmut Kudrnovsky <hellik@web.de> wrote:

Paul Schrum wrote
> I started off trying to build it in a directory under my home directory
> using the instructions here
>
> &lt;https://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu#Dependencies&gt;,
> but I could not get it to build. The only part of those instructions
> that
> I was not following were the path. So I started using the paths
> indicated
> in those instructions and then it would build. That is why my copy of
> the
> source is where it is.
>
> Based on yall's comments, I now think it was something other than the
> path
> where I was storing the source code, but I have no idea what.

please post here your steps and error (?)/warning(?) messages of
compiling.

-----
best regards
Helmut
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Gaining-write-privileges-to-usr-local-and-subdirectories-tp5321487p5321504.html
Sent from the Grass - Dev mailing list archive at Nabble.com.
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

user@osgeolive:~/ALL/SourceModules/cpp/grass7_trunk$ CFLAGS=“-O2 -Wall” LDFLAGS=“-s” ./configure --enable-largefile=yes --with-nls --with-cxx --with-readline --with-pthread --with-proj-share=/usr/local/share/proj/ --with-geos=/usr/local/bin/geos-config --with-wxwidgets --with-cairo --with-opengl-libs=/usr/include/GL --with-freetype=yes --with-freetype-includes=“/usr/include/freetype2/” --with-postgres=yes --with-postgres-includes=“/usr/include/postgresql” --with-sqlite=yes --with-mysql=yes --with-mysql-includes=“/usr/include/mysql” --with-odbc=no --with-liblas=yes --with-liblas-config=/usr/bin/liblas-config

Sorry I didn’t post the whole thing. It is the same as what is on the go-by webpage, “GRASS GIS 7 example configuration”

···

On Wed, May 24, 2017 at 1:40 PM, Anna Petrášová <kratochanna@gmail.com> wrote:

On Wed, May 24, 2017 at 1:28 PM, Paul Schrum <paul.schrum@gmail.com> wrote:

Going by
https://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu#GRASS_GIS and
focusing on GRASS GIS 7 trunk:

  1. Last week I did

svn co https://svn.osgeo.org/grass/grass/trunk grass7_trunk

On a directory under my ownership.

  1. Today in that same directory I ran
    svn up

  2. I ran the large statement which begins with

CFLAGS=“-O2 -Wall” LDFLAGS=“-s” ./configure \

Here is where the problem is. It seems to go into an infinite loop.*

The backslash there means that the command continues on the next line,
you should copy the entire command.

This is my configure command for example:

CFLAGS=“-ggdb -O0 -Werror-implicit-function-declaration -Wall” ./configure
–enable-largefile=yes
–with-nls
–with-cxx
–with-readline
–with-pthread
–with-proj-share=/usr/share/proj/
–with-geos=/usr/local/bin/geos-config
–with-wxwidgets
–with-cairo
–with-opengl-libs=/usr/include/GL
–with-freetype=yes --with-freetype-includes=“/usr/include/freetype2/”
–with-postgres=yes --with-postgres-includes=“/usr/include/postgresql”
–with-sqlite=yes
–with-mysql=yes --with-mysql-includes=“/usr/include/mysql”
–with-odbc=no
–with-netcdf
–with-lapack
–with-blas
–with-omp
–with-liblas=yes --with-liblas-config=/usr/bin/liblas-config

Also note that when I run it from /usr/local/src/grass7_trunk – where I was
running it when I started this thread – it succeeded. It did not go into
the infinite loop.

  • When the process starts, the first few lines read:
    ./configure: 229: ./configure: Cannot fork
    ./configure: 300: ./configure: Cannot fork
    ./configure: 300: ./configure: Cannot fork

There is a lot more I could send but have not, including the last lines
before it restarts at the top of the loop.

Please let me know what more information to five you or what changes I
should make.

  • Paul

On Tue, May 23, 2017 at 11:44 AM, Helmut Kudrnovsky <hellik@web.de> wrote:

Paul Schrum wrote

I started off trying to build it in a directory under my home directory
using the instructions here

<https://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu#Dependencies&gt;,
but I could not get it to build. The only part of those instructions
that
I was not following were the path. So I started using the paths
indicated
in those instructions and then it would build. That is why my copy of
the
source is where it is.

Based on yall’s comments, I now think it was something other than the
path
where I was storing the source code, but I have no idea what.

please post here your steps and error (?)/warning(?) messages of
compiling.


best regards
Helmut

View this message in context:
http://osgeo-org.1560.x6.nabble.com/Gaining-write-privileges-to-usr-local-and-subdirectories-tp5321487p5321504.html
Sent from the Grass - Dev mailing list archive at Nabble.com.


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Paul Schrum wrote

Going by
https://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu#GRASS_GIS and
focusing on GRASS GIS 7 trunk:

1. Last week I did

svn co https://svn.osgeo.org/grass/grass/trunk grass7_trunk

On a directory under my ownership.

2. Today in that same directory I ran
svn up

3. I ran the large statement which begins with

CFLAGS="-O2 -Wall" LDFLAGS="-s" ./configure \

Here is where the problem is. It seems to go into an infinite loop.*

Also note that when I run it from /usr/local/src/grass7_trunk -- where I
was running it when I started this thread -- it succeeded. It did not go
into the infinite loop.

* When the process starts, the first few lines read:
./configure: 229: ./configure: Cannot fork
./configure: 300: ./configure: Cannot fork
./configure: 300: ./configure: Cannot fork

There is a lot more I could send but have not, including the last lines
before it restarts at the top of the loop.

Please let me know what more information to five you or what changes I
should make.

- Paul

On Tue, May 23, 2017 at 11:44 AM, Helmut Kudrnovsky &lt;

hellik@

&gt; wrote:

Paul Schrum wrote
> I started off trying to build it in a directory under my home directory
> using the instructions here
> &lt;https://grasswiki.osgeo.org/wiki/Compile_and_Install_
Ubuntu#Dependencies&gt;,
> but I could not get it to build. The only part of those instructions
that
> I was not following were the path. So I started using the paths
indicated
> in those instructions and then it would build. That is why my copy of
the
> source is where it is.
>
> Based on yall's comments, I now think it was something other than the
path
> where I was storing the source code, but I have no idea what.

please post here your steps and error (?)/warning(?) messages of
compiling.

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.
nabble.com/Gaining-write-privileges-to-usr-local-and-subdirectories-
tp5321487p5321504.html
Sent from the Grass - Dev mailing list archive at Nabble.com.
_______________________________________________
grass-dev mailing list

grass-dev@.osgeo

https://lists.osgeo.org/mailman/listinfo/grass-dev

_______________________________________________
grass-dev mailing list

grass-dev@.osgeo

https://lists.osgeo.org/mailman/listinfo/grass-dev

no configure/compiling guru here on my side, googling

e.g. configure + "Cannot fork"

may show some issues with too many processes in your computer.

as your issue has changed from "Gaining write privileges to usr/local and
subdirectories" to some other, maybe changing the subject line of the thread
to get more devs involved.

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Gaining-write-privileges-to-usr-local-and-subdirectories-tp5321487p5321772.html
Sent from the Grass - Dev mailing list archive at Nabble.com.

Helmut,

My GSoC mentor (Vashek) just now helped me work through this.

I turns out that in my newbie confusion I was calling ./configure from ./configure, so it wasn’t an endless loop, it was an endless recursion.

Thank you very much for your help.

  • Paul
···

On Thu, May 25, 2017 at 3:58 AM, Helmut Kudrnovsky <hellik@web.de> wrote:

Paul Schrum wrote

Going by
https://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu#GRASS_GIS and
focusing on GRASS GIS 7 trunk:

  1. Last week I did

svn co https://svn.osgeo.org/grass/grass/trunk grass7_trunk

On a directory under my ownership.

  1. Today in that same directory I ran
    svn up

  2. I ran the large statement which begins with

CFLAGS=“-O2 -Wall” LDFLAGS=“-s” ./configure \

Here is where the problem is. It seems to go into an infinite loop.*

Also note that when I run it from /usr/local/src/grass7_trunk – where I
was running it when I started this thread – it succeeded. It did not go
into the infinite loop.

  • When the process starts, the first few lines read:
    ./configure: 229: ./configure: Cannot fork
    ./configure: 300: ./configure: Cannot fork
    ./configure: 300: ./configure: Cannot fork

There is a lot more I could send but have not, including the last lines
before it restarts at the top of the loop.

Please let me know what more information to five you or what changes I
should make.

  • Paul

On Tue, May 23, 2017 at 11:44 AM, Helmut Kudrnovsky <

hellik@

> wrote:

Paul Schrum wrote

I started off trying to build it in a directory under my home directory
using the instructions here
<https://grasswiki.osgeo.org/wiki/Compile_and_Install_
Ubuntu#Dependencies>,
but I could not get it to build. The only part of those instructions
that
I was not following were the path. So I started using the paths
indicated
in those instructions and then it would build. That is why my copy of
the
source is where it is.

Based on yall’s comments, I now think it was something other than the
path
where I was storing the source code, but I have no idea what.

please post here your steps and error (?)/warning(?) messages of
compiling.


best regards
Helmut

View this message in context: http://osgeo-org.1560.x6.
nabble.com/Gaining-write-privileges-to-usr-local-and-subdirectories-
tp5321487p5321504.html
Sent from the Grass - Dev mailing list archive at Nabble.com.


grass-dev mailing list

grass-dev@.osgeo

https://lists.osgeo.org/mailman/listinfo/grass-dev


grass-dev mailing list

grass-dev@.osgeo

https://lists.osgeo.org/mailman/listinfo/grass-dev

no configure/compiling guru here on my side, googling

e.g. configure + “Cannot fork”

may show some issues with too many processes in your computer.

as your issue has changed from “Gaining write privileges to usr/local and
subdirectories” to some other, maybe changing the subject line of the thread
to get more devs involved.


best regards
Helmut

View this message in context: http://osgeo-org.1560.x6.nabble.com/Gaining-write-privileges-to-usr-local-and-subdirectories-tp5321487p5321772.html

Sent from the Grass - Dev mailing list archive at Nabble.com.


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Paul Schrum wrote

My GSoC mentor (Vashek) just now helped me work through this.

I turns out that in my newbie confusion I was calling ./configure from
./configure, so it wasn't an endless loop, it was an endless recursion.

good to hear that's working now.

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Gaining-write-privileges-to-usr-local-and-subdirectories-tp5321487p5321982.html
Sent from the Grass - Dev mailing list archive at Nabble.com.