我想安装在我的 Linux red-hat 机器上gettext-0.19.1.tar.xz。
首先我做以下
cd gettext-0.19.1
./configure
make
Run Code Online (Sandbox Code Playgroud)
在make它失败期间g++: command not found
libtool: compile: g++ -DIN_LIBASPRINTF -DHAVE_CONFIG_H -I. -c autosprintf.cc - o .libs/autosprintf.o
./libtool: line 1128: g++: command not found
make[5]: *** [autosprintf.lo] Error 1
make[5]: Leaving directory `/var/tmp/gettext-0.19.1/gettext-runtime/libasprintf'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/var/tmp/gettext-0.19.1/gettext-runtime/libasprintf'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/gettext-0.19.1/gettext-runtime'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/gettext-0.19.1/gettext-runtime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/gettext-0.19.1'
make: *** [all] Error 2
Run Code Online (Sandbox Code Playgroud)
我该如何解决?
备注 - 我有 GCC
which gcc
/usr/bin/gcc
Run Code Online (Sandbox Code Playgroud)
Chr*_*her 101
首先安装开发工具套件。然后回去编译软件。
yum groupinstall 'Development Tools'
Run Code Online (Sandbox Code Playgroud)
您可能需要的不仅仅是编译器。开发工具包包括核心开发工具,如automake、gcc、perl、python、flex、make、gdb、bison等等。要列出软件包组中的所有软件,请yum按如下方式使用。
yum group info 'Development Tools'
Run Code Online (Sandbox Code Playgroud)
对于 Fedora 20(至少),您还需要安装gcc-c++.
对于基于 Debian 的系统,安装开发工具套件如下。
apt-get install build-essential
Run Code Online (Sandbox Code Playgroud)
在虚空的Linux,它的xbps-install -Su base-devel,它提供了m4,autoconf,automake,bc,binutils,bison,ed,libfl-devel,flex,libgcc-devel,kernel-libc-headers,glibc-devel,isl,cloog,mpfr,libmpc,gcc,libstdc++-devel,gcc-c++,gettext-libs,gettext,groff,libtool,make,patch,pkg-config,texinfo,unzip,和xz。
miv*_*ivk 11
在 CentOS 7 上,我只需要
yum install gcc-c++
Run Code Online (Sandbox Code Playgroud)
(但也许我已经拥有了大部分其他开发包)
| 归档时间: |
|
| 查看次数: |
149640 次 |
| 最近记录: |