[GRASSLIST:461] Re: Building GRASS in a user account
Glynn Clements
glynn at gclements.plus.com
Tue Mar 28 15:44:41 EST 2006
David Finlayson wrote:
> In the past, I've always had root access to install libraries via the
> package managers prior to building GRASS from CVS. I am now facing a
> system where I will not have root access period. In fact, I cannot
> even use CVS since the firewall blocks most ports (I tried the https
> trick by adding 443 at the end of the IP address, but I don't think it
> is supported by CVSROOT.
>
> So, I created a source directory in my user account and downloaded
> grass and proj4. Proj4 built without problems. But how do I "install"
> it in my user account? That is, where do I put the files (and what is
> the best way to get them there) so that I can build GRASS against the
> proj4 headers and libraries?
Put them wherever you want. It will probably help to create a personal
"root" directory in your home directory which will serve as the root
for all self-installed packages.
E.g. if you use ~/local, configure packages such as proj using
--prefix=$HOME/local ("~" doesn't work in the middle of an argument,
but "$HOME" does) to get headers and libraries into ~/local/include
and ~/local/lib, then use --with-includes=$HOME/local/include and
--with-libs=$HOME/local/lib when configuring GRASS.
You will probably also need to set LD_LIBRARY_PATH to your personal
library directory to get shared libraries to work.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user
mailing list