A place where the Joyent community can gather, help each other out, and stay informed.
You are not logged in.
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!
Offline
I did just find this, but haven't tried it yet. http://lists-archives.org/git/646911-gi … laris.html
Offline
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
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,
git --version
ld.so.1: git: fatal: libcurl.so.4: open failed: No such file or directory
Killed
Offline
I have curl via pkgsrc, also I ran ./configure, err... no idea if that's equivalent to "make configure"
Offline
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:
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.
# make all doc info NO_TCLTK=1 PERL_PATH="/usr/bin/env perl" INSTALL=/usr/sbin/install
- 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.
Offline
I'm trying to install using alexbcoles instructions above, but I get an error when running make install:
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
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:
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:
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
Offline
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:
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)
Offline
Hm, I followed the new instructions and I'm still getting the same error:
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
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.
Offline
Please to hear that worked!! I tend to build/install stuff from root (sudo su -), so I omitted that from the instructions I gave!
Offline
I would guess that you have some PATH differences between root and your user.
Offline
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.
Offline
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
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
./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