configure: error: Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.

git clone git://gcc.gnu.org/git/gcc.git gcc-CXX17

git checkout origin/release/gcc-12

./configure

configure: error: Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations.  Source code for these libraries can be found at
their respective hosting sites as well as at
https://gcc.gnu.org/pub/gcc/infrastructure/.  See also
http://gcc.gnu.org/install/prerequisites.html for additional info.  If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files.  They may be located in separate packages.

presearch上搜索
下载依赖包 gmp, mpfr, mpc, isl

./contrib/download_prerequisites

./configure

 configure: error: I suspect your system does not have 32-bit development libraries (libc and headers).

# ubuntu
sudo apt-get install gcc-multilib

# CentOS
sudo yum install glibc-devel.i686 libgcc.i686

 这下可以了,生成Makefile

make

sudo make install

其他内容:

tensorflow build_cmake

git clone GitHub - tensorflow/tensorflow: An Open Source Machine Learning Framework for Everyonetensorflow_src

mkdir cmake-build-debug

cd cmake-build-debug

cmake ../tensorflow/lite -DCMAKE_BUILD_TYPE=Debug

[mzh@vultr tensorflow_src]$ cmake --version
cmake version 3.28.0

CMake suite maintained and supported by Kitware (kitware.com/cmake).
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

fareast_mzh

打赏个金币

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值