The Joyent Community

A place where the Joyent community can gather, help each other out, and stay informed.

You are not logged in.

#1 2007-09-04 16:43:11

lderezinski
Happy Camper
From: Essex, Maryland USA
Registered: 2006-04-14
Posts: 4312
Website  Expertise

Git and Cap 2.0

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??


The greatest oak was once a little nut who held its ground.
MG->3ML->Premiere (Lithographer) + Accelerati + Joyeur (Yes, I work here, we are hiring)

Offline

 

#2 2007-09-04 16:52:02

dj2
New member
Registered: 2007-05-31
Posts: 20
Expertise

Re: Git and Cap 2.0

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?

Offline

 

#3 2007-09-04 16:58:16

lderezinski
Happy Camper
From: Essex, Maryland USA
Registered: 2006-04-14
Posts: 4312
Website  Expertise

Re: Git and Cap 2.0

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?


The greatest oak was once a little nut who held its ground.
MG->3ML->Premiere (Lithographer) + Accelerati + Joyeur (Yes, I work here, we are hiring)

Offline

 

#4 2007-09-04 17:33:54

dj2
New member
Registered: 2007-05-31
Posts: 20
Expertise

Re: Git and Cap 2.0

I just went through the process again and there are a few things I'd forgotten about

Code:

  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

 

#5 2007-09-04 17:39:04

lderezinski
Happy Camper
From: Essex, Maryland USA
Registered: 2006-04-14
Posts: 4312
Website  Expertise

Re: Git and Cap 2.0

sweet thanks, will give that a spin tonight


The greatest oak was once a little nut who held its ground.
MG->3ML->Premiere (Lithographer) + Accelerati + Joyeur (Yes, I work here, we are hiring)

Offline

 

#6 2007-09-05 07:56:32

jcfischer
Member
Registered: 2004-06-02
Posts: 169
Expertise

Re: Git and Cap 2.0

I tried to compile GIT as per above but got a failure during make:

admin$ make CC convert-objects.o
In file included from convert-objects.c:1:
cache.h:6:21: openssl/sha.h: No such file or directory
gmake: *** [convert-objects.o] Error 1

openssl is installed, so I guess I need something else. Anyone got a clue?

Offline

 

#7 2007-09-05 11:45:38

UnLogikal
Habitual Malcontent
From: Flint, Michigan
Registered: 2005-06-08
Posts: 5683
Expertise

Re: Git and Cap 2.0

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.


Kyle

Offline

 

#8 2007-09-05 12:25:49

yerejm
バカ
Registered: 2004-12-03
Posts: 307
Expertise

Re: Git and Cap 2.0

Instructions work for me. Pity about the failing tests.

Offline

 

#9 2007-09-05 14:09:22

dj2
New member
Registered: 2007-05-31
Posts: 20
Expertise

Re: Git and Cap 2.0

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

 

#10 2007-09-05 14:26:12

jcfischer
Member
Registered: 2004-06-02
Posts: 169
Expertise

Re: Git and Cap 2.0

duuuuhhhhhh - I missed the CFLAGS and LDFLAGS.... Compiler is churning as I type...

Offline

 

#11 2007-09-05 14:52:38

UnLogikal
Habitual Malcontent
From: Flint, Michigan
Registered: 2005-06-08
Posts: 5683
Expertise

Re: Git and Cap 2.0

will double check the openssl stuff when I get home later. Thanks.


Kyle

Offline

 

#12 2007-09-05 21:11:03

jcfischer
Member
Registered: 2004-06-02
Posts: 169
Expertise

Re: Git and Cap 2.0

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

 

#13 2007-09-05 21:47:28

donncha
Member
Registered: 2006-09-18
Posts: 66
Expertise

Re: Git and Cap 2.0

For the uninitiated, what's the big advantage of git over svn?

Offline

 

#14 2007-09-05 22:01:33

jcfischer
Member
Registered: 2004-06-02
Posts: 169
Expertise

Re: Git and Cap 2.0

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

 

#15 2007-09-06 02:35:33

dj2
New member
Registered: 2007-05-31
Posts: 20
Expertise

Re: Git and Cap 2.0

Setting up a private repo is pretty simple. You can just use the ssh git access. What you want to do is:

Code:

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

 

#16 2007-09-12 10:10:47

lderezinski
Happy Camper
From: Essex, Maryland USA
Registered: 2006-04-14
Posts: 4312
Website  Expertise

Re: Git and Cap 2.0

Here is a link to git cheat sheet


The greatest oak was once a little nut who held its ground.
MG->3ML->Premiere (Lithographer) + Accelerati + Joyeur (Yes, I work here, we are hiring)

Offline

 

#17 2008-03-10 19:36:19

madams
 
From: Edinburgh
Registered: 2005-05-11
Posts: 2067
Website  Expertise

Re: Git and Cap 2.0

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.


Mark
Live in the city, work in the country. | OpenSolaris Immigrant

Offline

 

#18 2008-03-10 20:39:46

lderezinski
Happy Camper
From: Essex, Maryland USA
Registered: 2006-04-14
Posts: 4312
Website  Expertise

Re: Git and Cap 2.0

what does ldd tell you about git?


The greatest oak was once a little nut who held its ground.
MG->3ML->Premiere (Lithographer) + Accelerati + Joyeur (Yes, I work here, we are hiring)

Offline

 

#19 2008-03-10 20:49:45

madams
 
From: Edinburgh
Registered: 2005-05-11
Posts: 2067
Website  Expertise

Re: Git and Cap 2.0

lderezinski wrote:

what does ldd tell you about git?


Code:

$ 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)


Mark
Live in the city, work in the country. | OpenSolaris Immigrant

Offline

 

#20 2008-03-10 20:59:16

lderezinski
Happy Camper
From: Essex, Maryland USA
Registered: 2006-04-14
Posts: 4312
Website  Expertise

Re: Git and Cap 2.0

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?


The greatest oak was once a little nut who held its ground.
MG->3ML->Premiere (Lithographer) + Accelerati + Joyeur (Yes, I work here, we are hiring)

Offline

 

#21 2008-03-11 07:31:42

madams
 
From: Edinburgh
Registered: 2005-05-11
Posts: 2067
Website  Expertise

Re: Git and Cap 2.0

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*


Mark
Live in the city, work in the country. | OpenSolaris Immigrant

Offline

 

#22 2008-03-18 00:52:19

gtcaz
Raconteur
From: Tucson, AZ
Registered: 2005-01-21
Posts: 1605
Website  Expertise

Re: Git and Cap 2.0

Try adding CURLDIR=/opt/csw to the Makefile.

. http://discuss.joyent.com/viewtopic.php … 87#p175887


You're gonna have to answer to the Coca-Cola company.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson