[GRASS5] Structure of an optimal grass installation

Hi all

What is the structure of an optimal grass installation (under linux as I
don't know what it's like on different unixs)?

/usr/bin/grass5
/opt/bin/d.* (all binaries)
/opt/lib/libgrass* (all libs)
/opt/documents/* (all html files)
/usr/share/man/man1/d.*.1 (all man pages)

About that way?
I would prefer /opt as it's the right place for optional, big packages.

--
Ciao
  Jens Oberender

Jens Oberender wrote:

What is the structure of an optimal grass installation (under linux as I
don't know what it's like on different unixs)?

/usr/bin/grass5
/opt/bin/d.* (all binaries)
/opt/lib/libgrass* (all libs)
/opt/documents/* (all html files)
/usr/share/man/man1/d.*.1 (all man pages)

About that way?

No. Everything except for the grass5 script should go into a single
directory. The grass5 script should set GISBASE to that directory.

I would prefer /opt as it's the right place for optional, big packages.

In which case, use /opt/grass5; i.e. "configure --prefix=/opt" (the
grass5 subdirectory is added automatically).

As for the manual pages, add /opt/grass5/man to MANPATH. If you want
the HTML documents to be accessible from a standard location, create a
symlink, e.g.:

  ln -s /opt/grass5/documents /opt/documents/grass5

--
Glynn Clements <glynn.clements@virgin.net>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jens Oberender wrote:

Hi all

What is the structure of an optimal grass installation (under linux as I
don't know what it's like on different unixs)?

/usr/bin/grass5
/opt/bin/d.* (all binaries)
/opt/lib/libgrass* (all libs)
/opt/documents/* (all html files)

With this setup, you are mixing libraries and binaries from diffierent
3rd-party packages, which most likely will give you some headaches
sometime (ie if you install grass57 and grass5). The point of GRASS
having it's own library/binary directories is to avoid this (otherwise
you would dump them in /usr/local/lib or /usr/local/bin etc.

/usr/share/man/man1/d.*.1 (all man pages)

About that way?
I would prefer /opt as it's the right place for optional, big packages.

Well, that depends if the package ships with your unix or not. Since
Mandrake has GRASS packages in contrib, they are part of the distro, and
don't belong in /opt, so I put the grass distribution in /usr/lib/grass5
(Mozilla is in /usr/lib/mozilla-$VER, OpenOffice.org is in
/usr/lib/openoffice already to set the precedent), with only the grass5
script in /usr/bin.

The only real issue is that you need to set the manpath manually if you
want to read man pages outside the grass shell.

Regards,
Buchan

- --
|--------------Another happy Mandrake Club member--------------|
Buchan Milne Mechanical Engineer, Network Manager
Cellphone * Work +27 82 472 2231 * +27 21 8828820x202
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/vdK7rJK6UGDSBKcRAuPHAJoCAulPPRXhiu1pH3vkwZmP6XhsGwCgkiQ5
0DVsbYZtU8UJ2f5igbKkze4=
=ARuf
-----END PGP SIGNATURE-----

Hi again

> What is the structure of an optimal grass installation (under linux as I
> don't know what it's like on different unixs)?
>
> /usr/bin/grass5
> /opt/bin/d.* (all binaries)
> /opt/lib/libgrass* (all libs)
> /opt/documents/* (all html files)

With this setup, you are mixing libraries and binaries from diffierent
3rd-party packages, which most likely will give you some headaches
sometime (ie if you install grass57 and grass5). The point of GRASS
having it's own library/binary directories is to avoid this (otherwise
you would dump them in /usr/local/lib or /usr/local/bin etc.

I made a mistake the path should be /opt/grass5.
So that be fine:

/usr/bin/grass5
%{prefix}/grass5/bin
%{prefix}/grass5/lib
%{prefix}/grass5/man
%{prefix}/grass5/documents

And prefix depends on eachs taste or the distribution.

The only real issue is that you need to set the manpath manually if you
want to read man pages outside the grass shell.

They aren't needed outside, so it's OK to put them under
%{prefix}/grass5/man.

Well, that depends if the package ships with your unix or not. Since
Mandrake has GRASS packages in contrib, they are part of the distro, and
don't belong in /opt, so I put the grass distribution in /usr/lib/grass5
(Mozilla is in /usr/lib/mozilla-$VER, OpenOffice.org is in
/usr/lib/openoffice already to set the precedent), with only the grass5
script in /usr/bin.

SUSE Linux uses /opt for those packages, but has no grass.

By the way could you send me the spec file you are using for the Mandrake
packages (5.3 and 5.7), I would like to build some packages for SUSE but
didn't manage to build grass clean.

--
Ciao
  Jens Oberender