我正在尝试在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?
发布于 2021-09-28 17:12:51
所需的包,而不是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配置文件:
git生成文件配置,包含在主生成文件中
@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时遇到了问题,所以我在NO_CURL=1命令行中包含了: NO_ICONV=1。
https://stackoverflow.com/questions/69338962
复制相似问题