3

I want to install Git but it gives me error.

I enter make clean install and it says:

===>  git-2.1.0 using GITWEB support requires PERL support.
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/git

What can I do?

Note: When I first tried to install Git, I didn't choose PERL, and I choose GITWEB. Then it gave me this error above. Now, I cannot get rid of this error.

davidcondrey
  • 34,416
  • 17
  • 114
  • 136
ilhan
  • 8,700
  • 35
  • 117
  • 201

3 Answers3

14

Simply do "pkg install git", as root.

3

Using the ports:

cd /usr/ports/devel/git 
sudo make
sudo make install
sudo make clean
Ali
  • 18,665
  • 21
  • 103
  • 138
1

From the link below, it says for FreeBSD you should be able to install git simply using

pkg_add -r git

or

yum -y install gcc gcc-c++ make gettext-devel expat-devel curl-devel zlib-devel openssl-devel bzip2 readline-devel libpcap-devel git.<arch> 

Replace <arch> with your machine's architecture. (e.g. git.i386,git.i686,git.x86_64)

Further

davidcondrey
  • 34,416
  • 17
  • 114
  • 136
  • I'm trying this method "Installing Git and Gitweb on FreeBSD". It gives the error that I have wrote in my question. – ilhan Oct 05 '14 at 23:27
  • 1
    I would try using the yum snippet I posted to ensure you have all the appropriate dependencies. FreeBSD may not have yum but the equivalent to `yum install` should be `pkg install` – davidcondrey Oct 05 '14 at 23:31
  • 1
    The note about 'make config' in www.freshports.org/devel/git solved my problem :) – ilhan Oct 05 '14 at 23:36
  • ***`pkg_add: unknown option -- r`*** and ***`yum: command not found`*** for NetBSD 7.0... Its amazing the BSDs are legendary for security yet their package system is basically broken out of the box... – jww Sep 07 '16 at 20:18
  • @jww `-r` is not necessary. Just emit it. If you don't have `yum` [install it](http://yum.baseurl.org). – davidcondrey Sep 08 '16 at 07:53
  • yum is not a FreeBSD package installer and it makes no sense to install it when FreeBSD has its own. In addition, the previously suggested 'pkg_add' has been 'pkg add' with a space for quite some time. Yes, I know this answer is two years old. – Rob Sep 27 '16 at 14:35