Re: Reduced privileges install

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[We prefer if you hit 'Reply-All' when replying so that all
 commenters are retained on the cc list]

On 09/20/2010 11:56 AM, Andrew Keller wrote:

> This is what it took to compile Git on this server without root privileges (Solaris 8 / Sparc):

I thought it was Solaris 9? :)

> # create a location for apps in my home folder:
> mkdir ~/.local
> export PATH=$PATH:/usr/users/students/ak4390/.local/bin
> export MANPATH=$MANPATH:/usr/users/students/ak4390/.local/share/man

Setting MANPATH is only necessary if you want to be able to type
'man git-add' or something.  Instead, you can use the 'help' subcommand
of git, or the --help option of each command, and it will display
the man page for you.

   $ git help add

> # compile and install git
> $ ln -s /usr/local/bin/tclsh8.4 /usr/users/students/ak4390/.local/bin/tclsh

You can set TCL_PATH instead of creating this symbolic link.

> $ export CC=/usr/local/bin/gcc
> $ cd <path-to-git-src>
> $ ./configure --prefix=/usr/users/students/ak4390/.local --with-python=/usr/local/bin/python --enable-pthreads=no
> $ make NO_PERL_MAKEMAKER=1 all install
> 
> Letting the configure figure out the threading did not seem to work.
> The compile and install worked, with lots of warnings from gcc about not
> recognizing -pthreads, but when you try to do a clone, git complained about
> not being able to fork off the demultiplexer.  So I just turned off threading
> and it works.

Maybe the configure script is broken with respect to detecting threads on
Solaris 8 (or 9)?  You probably don't really need to run the configure
script on your platform.  I don't.  Since you're using gcc to compile, the
default pthread switch '-lpthread' should be appropriate.  You could try
deleting the config.mak.autogen file that configure creates, and just run
make by itself.  Based on what you've describe, it would look something
like this:

   cd <path-to-git-src>
   rm config.mak.autogen
   cat >config.mak <<EOF
CC=/usr/local/bin/gcc
PREFIX=/usr/users/students/ak4390/.local
PYTHON_PATH=/usr/local/bin/python
TCL_PATH=/usr/local/bin/tclsh8.4
NO_PERL_MAKEMAKER=1
EOF
   make

Then add 'install' to the make command line when you are ready.

Notice, I placed all of the make settings in a file named config.mak.  This
file is imported by the main Makefile automatically and is intended to be
used like this for user settings.  If you really need to disable pthreads,
then you can add NO_PTHREADS=1.  Check out the comments at the top of the
Makefile for a list of all variables that can be set.

> The quick-install-man target still failed,

Strange.  You tried _after_ you installed git right?

-Brandon
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]