A place where the Joyent community can gather, help each other out, and stay informed.
You are not logged in.
Here is a link to how to get git and cap 2.0 to work and play well together.
Now if we could just get git to compile on solaris ... Jason??
Offline
dj2 wrote:
Git compiles on Solaris. i'm using it on my accelerator. You have to set NO_ICONV and make sure your paths are correct. What is the specific error you're getting?
Did you use gcc or cc?
Offline
I just went through the process again and there are a few things I'd forgotten about
gunzip -c git-1.5.2.5.tar.gz |tar xf - cd git-1.5.2.5/ make configure vi Makefile
Where it says AR = ar change it to be AR = gar. Just before ifndef NO_ICONV add a NO_ICONV=1. For the CFLAGS add -I/opt/csw/include and for the LDFLAGS add -L/opt/csw/lib
After that a simple 'make' should build everything.
Last edited by dj2 (2007-09-04 17:35:35)
Offline
sweet thanks, will give that a spin tonight
Offline
I tried to compile GIT as per above but got a failure during make:
admin$ make CC convert-objects.oopenssl is installed, so I guess I need something else. Anyone got a clue?
Offline
same thing here, but gave up because i had other stuff to do, just wanted to get it installed for friday when i'll be able to do something useful for more than 5 minutes.
Offline
Did you set the CFLAGS and LDFLAGS as mentioned above? (And, do you have openssl installed through blastwave?) Check to see if /opt/csw/include/openssl/sha.h exists. If it doesn't you're missing the library.
If it does, you need to add -I/opt/csw/include to CFLAGS and -L/opt/csw/lib to LDFLAGS.
Offline
now that we all have git compiled.... Has anyone setup a private git repository server/service yet? Any good links? I have searched the net, but haven't found one that immediately stuck out as "that seems like the way to do it"....
Don't get me started on the documentation to git-daemon :)
Offline
Linus wrote it :)
It's decentralised (meaning that there is no single central reposisitory), branching / merging is very, very easy and very well supported. It's fast. A git repository is self contained (it lives in the .git directory inside the directory you are tracking). You can work without network (local repository). Very fast.
It has a bit of a learning curve, and I've only worked with it the last couple of weeks. I was using SVK to get local mirrors and got screwed by SVK multiple times (when it lost the connection between SVN and it's local mirrors)
Offline
Setting up a private repo is pretty simple. You can just use the ssh git access. What you want to do is:
git clone --bare ~/repo repo.git
tar -cvf repo.tar repo.git
scp repo.tar <username>@<host>:~
<log into your box and untar the repo.tar>
mv repo repo.bak
git clone ssh://<username>@<host>:~/repo.git
That should about do it. It's also pretty easy to get gitweb running. I've been using git web so I pull from http and push through ssh, for no particular reason other then my ssh access was slow for a while.
Last edited by dj2 (2007-09-06 02:36:22)
Offline
Here is a link to git cheat sheet
Offline
I can get git to build and install, but everything I run gives
$ git
ld.so.1: git: fatal: libcurl.so.4: open failed: No such file or directory
Killed
I added -L/opt/csw/lib to the LFLAGS and /opt/csw/lib/libcurl.so.4 exists.
Offline
what does ldd tell you about git?
Offline
lderezinski wrote:
what does ldd tell you about git?
$ ldd git
libcurl.so.4 => (file not found)
libz.so => /usr/lib/libz.so
libsocket.so.1 => /lib/libsocket.so.1
libnsl.so.1 => /lib/libnsl.so.1
libcrypto.so.0.9.8 => /usr/sfw/lib/libcrypto.so.0.9.8
libc.so.1 => /lib/libc.so.1
libmp.so.2 => /lib/libmp.so.2
libmd.so.1 => /lib/libmd.so.1
libscf.so.1 => /lib/libscf.so.1
libuutil.so.1 => /lib/libuutil.so.1
libgen.so.1 => /lib/libgen.so.1
libcrypto_extra.so.0.9.8 => (file not found)
libm.so.2 => /lib/libm.so.2
Indedd that's the problem, but how to fix it? I have LDFLAGS = -L/opt/csw/lib in the Makefile.
Last edited by madams (2008-03-10 20:50:37)
Offline
madams wrote:
I added -L/opt/csw/lib to the LFLAGS and /opt/csw/lib/libcurl.so.4 exists.
is that a real file or symlink to no where?
Offline
It's a symlink:
lrwxrwxrwx 1 root root 16 Apr 13 2007 libcurl.so.4 -> libcurl.so.4.0.0*
-rwxr-xr-x 1 root bin 358K Feb 2 2007 libcurl.so.4.0.0*
Offline
Try adding CURLDIR=/opt/csw to the Makefile.
Offline