git on Solaris

by gorthx

Boy howdy, was this a trial. Sheesh. (I am in no way pointing fingers at git for this mess…really, it’s this server [that I don’t have admin rights on] that doesn’t behave the way I expect.)

Solaris 10 on x86. (uname -a: SunOS princess 5.10 Generic_125101-10 i86pc i386 i86pc)

Here’s what I had to do, gathered from various places around the web (the Makefile editing was gleaned mainly from

First, I had to install my own gmake, openssl, curl, and a couple of other required libraries.

./configure --prefix=/home/gabrielle/usr/local

Edit the makefile:
:::-->diff Makefile Makefile.orig
< CFLAGS = -g -O2 -Wall -I/home/gabrielle/usr/local/include
CFLAGS = -g -O2 -Wall
< CURLDIR=/home/gabrielle/usr/local

Make sure we’re using gnu make:
:::-->/home/gabrielle/usr/local/bin/make -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

This program built for i386-pc-solaris2.10

Then install like so:
/home/gabrielle/usr/local/bin/make INSTALL=/usr/ucb/install
/home/gabrielle/usr/local/bin/make INSTALL=/usr/ucb/install install

Voila doesn’t really seem the appropriate thing to say here.

Tags: , ,

One Comment to “git on Solaris”

  1. Thanks for the info – I was in the same situation (no admin on the Solaris machine) and your instructions were very helpful.

    One thing: in the configure command, it should be “–with-openssl=/home/gabrielle/usr/local” rather than “–with-openssl=/home/gabrielle/usr/local/include”.

%d bloggers like this: