انجمنهای فارسی اوبونتو
کمک و پشتیبانی => برنامهسازی => نویسنده: mohsen100 در 02 مهر 1391، 11:05 بظ
-
سلام
من میخوام gcc.4.7.2 رو نصب کنم .اما بعد از زدن ./configure این پیام میاد.
configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ 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
ftp://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.
حالا بگید چیکار کنم؟
به چه چیزای دیگه احتیاج دارم؟
-
احتمالا باید این بسته ها رو نصب کنی:
GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
-
ممنون
من بسته هارو نصب کردم .بعد زدن makefile این خطارو میده .
checking for suffix of object files... configure: error: in `/home/mohsen/gcc-4.7.2/i686-pc-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/home/mohsen/gcc-4.7.2'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/mohsen/gcc-4.7.2'
make: *** [all] Error 2
-
See `config.log' for more details.
-
سلام دوستان
من هر کار کردم وقتی g++4.7.2رو نصب میکنم بعدش میزنم :gcc -version & g++ -versionبازم همون نسخه قبلی رو نشون میده 4.6.3 رو...چه کار کنم اینو آپدیتش کنم به 4.7.2 برای برنامه نویسی استاندارد در نت بینس و اکلیپس...
و موضوع دیگه اینکه کانفیگ اکلیپس و نت بین برای استفاده از c++11چیه؟
ممنون میم راهنمایی کنید
-
به چه صورتی نصب میکنی؟ مراحلش رو دقیق بگو
-
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.7
-
ln /usr/bin/gcc /usr/bin/gcc-4.7
-
این پیام خطا رو میده:
ln: failed to create hard link `/usr/bin/gcc-4.7': File exists
-
$ sudo rm /usr/bin/gcc
$ sudo ln /usr/bin/gcc-4.7 /usr/bin/gcc