[英]Building Git on Sparc Solaris 9
我正在尝试从 Solaris 9 Sparc 中的源代码构建 git。 我正在使用开源工具链(gcc 和 make)。 我在做:
make prefix=/usr/local all doc info
我在 make 中遇到错误:
/bin/sh: git: not found
Makefile:2765: *** unterminated variable reference. Stop.
我为构建安装的软件包是:
-rw-r--r-- 1 dlsa staff 4230656 Sep 2 14:41 atk-1.18.0-sol9-sparc-local
-rw-r--r-- 1 dlsa staff 8043520 Sep 2 14:44 cairo-1.4.10-sol9-sparc-local
-rw-r--r-- 1 dlsa staff 4482048 Sep 26 15:00 curl-7.23.1-sol9-sparc-local
-rw-r--r-- 1 dlsa staff 7905280 Sep 4 07:58 cvs-1.12.13-sol9-sparc-local
-rw-r--r-- 1 dlsa staff 2384384 Sep 3 11:04 dbus-1.0.2-sol9-sparc-local
-rw-r--r-- 1 dlsa staff 122967552 Sep 2 13:51 emacs-23.3-sol9-sparc-local
-rw-r--r-- 1 dlsa staff 903168 Sep 3 11:19 expat-2.0.1-sol9-sparc-local
-rw-r--r-- 1 dlsa staff 7535104 Sep 3 11:06 fontconfig-2.8.0-sol9-sparc-local
-rw-r--r-- 1 dlsa staff 4377600 Sep 3 11:13 freetype-2.4.2-sol9-sparc-local
-rwxr-xr-x 1 dlsa staff 152377856 Sep 1 07:44 gcc-3.4.6-sol9-sparc-local
-rw-r--r-- 1 dlsa staff 232949760 Sep 26 14:38 git-sources.tar
-rw-r--r-- 1 dlsa staff 44610560 Sep 3 10:49 glib-2.25.13-sol9-sparc-local
-rw-r--r-- 1 dlsa staff 93400064 Sep 2 14:32 gtk+-2.12.0-sol9-sparc-local
-rw-r--r-- 1 dlsa staff 1273344 Sep 3 10:55 jpeg-7-sol9-sparc-local
-rw-r--r-- 1 dlsa staff 1039360 Sep 3 11:18 libcroco-0.6.1-sol9-sparc-local
-rwxr-xr-x 1 dlsa staff 6132736 Sep 1 07:44 libgcc-3.4.6-sol9-sparc-local
-rw-r--r-- 1 dlsa staff 3074560 Sep 3 11:16 libgsf-1.14.7-sol9-sparc-local
-rw-r--r-- 1 dlsa staff 2579968 Sep 2 12:49 libiconv-1.13.1-sol9-sparc-local
-rw-r--r-- 1 dlsa staff 882176 Sep 2 14:00 libintl-3.4.0-sol9-sparc-local
-rw-r--r-- 1 dlsa staff 1184768 Sep 3 10:58 libpng-1.2.8-sol9-sparc-local
-rw-r--r-- 1 dlsa staff 1329664 Sep 3 11:02 librsvg-2.22.3-sol9-sparc-local
-rw-r--r-- 1 dlsa staff 1347584 Sep 3 11:00 libungif-4.1.4-sol9-sparc-local
-rwxr-xr-x 1 dlsa staff 2967552 Sep 1 07:44 make-3.82-sol9-sparc-local
-rw-r--r-- 1 dlsa staff 8839168 Sep 2 14:44 pango-1.18.2-sol9-sparc-local
-rw-r--r-- 1 dlsa staff 1172480 Sep 2 14:52 pygobject-2.14.0-sol9-sparc-local
-rw-r--r-- 1 dlsa staff 139776 Sep 3 11:10 xrender-0.8.3-sol9-sparc-local
在我看来,我的工具链已经过时了。 我该怎么做才能构建它? 使用Solaris 9 cc编译器和make?
除了 gnu make 和 gcc 之外,还需要其他软件包:我从 sunfreeware 软件包集中安装了这些软件包。
binutils
openssl I had to build openssl from source because my arch is different
libcurl
libiconv
tcl
tk
在文件 gc.c 中插入以下内容:
#define SCNuMAX "lu"
制作一个 makefile 配置文件:
@configure_input@
CC = /usr/local/bin/gcc
CFLAGS =
CPPFLAGS =
LDFLAGS = -L/usr/local/lib
AR = /usr/local/bin/ar
TAR = /usr/bin/tar
DIFF = /usr/bin/diff
PACKAGE_TARNAME = @PACKAGE_TARNAME@
#INSTALL = @INSTALL@ # needs install-sh or install.sh in sources
prefix = /usr/local
exec_prefix = /usr/local/libexec
bindir = /usr/local/bin
gitexecdir = /usr/local/libexec/git-core
datarootdir = /usr/local/datadir
template_dir = /usr/local/datadir/git-core/templates
sysconfdir =/usr/local/sysconfig
docdir = /usr/local/doc
mandir = /usr/local/man
htmldir = /usr/local/html
我在使用 libcurl 时遇到问题,所以我在 make 命令行中包含:NO_CURL=1 我在使用 libiconv 时遇到问题,所以我在 make 命令行中包含:NO_ICONV=1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.