git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git on Solaris?

From
Shawn O. Pearce <spearce@spearce.org>
Date
Feb 20, 2008, 22:52 UTC
Message-ID
<20080220225208.GY24004@spearce.org>
In-Reply-To
<200802202158.m1KLw2wM014330@rs40.luxsci.com>
Daniel Quinlan <danq@brtt.com> wrote:
Show 11 quoted lines
> However, it's by no means straightforward to compile git on solaris,  
> no one seems to provide
> a compiled version (eg, sunfreeware.com), and I haven't found any  
> clear cookbook description of how to
> compile, test and install git on the solaris (10) platform.
> 
> So my questions are:
> 
> * Is there a set of instructions for Solaris somewhere that I've missed?
> 
> * Is anyone actually using git on Solaris?
Yes.  I run it on Solaris 9 and on Solaris 10, SPARC editions anyway.
I haven't personally tested it on the x86 Solaris version yet but
I don't expect any major differences from the SPARC edition.
 
>  Right now, it appears that gnu make and bash are both required to  
> make git, and perhaps a bunch
>  of other gnu utilities.

At least GNU make is required to compile Git. This is available pretty readily, and also builds fairly easy out of the box as source code if (for some reason) you cannot install a version from sunfreeware.com. Some little voice in the back of my head thinks it may also be available out of the box on Solaris 10 but I'm not sure.

> * Once made, do the git scripts require gnu utilities to work  
> properly?  I'm a bit leery of putting the
>     GNU utilities ahead of the solaris ones in my path (and everyone  
> elses).

Either the GNU utilties or /usr/xpg4/bin needs to be early in your PATH so that Git can pick up tools from there. I think I'm actually building Git with a config.mak along the lines of:

	$ cat - >config.mak
	SHELL=/usr/xpg4/bin/sh
	SHELL_PATH=$(SHELL)
	^D

and then ensuring users have /usr/xpg4/bin very early in their PATH environment variable.

It does manage to build with both gcc and the Solaris workshop compilers, so about the only GNU program really necessary to get git built is GNU make. Of course I'm only talking about the really core functionality; tools like git-p4, git-svn, gitk, git-gui will require support beyond that (Python, Perl SVN bindings, Tcl/Tk...).

-- 
Shawn.
Previous: Daniel QuinlanNext: Glenn Rempe
Message 2 of 3 in “git on Solaris?”
  1. Daniel QuinlanFeb 20, 2008
  2. Shawn O. PearceFeb 20, 2008
  3. Glenn RempeFeb 20, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.