The Joyent Community

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

You are not logged in.

#1 2008-03-17 21:12:36

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

Got git?

I'd really like to install git on my Accelerator. Does Joyent have a package or binary of some kind we could use? I'm stuck trying to build from source and there's nothing on Blastwave.

Thanks!


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

Offline

 

#2 2008-03-17 21:17:14

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

Re: Got git?

I did just find this, but haven't tried it yet. http://lists-archives.org/git/646911-gi … laris.html


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

Offline

 

#3 2008-03-17 21:56:39

bretthoerner
...
Registered: 2006-12-24
Posts: 843
Expertise

Re: Got git?

Is there a specific problem you're having while compiling from source? I installed it alright on mine, although I did use pkgsrc for some dependencies.

Offline

 

#4 2008-03-17 23:02:04

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

Re: Got git?

Code:

wget http://www.kernel.org/pub/software/scm/git/git-1.5.4.4.tar.gz
tar zxvf git-1.5.4.4.tar.gz
cd git-1.5.4.4/
make configure
vim Makefile


I adjusted my Makefile like this and typed gmake.

It fails on git-gui, which makes some sense. I don't want a gui on the server and don't have the dependencies. So, I added NO_TCLTK=1 to the Makefile as well.

Now I run into the same problem as Mark.

After a make all and make install,

Code:

git --version
ld.so.1: git: fatal: libcurl.so.4: open failed: No such file or directory
Killed


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

Offline

 

#5 2008-03-17 23:48:52

bretthoerner
...
Registered: 2006-12-24
Posts: 843
Expertise

Re: Got git?

I have curl via pkgsrc, also I ran ./configure, err... no idea if that's equivalent to "make configure"

Offline

 

#6 2008-03-18 00:50:28

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

Re: Got git?

OK, got it:

CURLDIR=/opt/csw

Add this to your Makefile (in addition to the stuff above) and it seems to work. Testing further now.


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

Offline

 

#7 2008-03-18 05:57:43

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

Re: Got git?

I also had to

sudo pkg-get install pm_subversion

to get git-svn working.


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

Offline

 

#8 2008-03-18 07:48:53

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

Re: Got git?

Got git? I do now. Thanks for figuring this out, Geoff.


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

Offline

 

#9 2008-03-27 23:42:45

alexbcoles
Member
From: Berlin, Germany
Registered: 2006-11-06
Posts: 122
Website  Expertise

Re: Got git?

This has been a hell of an ordeal. I was trying to get git compiling with pkgsrc, but I didn't have any real luck, even despite some good pointers from mamash. I switched from pkgsrc 2007Q3 branch to the HEAD and seemed to have opened a whole new can of worms (libssl causing segmentation faults).

However, I did manage to get git compiled and installed from source:

Code:

cd /opt/local/src
wget http://kernel.org/pub/software/scm/git/git-1.5.4.4.tar.gz
gtar -xvf git-1.5.4.4.tar.gz
CFLAGS="-Wall -O2 -I${prefix}/include" LDFLAGS="-L${prefix}/lib"
./configure --prefix=/opt/local
make NO_TCLTK=1 PERL_PATH="/usr/bin/env perl" INSTALL=/usr/sbin/install
make NO_TCLTK=1 PERL_PATH="/usr/bin/env perl" INSTALL=/usr/ucb/install


The way I've laid out compiler flags, etc. might be suboptimal. I tried to spend as little time as possible on this!

This is based on the assumption that pkgsrc has been used to install all of the dependencies (libcurl, etc.) If you want the documentation, you need to install AsciiDoc (/opt/pkgsrc/textproc/asciidoc), but this will install a lot of prereqs including the Python interpreter.

Code:

# make all doc info NO_TCLTK=1 PERL_PATH="/usr/bin/env perl" INSTALL=/usr/sbin/install

  1. make install install-doc install-info INSTALL=/usr/ucb/install


I specified /usr/ucb/install for install. /usr/sbin/install causes the following problem: http://pastie.caboo.se/private/mtl3ibgzfsd5lczzyrg40w, so for the make install command you need to go with the what's in the BSD-like binary folder.


personal | biz: ikonoklastik | twitter: myabc

Offline

 

#10 2008-04-07 14:36:04

drackett
UI Designer
From: Chicago, IL
Registered: 2006-03-23
Posts: 263
Website  Expertise

Re: Got git?

I'm trying to install using alexbcoles instructions above, but I get an error when running make install:

Code:

make: Fatal error in reader: Makefile, line 144: Unexpected end of line seen


any ideas? It should be obvious that I hardly know what I'm doing ;)

Offline

 

#11 2008-04-08 16:40:18

alexbcoles
Member
From: Berlin, Germany
Registered: 2006-11-06
Posts: 122
Website  Expertise

Re: Got git?

Hi drackett.. there were a few mistakes (typos) with the instructions I posted originally, so they won't have worked. Here are the instructions revised:

Code:

cd /opt/local/src
wget http://kernel.org/pub/software/scm/git/git-1.5.4.5.tar.gz
gtar xvfz git-1.5.4.5.tar.gz
cd git-1.5.4.5/
CFLAGS="-Wall -O2 -I${prefix}/include" LDFLAGS="-L${prefix}/lib"
./configure --prefix=/opt/local
make NO_TCLTK=1 PERL_PATH="/usr/bin/env perl" INSTALL=/usr/ucb/install
make install PERL_PATH="/usr/bin/env perl" INSTALL=/usr/ucb/install


This makes a few assumptions:

* you're on the 2007Q4 branch of Pkgsrc * you've been able to install dependencies through Pkgsrc * here's an example of getting CURL and OpenSSL installed:

Code:

    LibCURL:

EITHER cd /opt/pkgsrc/www/curl && bmake install OR pkg_add http://pkgsrc.joyent.com/2007Q4/www/curl-7.17.1.tgz OpenSSL: EITHER cd /opt/pkgsrc/security/openssl && bmake install (openssl-0.9.7inb5) OR pkg_add http://pkgsrc.joyent.com/2007Q4/security/openssl-0.9.7inb5.tgz


personal | biz: ikonoklastik | twitter: myabc

Offline

 

#12 2008-04-08 17:03:39

alexbcoles
Member
From: Berlin, Germany
Registered: 2006-11-06
Posts: 122
Website  Expertise

Re: Got git?

Next issue (I am going down my list) was 'Can't locate SVN/Core.pm in' error.. when trying to use git-svn.

Simple to resolve - install the Perl-SVN bindings, which git-svn relies on to do its work:

Code:

cd /opt/pkgsrc/devel/p5-subversion && bmake install


Thanks to these instructions: http://www.beyondthetype.com/2007/6/15/ … -based-mac

Last edited by alexbcoles (2008-04-08 17:04:20)


personal | biz: ikonoklastik | twitter: myabc

Offline

 

#13 2008-04-14 15:51:09

drackett
UI Designer
From: Chicago, IL
Registered: 2006-03-23
Posts: 263
Website  Expertise

Re: Got git?

Hm, I followed the new instructions and I'm still getting the same error:

Code:

make: Fatal error in reader: Makefile, line 144: Unexpected end of line seen


the only small difference I see is that I have curl 7.17.0 installed

Offline

 

#14 2008-04-14 15:54:03

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

Re: Got git?

drackett wrote:

Hm, I followed the new instructions and I'm still getting the same error.


Try su'ing to root and then making it instead of through sudo. I don't know why, but doing that worked for me.


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

Offline

 

#15 2008-04-14 15:59:04

drackett
UI Designer
From: Chicago, IL
Registered: 2006-03-23
Posts: 263
Website  Expertise

Re: Got git?

yep, that did it. Thanks madams!

Offline

 

#16 2008-04-14 16:26:53

alexbcoles
Member
From: Berlin, Germany
Registered: 2006-11-06
Posts: 122
Website  Expertise

Re: Got git?

Please to hear that worked!! I tend to build/install stuff from root (sudo su -), so I omitted that from the instructions I gave!


personal | biz: ikonoklastik | twitter: myabc

Offline

 

#17 2008-04-14 17:06:08

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

Re: Got git?

drackett wrote:

yep, that did it.


Great! Now, can anyone explain why that works?


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

Offline

 

#18 2008-04-14 17:46:40

bretthoerner
...
Registered: 2006-12-24
Posts: 843
Expertise

Re: Got git?

I would guess that you have some PATH differences between root and your user.

Offline

 

#19 2008-04-14 20:46:12

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

Re: Got git?

I think some of the path and alias stuff doesn't work with sudo like it does with a regular account. I've tried everything I can think of to fix it, but su - is just easier.


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

Offline

 

#20 2008-05-29 14:58:09

myobie
New member
Registered: 2007-07-05
Posts: 30
Expertise

Re: Got git?

Even when I use su -, I get the error: make: Fatal error in reader: Makefile, line 144: Unexpected end of line seen

Anyone have any ideas?

The default pkgsrc scmgit package doesn't work either.

Offline

 

#21 2008-05-29 15:10:01

mamash
I Just Work Here
From: Prague
Registered: 2004-06-01
Posts: 2163
Website  Expertise

Re: Got git?

myobie wrote:

The default pkgsrc scmgit package doesn't work either.


Make sure you get the CVS revision of the package.


The things you can't remember tell the things you can't forget.

Offline

 

#22 2009-12-13 14:26:58

boblet
Member
From: Osaka, Japan
Registered: 2004-12-22
Posts: 126
Expertise

Re: Got git?

Hi All,

I’m having lots of “fun” trying to get things installed in Blastwave purgatory. I tried installing pkgsrc as per Installing pkgsrc (Joyent Wiki), but devel/scmgit doesn’t build due to the lack of openssl >=0.9.8g, which I built from source but then couldn’t work out how to get pkgsrc to see.

So now I’m trying to build git from source, and even following these instructions as root I’m getting

Code:

make: Fatal error in reader: Makefile, line 211: Unexpected end of line seen


The additional things I did on top of the above instructions to get this far are exporting my standard user’s path to root (which only has /usr/sbin and /usr/bin), using

Code:

./configure --prefix=/opt/local CC=gcc


as I got `configure: error: C compiler cannot create executables` and `/usr/ucb/cc: language optional software package not installed` errors. I also upgraded to gcc 3.4.6.

Finally I have no idea about how to get the CVS version of the scmgit package that @mamash mentions.

This is progressed from a challenge to a massive pita. If anyone could point me in the right direction I would be very grateful.

peace - boblet

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson