中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當前位置: 首頁 > news >正文

用dw做的網(wǎng)站怎么放到網(wǎng)上google谷歌搜索主頁

用dw做的網(wǎng)站怎么放到網(wǎng)上,google谷歌搜索主頁,動易sf做網(wǎng)站多少錢,免費推廣平臺微信號文章目錄 Ubuntu下安裝GCC查看官方安裝指導錯誤缺少gmp庫缺少32位開發(fā)庫libcg: error: gengtype-lex.c: No such file or directoryreference 歡迎訪問個人網(wǎng)絡日志🌹🌹知行空間🌹🌹 Ubuntu下安裝GCC 為了支持新的c標準&#xff…

文章目錄

  • Ubuntu下安裝GCC
    • 查看官方安裝指導
    • 錯誤
      • 缺少`gmp`庫
      • 缺少`32`位開發(fā)庫`libc`
      • g++: error: gengtype-lex.c: No such file or directory
      • reference


歡迎訪問個人網(wǎng)絡日志🌹🌹知行空間🌹🌹


Ubuntu下安裝GCC

為了支持新的c++標準,需要安裝新的GCC,安裝步驟如下.

查看官方安裝指導

GCC版本查看,截止20240324gcc最新的版本為13.2,支持到了c++23標準。

版本發(fā)布信息可以參考:GCC Releases查看。

安裝指導參考的網(wǎng)頁為:【GCC Installation Instructions】

  • 檢查安裝依賴,
  • 下載源碼,可使用git命令克隆
git clone git://gcc.gnu.org/git/gcc.git
# 查看所有分支
git branch -a
# 查看所有標簽
git tag -l

有時候,國內訪問gcc放置代碼的git倉庫速度會很慢,這個時候可以從開源中國的碼云平臺上下載,

https://gitee.com/mirrors/gcc.git

這個是國內鏡像,可以加速下載速度。

  • 下載源碼后,切入源碼目錄,執(zhí)行如下命令下載依賴
./contrib/download_prerequisites
  • 配置,可在源碼倉庫下新建build目錄,然后切換到build目錄下執(zhí)行如下命令進行配置。
../configure --enable-languages=c,c++ --prefix=/usr/local/gcc-13.2.0 --host=x86_64-pc-linux-gnu --prefix=/home/xx/data/sw/gcc13 --disable-multilib

更多的配置參數(shù)可以參考頁面https://gcc.gnu.org/install/configure.html

  • 安裝
make -j4
sudo make install
  • 驗證安裝
/usr/local/gcc-13.2.0/bin/gcc --version
  • 設置環(huán)境變量
export PATH=$PATH:/usr/local/gcc-13.2.0/bin
  • 卸載
sudo rm -rf /usr/local/gcc-13.2.0

錯誤

缺少gmp

xx@xx-rob:~/data/code/gcc$ ./configure --enable-languages=c,c++ --prefix=/usr/local/gcc-13.2.checking for the correct version of gmp.h... no
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

解決方法,先執(zhí)行命令:

xx@xx-rob:~/data/code/gcc$ ./contrib/download_prerequisites2024-03-21 22:31:18 URL:http://gcc.gnu.org/pub/gcc/infrastructure/gmp-6.2.1.tar.bz2 [2493916/2493916] -> "gmp-6.2.1.tar.bz2" [1]
2024-03-21 22:33:48 URL:http://gcc.gnu.org/pub/gcc/infrastructure/mpfr-4.1.0.tar.bz2 [1747243/1747243] -> "mpfr-4.1.0.tar.bz2" [1]2024-03-21 22:34:29 URL:http://gcc.gnu.org/pub/gcc/infrastructure/mpc-1.2.1.tar.gz [838731/838731] -> "mpc-1.2.1.tar.gz" [1]
2024-03-21 22:35:49 URL:http://gcc.gnu.org/pub/gcc/infrastructure/isl-0.24.tar.bz2 [2261594/2261594] -> "isl-0.24.tar.bz2" [1]
gmp-6.2.1.tar.bz2: OK
mpfr-4.1.0.tar.bz2: OK
mpc-1.2.1.tar.gz: OK
isl-0.24.tar.bz2: OK
All prerequisites downloaded successfully.

缺少32位開發(fā)庫libc

/usr/bin/ld: cannot find -lgcc
collect2: error: ld returned 1 exit status
configure: error: I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib.

解決辦法:

  • 安裝32libc庫文件
  • ./configure時使用參數(shù)--disable-multilib禁用編譯32位平臺上可以使用的庫

g++: error: gengtype-lex.c: No such file or directory

編譯過程中報錯:

> and I found the Makefile in my objdir directory. I try `make -j4` and found
> g++: error: gengtype-lex.c: No such file or directory
> g++: fatal error: no input files
> Could you help me with this?

解決辦法:

缺少flex庫文件,手動安裝:

sudo apt-get install flex

reference

1.https://www.spinics.net/lists/gcchelp/msg50998.html


歡迎訪問個人網(wǎng)絡日志🌹🌹知行空間🌹🌹


http://www.risenshineclean.com/news/62703.html

相關文章:

  • 網(wǎng)站后臺用esayui做網(wǎng)絡營銷是學什么
  • 大連做網(wǎng)站建設怎么用模板做網(wǎng)站
  • 網(wǎng)上學編程可靠嗎佛山市seo推廣聯(lián)系方式
  • 麻陽住房和城鄉(xiāng)建設局網(wǎng)站蘭州網(wǎng)絡推廣新手
  • 哪個網(wǎng)站可以做兼職ppt模板廣州seo診斷
  • 0wordpress進行seo網(wǎng)站建設
  • 重慶金山建設監(jiān)理有限公司網(wǎng)站長沙網(wǎng)站推廣公司排名
  • 廣州積分入學網(wǎng)站百度seo排名教程
  • 江山網(wǎng)站制作廣州品牌營銷策劃公司排名
  • 做美圖網(wǎng)站有哪些東西seo優(yōu)化百度技術排名教程
  • 網(wǎng)站開發(fā) 一眼亞馬遜排名seo
  • 怎樣在設計網(wǎng)站做圖賺錢seo流量軟件
  • 網(wǎng)站建設構思市場營銷平臺
  • wampserver裝wordpress福建seo搜索引擎優(yōu)化
  • 江蘇專業(yè)網(wǎng)站制作公司新品牌推廣方案
  • flash 做ppt的模板下載網(wǎng)站刷粉網(wǎng)站推廣快點
  • 蘭州專業(yè)做網(wǎng)站網(wǎng)站制作網(wǎng)站推廣
  • 什么網(wǎng)站可以做設計兼職在線查網(wǎng)站的ip地址
  • h5網(wǎng)站制作報價app推廣方案模板
  • 博客網(wǎng)站制作以網(wǎng)絡營銷為主題的論文
  • 婚戀網(wǎng)站如何做自媒體營銷環(huán)球軍事網(wǎng)最新軍事新聞最新消息
  • 網(wǎng)站建設授權書百度客服聯(lián)系方式
  • 閔行區(qū)做網(wǎng)站公司寧德市教育局
  • 網(wǎng)站建設公司怎么找業(yè)務seo查詢平臺
  • 陜西手機網(wǎng)站建設武漢網(wǎng)站推廣
  • 免費建網(wǎng)站平臺哪個好網(wǎng)頁搜索快捷鍵
  • 營口建設工程質量監(jiān)督站網(wǎng)站營銷推廣軟文案例
  • 做網(wǎng)站制作公司百度搜索引擎盤搜搜
  • wordpress 文章如何添加附件seo網(wǎng)絡優(yōu)化軟件
  • 做視頻網(wǎng)站怎么備案免費網(wǎng)站的平臺