threads / discuss / 26504

Mercurial over Git no success

Subject: Mercurial over Git no success

## tl;dr

7 messages between Feb 14, 2011 and Feb 19, 2011.

replies: 6people: 7as markdown or json

david@davidwbrown.name· Feb 14, 2011, 21:01 UTC · lore
Hello Gitters, long ago when first starting the project I'm currently running at my company I looked around for a VCS/SCM that would be anywhere better than: CVS/SVN. At first I looked at Git but could not get a version to run on my Ubuntu box. So, I had to settle for Hg. Now, that I'm several months into the web app dev I'm responsible for the hired help has convinced me to switch to Git. Now, I'm back at the same old problem I had months ago that forced me to give up on using Git. Unlike a lot of Unix/Linux based software the usual:

./configure make make install

Does not work for building Git on my local Ubuntu box (10.10 BTW). Some non-innocuous error condition as follows:
cannot find zlib.h
Pls advise. David.
PICCA Frédéric-Emmanuel· Feb 14, 2011, 21:24 UTC · re: david@davidwbrown.name · lore

RE: Mercurial over Git no success

apt-get install git-core git-gui gitk
would be a good starting point
See you
Frederic
-----Original Message-----
From: git-owner@vger.kernel.org on behalf of david@davidwbrown.name
Sent: Mon 2/14/2011 10:01 PM
To: git@vger.kernel.org
Subject: Mercurial over Git no success
 
Hello Gitters, long ago when first starting the project I'm currently running at my company I looked around for a VCS/SCM that would be anywhere better than: CVS/SVN. At first I looked at Git but could not get a version to run on my Ubuntu box. So, I had to settle for Hg. Now, that I'm several months into the web app dev I'm responsible for the hired help has convinced me to switch to Git. Now, I'm back at the same old problem I had months ago that forced me to give up on using Git. Unlike a lot of Unix/Linux based software the usual:

./configure make make install

Does not work for building Git on my local Ubuntu box (10.10 BTW). Some non-innocuous error condition as follows:
cannot find zlib.h
Pls advise. David.
knittl· Feb 14, 2011, 21:26 UTC · re: david@davidwbrown.name · lore

Re: Mercurial over Git no success

On Mon, Feb 14, 2011 at 10:01 PM,  <david@davidwbrown.name> wrote:
Show 7 quoted lines
> [...]
>
> ./configure
> make
> make install
>
> Does not work for building Git on my local Ubuntu box (10.10 BTW). Some non-innocuous error condition as follows:

why not simply install the version of git that comes with ubuntu? `sudo apt-get install git` should do the trick ...

> cannot find zlib.h

there's the problem. the zlib compression libraries are missing on your system. you'd have to install them first: `sudo apt-get install zlib1g-dev`, but you are probably missing some more libraries necessary to compile git

hope that helps, daniel

-- 
typed with http://neo-layout.org
myFtPhp -- visit http://myftphp.sf.net -- v. 0.4.7 released!
Gabriel Filion· Feb 15, 2011, 00:50 UTC · re: knittl · lore

Re: Mercurial over Git no success

On 11-02-14 04:26 PM, knittl wrote:
Show 11 quoted lines
> On Mon, Feb 14, 2011 at 10:01 PM,  <david@davidwbrown.name> wrote:
>> > [...]
>> >
>> > ./configure
>> > make
>> > make install
>> >
>> > Does not work for building Git on my local Ubuntu box (10.10 BTW). Some non-innocuous error condition as follows:
> why not simply install the version of git that comes with ubuntu?
> `sudo apt-get install git` should do the trick ...
> 

If you'd like to use git's latest release, before it gets included into an Ubuntu release, you can use this PPA:

https://launchpad.net/~git-core/+archive/ppa
Add it with the following command:
sudo add-apt-repository ppa:git-core/ppa
Then, sudo apt-get update; sudo apt-get install git
-- 
Gabriel Filion
Manuel Doninger· Feb 14, 2011, 21:50 UTC · re: david@davidwbrown.name · lore

Re: Mercurial over Git no success

According to the Install-section in the Pro Git book, you have to install some other libraries. See http://progit.org/book/ch1-4.html

Manuel
On Mon, Feb 14, 2011 at 22:01,  <david@davidwbrown.name> wrote:
Show 12 quoted lines
> Hello Gitters, long ago when first starting the project I'm currently running at my company I looked around for a VCS/SCM that would be anywhere better than: CVS/SVN. At first I looked at Git but could not get a version to run on my Ubuntu box. So, I had to settle for Hg. Now, that I'm several months into the web app dev I'm responsible for the hired help has convinced me to switch to Git. Now, I'm back at the same old problem I had months ago that forced me to give up on using Git. Unlike a lot of Unix/Linux based software the usual:
>
> ./configure
> make
> make install
>
> Does not work for building Git on my local Ubuntu box (10.10 BTW). Some non-innocuous error condition as follows:
>
> cannot find zlib.h
>
> Pls advise. David.
>
Jon Seymour· Feb 14, 2011, 23:19 UTC · re: Manuel Doninger · lore

Re: Mercurial over Git no success

From the INSTALL file:
 - Git is reasonably self-sufficient, but does depend on a few external
   programs and libraries.  Git can be used without most of them by adding
   the approriate "NO_<LIBRARY>=YesPlease" to the make command line or
   config.mak file.
        - "zlib", the compression library. Git won't build without it.
       ...

Per suggestions already made, on ubuntu apt-cache search and apt-cache get are your friends.

jon.

On Tue, Feb 15, 2011 at 8:50 AM, Manuel Doninger <manuel.doninger@googlemail.com> wrote:

Show 23 quoted lines
> According to the Install-section in the Pro Git book, you have to
> install some other libraries. See http://progit.org/book/ch1-4.html
>
> Manuel
>
> On Mon, Feb 14, 2011 at 22:01,  <david@davidwbrown.name> wrote:
>> Hello Gitters, long ago when first starting the project I'm currently running at my company I looked around for a VCS/SCM that would be anywhere better than: CVS/SVN. At first I looked at Git but could not get a version to run on my Ubuntu box. So, I had to settle for Hg. Now, that I'm several months into the web app dev I'm responsible for the hired help has convinced me to switch to Git. Now, I'm back at the same old problem I had months ago that forced me to give up on using Git. Unlike a lot of Unix/Linux based software the usual:
>>
>> ./configure
>> make
>> make install
>>
>> Does not work for building Git on my local Ubuntu box (10.10 BTW). Some non-innocuous error condition as follows:
>>
>> cannot find zlib.h
>>
>> Pls advise. David.
>>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
Kevin P. Fleming· Feb 19, 2011, 13:06 UTC · re: Jon Seymour · lore

Re: Mercurial over Git no success

On 02/14/2011 05:19 PM, Jon Seymour wrote:
Show 10 quoted lines
>  From the INSTALL file:
>
>   - Git is reasonably self-sufficient, but does depend on a few external
>     programs and libraries.  Git can be used without most of them by adding
>     the approriate "NO_<LIBRARY>=YesPlease" to the make command line or
>     config.mak file.
>
>          - "zlib", the compression library. Git won't build without it.
>
>         ...

It would be quite appropriate then for git's configure script to *fail* if zlib and zlib headers are not present. The OP would have known what was wrong much earlier (and likely with a more useful error message) if that had happened.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kfleming@digium.com
Check us out at www.digium.com & www.asterisk.org

← back to recent threads