CentOS6 升级 gcc-4.9.1 xgcc

本文记录了在CentOS 5.4环境下编译GCC4.2.7过程中遇到的错误:xgcc没有-V参数及找不到libmpc.so.2。通过调整libmpc的位置和版本配置解决了部分问题,但仍存在新版本GCC未能正确识别libmpc路径的bug。
http://www.linuxquestions.org/questions/linux-software-2/problem-compiling-gcc4-2-7-on-centos-5-4-a-939667/

如上文所述, 错误提示xgcc没有 -V 这个参数. 这个问题先放一放
再来看下一行, 提示找不到libmpc.so.2 , 但是已确认装过mpc,  mpc编译的时候未指定prefix, 默认安装到了/usr/local,  所以gcc在 configure的时候指定了 --with-mpc=/usr/local


尝试将/usr/local/lib/libmpc.* 拷贝到/usr/lib64下, 再次编译, 尽然通过了也不提示 -V的问题了
问题在于: 新版本的gcc在编译到libgcc源码的时候并没有找到libmpc.so.2的正确位置, 但是明明 --with-mpc=/usr/local做了指定,  我想这是一个bug, 但想不明白跟xgcc -V这个参数不存在有什么关系???

注意,同样的环境安装gcc-4.9.3又遇到其他问题, 升级gcc真蛋疼
(nanodet) C:\Users\gyf>pip install tensorboard==2.10 Looking in indexes: http://mirrors.aliyun.com/pypi/simple/ Collecting tensorboard==2.10 Downloading http://mirrors.aliyun.com/pypi/packages/6b/42/e271c40c84c250b52fa460fda970899407c837a2049c53969f37e404b1f6/tensorboard-2.10.0-py3-none-any.whl (5.9 MB) ---------------------------------------- 5.9/5.9 MB 5.1 MB/s eta 0:00:00 Collecting absl-py>=0.4 (from tensorboard==2.10) Downloading http://mirrors.aliyun.com/pypi/packages/8f/aa/ba0014cc4659328dc818a28827be78e6d97312ab0cb98105a770924dc11e/absl_py-2.3.1-py3-none-any.whl (135 kB) Collecting grpcio>=1.24.3 (from tensorboard==2.10) Downloading http://mirrors.aliyun.com/pypi/packages/87/7d/36009c38093e62969c708f20b86ab6761c2ba974b12ff10def6f397f24fa/grpcio-1.70.0-cp38-cp38-win_amd64.whl (4.3 MB) ---------------------------------------- 4.3/4.3 MB 5.8 MB/s eta 0:00:00 Collecting google-auth<3,>=1.6.3 (from tensorboard==2.10) Downloading http://mirrors.aliyun.com/pypi/packages/17/63/b19553b658a1692443c62bd07e5868adaa0ad746a0751ba62c59568cd45b/google_auth-2.40.3-py2.py3-none-any.whl (216 kB) Collecting google-auth-oauthlib<0.5,>=0.4.1 (from tensorboard==2.10) Downloading http://mirrors.aliyun.com/pypi/packages/b1/0e/0636cc1448a7abc444fb1b3a63655e294e0d2d49092dc3de05241be6d43c/google_auth_oauthlib-0.4.6-py2.py3-none-any.whl (18 kB) Collecting markdown>=2.6.8 (from tensorboard==2.10) Downloading http://mirrors.aliyun.com/pypi/packages/3f/08/83871f3c50fc983b88547c196d11cf8c3340e37c32d2e9d6152abe2c61f7/Markdown-3.7-py3-none-any.whl (106 kB) Requirement already satisfied: numpy>=1.12.0 in g:\.conda\envs\nanodet\lib\site-packages (from tensorboard==2.10) (1.24.3) Collecting protobuf<3.20,>=3.9.2 (from tensorboard==2.10) Downloading http://mirrors.aliyun.com/pypi/packages/fd/38/cb53f28950a386c8d7e17fc305c97a158cf85d51d7e6caffe4f37336c138/protobuf-3.19.6-cp38-cp38-win_amd64.whl (896 kB) ---------------------------------------- 896.1/896.1 kB 6.7 MB/s eta 0:00:00 Requirement already satisfied: requests<3,>=2.21.0 in g:\.conda\envs\nanodet\lib\site-packages (from tensorboard==2.10) (2.32.3) Requirement already satisfied: setuptools>=41.0.0 in g:\.conda\envs\nanodet\lib\site-packages (from tensorboard==2.10) (75.1.0) Collecting tensorboard-data-server<0.7.0,>=0.6.0 (from tensorboard==2.10) Downloading http://mirrors.aliyun.com/pypi/packages/74/69/5747a957f95e2e1d252ca41476ae40ce79d70d38151d2e494feb7722860c/tensorboard_data_server-0.6.1-py3-none-any.whl (2.4 kB) Collecting tensorboard-plugin-wit>=1.6.0 (from tensorboard==2.10) Downloading http://mirrors.aliyun.com/pypi/packages/e0/68/e8ecfac5dd594b676c23a7f07ea34c197d7d69b3313afdf8ac1b0a9905a2/tensorboard_plugin_wit-1.8.1-py3-none-any.whl (781 kB) ---------------------------------------- 781.3/781.3 kB 4.8 MB/s eta 0:00:00 Collecting werkzeug>=1.0.1 (from tensorboard==2.10) Downloading http://mirrors.aliyun.com/pypi/packages/6c/69/05837f91dfe42109203ffa3e488214ff86a6d68b2ed6c167da6cdc42349b/werkzeug-3.0.6-py3-none-any.whl (227 kB) Requirement already satisfied: wheel>=0.26 in g:\.conda\envs\nanodet\lib\site-packages (from tensorboard==2.10) (0.44.0) Collecting cachetools<6.0,>=2.0.0 (from google-auth<3,>=1.6.3->tensorboard==2.10) Downloading http://mirrors.aliyun.com/pypi/packages/72/76/20fa66124dbe6be5cafeb312ece67de6b61dd91a0247d1ea13db4ebb33c2/cachetools-5.5.2-py3-none-any.whl (10 kB) Collecting pyasn1-modules>=0.2.1 (from google-auth<3,>=1.6.3->tensorboard==2.10) Downloading http://mirrors.aliyun.com/pypi/packages/47/8d/d529b5d697919ba8c11ad626e835d4039be708a35b0d22de83a269a6682c/pyasn1_modules-0.4.2-py3-none-any.whl (181 kB) Collecting rsa<5,>=3.1.4 (from google-auth<3,>=1.6.3->tensorboard==2.10) Downloading http://mirrors.aliyun.com/pypi/packages/64/8d/0133e4eb4beed9e425d9a98ed6e081a55d195481b7632472be1af08d2f6b/rsa-4.9.1-py3-none-any.whl (34 kB) Collecting requests-oauthlib>=0.7.0 (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard==2.10) Downloading http://mirrors.aliyun.com/pypi/packages/3b/5d/63d4ae3b9daea098d5d6f5da83984853c1bbacd5dc826764b249fe119d24/requests_oauthlib-2.0.0-py2.py3-none-any.whl (24 kB) Collecting importlib-metadata>=4.4 (from markdown>=2.6.8->tensorboard==2.10) Downloading http://mirrors.aliyun.com/pypi/packages/a0/d9/a1e041c5e7caa9a05c925f4bdbdfb7f006d1f74996af53467bc394c97be7/importlib_metadata-8.5.0-py3-none-any.whl (26 kB) Requirement already satisfied: charset-normalizer<4,>=2 in g:\.conda\envs\nanodet\lib\site-packages (from requests<3,>=2.21.0->tensorboard==2.10) (3.3.2) Requirement already satisfied: idna<4,>=2.5 in g:\.conda\envs\nanodet\lib\site-packages (from requests<3,>=2.21.0->tensorboard==2.10) (3.7) Requirement already satisfied: urllib3<3,>=1.21.1 in g:\.conda\envs\nanodet\lib\site-packages (from requests<3,>=2.21.0->tensorboard==2.10) (2.2.3) Requirement already satisfied: certifi>=2017.4.17 in g:\.conda\envs\nanodet\lib\site-packages (from requests<3,>=2.21.0->tensorboard==2.10) (2024.8.30) Collecting MarkupSafe>=2.1.1 (from werkzeug>=1.0.1->tensorboard==2.10) Downloading http://mirrors.aliyun.com/pypi/packages/92/21/357205f03514a49b293e214ac39de01fadd0970a6e05e4bf1ddd0ffd0881/MarkupSafe-2.1.5-cp38-cp38-win_amd64.whl (17 kB) Collecting zipp>=3.20 (from importlib-metadata>=4.4->markdown>=2.6.8->tensorboard==2.10) Downloading http://mirrors.aliyun.com/pypi/packages/62/8b/5ba542fa83c90e09eac972fc9baca7a88e7e7ca4b221a89251954019308b/zipp-3.20.2-py3-none-any.whl (9.2 kB) Collecting pyasn1<0.7.0,>=0.6.1 (from pyasn1-modules>=0.2.1->google-auth<3,>=1.6.3->tensorboard==2.10) Downloading http://mirrors.aliyun.com/pypi/packages/c8/f1/d6a797abb14f6283c0ddff96bbdd46937f64122b8c925cab503dd37f8214/pyasn1-0.6.1-py3-none-any.whl (83 kB) Collecting oauthlib>=3.0.0 (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard==2.10) Downloading http://mirrors.aliyun.com/pypi/packages/be/9c/92789c596b8df838baa98fa71844d84283302f7604ed565dafe5a6b5041a/oauthlib-3.3.1-py3-none-any.whl (160 kB) Installing collected packages: tensorboard-plugin-wit, zipp, tensorboard-data-server, pyasn1, protobuf, oauthlib, MarkupSafe, grpcio, cachetools, absl-py, werkzeug, rsa, requests-oauthlib, pyasn1-modules, importlib-metadata, markdown, google-auth, google-auth-oauthlib, tensorboard Successfully installed MarkupSafe-2.1.5 absl-py-2.3.1 cachetools-5.5.2 google-auth-2.40.3 google-auth-oauthlib-0.4.6 grpcio-1.70.0 importlib-metadata-8.5.0 markdown-3.7 oauthlib-3.3.1 protobuf-3.19.6 pyasn1-0.6.1 pyasn1-modules-0.4.2 requests-oauthlib-2.0.0 rsa-4.9.1 tensorboard-2.10.0 tensorboard-data-server-0.6.1 tensorboard-plugin-wit-1.8.1 werkzeug-3.0.6 zipp-3.20.2
07-26
#异步相关依赖 aiofiles==24.1.0 aiohappyeyeballs==2.4.6 aiohttp==3.11.12 aioprometheus==23.12.0 aiosignal==1.3.2 async-timeout==4.0.3 frozenlist==1.5.0 multidict==6.1.0 yarl==1.18.3 #数据处理与可视化 altair==4.2.2 contourpy==1.3.1 cycler==0.12.1 matplotlib==3.10.0 numpy==1.24.4 pandas==1.5.3 pillow==10.4.0 pyparsing==3.2.1 scipy==1.15.3 seaborn==0.13.2 tabulate==0.9.0 #Web 框架与接口 anyio==4.8.0 fastapi==0.109.2 fastapi-mcp==0.3.4 fastjsonschema==2.21.1 h11==0.14.0 httpcore==1.0.7 httptools==0.6.4 httpx==0.27.2 httpx-sse==0.4.0 pydantic==2.7.4 pydantic_core==2.18.4 pydantic-extra-types==2.10.2 pydantic-settings==2.9.1 starlette>=0.36.3,<0.37.0 sse-starlette==1.8.2 uvicorn==0.34.0 websockets==14.2 #LangChain 生态(100% 无冲突,Python 3.10 验证通过) #核心调整:降低 langchain 主版本至 0.2.16,同步匹配子库版本,避免 core 版本交叉冲突 langchain==0.2.16 # 降至 0.2.16(依赖 core≥0.2.36<0.3.0,兼容范围更广) langchain-community==0.2.18 # 与 langchain==0.2.16 匹配,依赖 core≥0.2.36<0.3.0 langchain-core==0.2.43 # 保持 0.2.x 最高稳定版,同时满足所有子库要求 langchain-experimental==0.0.64 # 降至 0.0.64(0.0.65 依赖更高 core,0.0.64 兼容 core≥0.2.36) langchain-openai==0.2.4 # 降至 0.2.4(依赖 core≥0.2.36<0.3.0,与 core==0.2.43 完美兼容) langchain-text-splitters==0.2.3 # 降至 0.2.3(0.2.4 依赖 core≥0.2.43,此处保持版本统一) langchainhub==0.1.19 # 无 core 版本冲突,保持不变 langsmith==0.1.147 # 无 core 版本冲突,保持不变 #文档处理与解析 beautifulsoup4==4.13.3 docx2txt==0.8 et_xmlfile==2.0.0 favicon==0.7.0 filetype==1.2.0 lxml==5.3.1 markdown-it-py==3.0.0 markdownify==0.14.1 markdownlit==0.0.7 openpyxl==3.1.4 pydub==0.25.1 PyMuPDF==1.23.26 PyMuPDFb==1.23.22 pypdf==5.3.0 python-docx==1.1.2 soupsieve==2.6 unstructured==0.11.8 unstructured-client==0.25.9 #模型与推理相关(适配 Python 3.10) faiss-cpu==1.7.4 huggingface-hub==0.32.1 modelscope==1.18.0 onnxruntime==1.15.1 openai==1.61.1 safetensors==0.5.3 tiktoken==0.8.0 torch==2.7.0 torchvision==0.22.0 xinference-client==1.6.0 xoscar==0.7.2 #数据库与存储 PyMySQL==1.1.1 pyarrow==19.0.0 SQLAlchemy==2.0.38 #工具类与辅助依赖(Python 3.10 兼容) annotated-types==0.7.0 backoff==2.2.1 backports.tarfile==1.2.0 bcrypt==4.3.0 blinker==1.9.0 Brotli==1.1.0 build==1.2.2.post1 CacheControl==0.14.2 cachetools==5.5.1 certifi==2025.1.31 cffi==1.17.1 chardet==5.2.0 charset-normalizer==3.4.1 cleo==2.1.0 click==8.1.8 cloudpickle==3.1.1 colorama==0.4.6 coloredlogs==15.0.1 crashtest==0.4.1 cryptography==44.0.0 dataclasses-json==0.6.7 deepdiff==8.2.0 deprecation==2.1.0 distlib==0.3.9 distro==1.9.0 dnspython==2.7.0 dulwich==0.22.7 ecdsa==0.19.1 elastic-transport==8.17.0 elasticsearch==8.4.3 email_validator==2.2.0 emoji==2.14.1 entrypoints==0.4 exceptiongroup==1.2.2 Faker==36.1.0 ffmpy==0.5.0 filelock==3.17.0 flatbuffers==25.2.10 fonttools==4.56.0 fsspec==2025.5.1 gitdb==4.0.12 GitPython==3.1.44 greenlet==3.1.1 groovy==0.1.2 h2==4.2.0 hpack==4.1.0 htbuilder==0.9.0 humanfriendly==10.0 hyperframe==6.1.0 idna==3.10 importlib_metadata==8.6.1 installer==0.7.0 itsdangerous==2.2.0 jaraco.classes==3.4.0 jaraco.context==6.0.1 jaraco.functools==4.1.0 jieba==0.42.1 Jinja2==3.1.5 jiter==0.8.2 joblib==1.4.2 jsonpatch==1.33 jsonpath-python==1.0.6 jsonpointer==3.0.0 jsonschema==4.23.0 jsonschema-specifications==2024.10.1 keyring==25.6.0 kiwisolver==1.4.8 langdetect==1.0.9 loguru==0.7.3 Markdown==3.7 MarkupSafe==3.0.2 marshmallow==3.26.1 mcp==1.9.0 mdurl==0.1.2 memoization==0.4.0 more-itertools==10.6.0 mpmath==1.3.0 msgpack==1.1.0 mypy-extensions==1.0.0 nest-asyncio==1.6.0 networkx==3.1 nltk==3.8.1 numexpr==2.10.2 nvidia-ml-py==12.575.51 opencv-python==4.10.0.84 orderly-set==5.3.0 orjson==3.10.15 packaging==23.2 passlib==1.7.4 pathlib==1.0.1 pika==1.3.2 pip==25.0 pkginfo==1.12.0 platformdirs==4.3.6 poetry==2.0.1 poetry-core==2.0.1 prometheus_client==0.21.1 propcache==0.2.1 protobuf==4.25.6 psutil==7.0.0 pyahocorasick==2.1.0 pyasn1==0.4.8 pyclipper==1.3.0.post6 pycparser==2.22 pydeck==0.9.1 Pygments==2.19.1 PyJWT==2.8.0 pymdown-extensions==10.14.3 pynvml==12.0.0 pypandoc==1.15 pyproject_hooks==1.2.0 pyreadline3==3.5.4 python-dateutil==2.9.0.post0 python-decouple==3.8 python-dotenv==1.0.1 python-iso639==2025.2.8 python-jose==3.4.0 python-magic==0.4.27 python-multipart==0.0.20 pytz==2025.1 PyYAML==6.0.2 quantile-python==1.1 rank-bm25==0.2.2 RapidFuzz==3.12.1 rapidocr-onnxruntime==1.3.25 referencing==0.36.2 regex==2024.11.6 requests==2.31.0 requests-toolbelt==1.0.0 rich==13.9.4 rpds-py==0.22.0 rsa==4.9.1 ruamel.yaml==0.18.6 ruamel.yaml.clib==0.2.12 ruff==0.11.11 semantic-version==2.10.0 setproctitle==1.3.6 setuptools==75.8.0 shapely==2.0.7 shellingham==1.5.4 simplejson==3.19.3 six==1.17.0 smmap==5.0.2 sniffio==1.3.1 socksio==1.0.0 st-annotated-text==4.0.2 streamlit==1.34.0 streamlit-aggrid==1.0.5 streamlit-antd-components==0.3.1 streamlit-camera-input-live==0.2.0 streamlit-card==1.0.2 streamlit-chatbox==1.1.8 streamlit-embedcode==0.1.2 streamlit-extras==0.4.2 streamlit-faker==0.0.3 streamlit-feedback==0.1.4 streamlit-image-coordinates==0.1.9 streamlit-keyup==0.3.0 streamlit_modal==0.1.0 streamlit-option-menu==0.3.12 streamlit-paste-button==0.1.2 streamlit-toggle-switch==1.0.2 streamlit-vertical-slider==2.5.5 strsimpy==0.2.1 sympy==1.13.3 tblib==3.1.0 tenacity==8.5.0 toml==0.10.2 tomli==2.2.1 tomlkit==0.13.2 toolz==1.0.0 tornado==6.4.2 tqdm==4.67.1 trove-classifiers==2025.1.15.22 typer==0.15.4 types-requests==2.32.0.20241016 typing_extensions==4.12.2 typing-inspect==0.9.0 typing-inspection==0.4.0 tzdata==2025.1 ujson==5.10.0 urllib3==2.3.0 validators==0.34.0 virtualenv==20.29.2 watchdog==6.0.0 watchfiles==1.0.4 win32_setctime==1.2.0 wrapt==1.17.2 zipp==3.21.0 以上依赖 出现不兼容 环境Python 3.10.0 liunx
最新发布
09-11
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值