目录
GLIBC 不匹配
- 最近遇到了这个问题,原因是程序/动态库是在高版本Ubuntu22编译出来的,然后复制到了低版本的Ubuntu20中希望运行,然后就报了这个错误。
- 了解原因后,解决办法分两种:
- 在低版本重新编译
- 在目标设备(低版本Ubuntu20)上添加高版本Ubuntu22的apt源,更新其libc。这里聊聊第二种。
- 找原因的过程中,还尝试过直接将高版本Ubuntu22上的libc.so替换到低版本的Ubuntu20上,结果ls、mv、rm等命令全都报段错误了,只剩下cd能用,文章后面聊聊这个和当时的救火的办法。
apt更新libc6
- 添加高版本的apt源其实有点玩火,但能救急
- 添加高版本Ubuntu22的apt源:
$ sudo vi /etc/apt/sources.list
- 添加行:
deb http://th.archive.ubuntu.com/ubuntu jammy main
- 保存后apt更新并更新libc:
$ sudo apt update
$ sudo apt install libc6
- 然后就ok了,如果提示找不到libcxx_xxx的某个版本,可以编译安装新版本的gcc解决。
ls/mv等基础命令段错误救火
- 一开始是在Ubuntu22上编译得到了程序和一些动态库,然后把程序和动态库复制到ubuntu20上运行,此时就报错提示找不到libc6和libcxx的一些版本。
- 然后就尝试把 libcxx 复制过来到 /usr/local/lib64 中,此时只剩下 libc6 的报错
- 接着就试试同样的把ubuntu22 上的 libc6 复制到 /usr/local/lib64 上,在 ldconfig 中该路径是动态库的优先搜索路径,此时程序执行时就会优先搜索该路径下的 libc6 和 libcxx
- 也就是这时,ls/mv/rm等基础命令全部段错误!!!只剩下cd/export等小部分命令可用
- 这说明是复制过来的 libc6 不能用出毛病了,此时千万不能断开ssh连接,不然就臭了。
- 然后设置更高优先级的动态库搜索路径变量 LD_LIBARY_PATH 让它优先搜索使用原本的 libc6 所在路径:
$ export LD_LIBARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBARY_PATH
- 接着赶紧把复制过来的 libc6.so 删掉。等测试正常后即可取消掉该环境变量:
$ unset LD_LIBARY_PATH
Dedicated to excellence, BWER offers Iraq’s industries durable, reliable weighbridge systems that streamline operations and ensure compliance with local and global standards.
BWER Company is committed to advancing Iraq’s industrial sector with premium weighbridge systems, tailored designs, and cutting-edge technology to meet the most demanding applications.
BWER is Iraq’s go-to provider for weighbridges, ensuring durability, accuracy, and cost-efficiency in all weighing solutions, backed by exceptional customer support and maintenance services.
Revolutionize your weighing needs with BWER, Iraq’s top provider of weighbridge systems, featuring unparalleled accuracy, durability, and expert installation services.
BWER leads the way in weighbridge technology in Iraq, delivering customized weighing solutions that are accurate, efficient, and ideal for heavy-duty use in any environment.
BWER Company is Iraq’s leading supplier of advanced weighbridge systems, offering reliable, accurate, and durable solutions for industrial and commercial needs, designed to handle heavy-duty weighing applications across various sectors.
Serving Iraq with pride, BWER supplies high-performance weighbridges designed to improve transport logistics, reduce inaccuracies, and optimize industrial processes across all sectors.
BWER Company provides Iraq’s leading-edge weighbridge solutions, designed to withstand harsh environments while delivering top-tier performance and accuracy.
BWER is Iraq’s premier provider of industrial weighbridges, offering robust solutions to enhance efficiency, reduce downtime, and meet the evolving demands of modern industries.
Revolutionize your weighing needs with BWER, Iraq’s top provider of weighbridge systems, featuring unparalleled accuracy, durability, and expert installation services.
Dedicated to excellence, BWER offers Iraq’s industries durable, reliable weighbridge systems that streamline operations and ensure compliance with local and global standards.
At BWER Company, we prioritize quality and precision, delivering high-performance weighbridge systems to meet the diverse needs of Iraq’s industries.
At BWER Company, we specialize in weighbridge solutions tailored to Iraq’s diverse industries, ensuring accurate weight management, efficient operations, and compliance with international quality standards.
BWER Company is committed to advancing Iraq’s industrial sector with premium weighbridge systems, tailored designs, and cutting-edge technology to meet the most demanding applications.
Trusted by Iraq’s top industries, BWER Company provides innovative weighbridge systems, enabling seamless load monitoring and weight compliance for transport, construction, and agriculture sectors.
Trusted by Iraq’s top industries, BWER Company provides innovative weighbridge systems, enabling seamless load monitoring and weight compliance for transport, construction, and agriculture sectors.
Revolutionize your weighing needs with BWER, Iraq’s top provider of weighbridge systems, featuring unparalleled accuracy, durability, and expert installation services.
BWER empowers businesses in Iraq with cutting-edge weighbridge systems, ensuring accurate load management, enhanced safety, and compliance with industry standards.
Revolutionize your weighing needs with BWER, Iraq’s top provider of weighbridge systems, featuring unparalleled accuracy, durability, and expert installation services.
With a focus on precision and reliability, BWER offers state-of-the-art weighbridge systems to Iraq’s industries, meeting international standards and supporting operational efficiency.
Rely on BWER Company for superior weighbridge solutions in Iraq, offering advanced designs, unmatched precision, and tailored services for diverse industrial applications.
BWER sets the standard for weighbridge excellence in Iraq, offering innovative, reliable systems and dedicated support to ensure optimal performance and client satisfaction.
Choose BWER for trusted weighbridge systems in Iraq, offering customized solutions to optimize your industrial operations and ensure precise weight measurement every time.
BWER delivers robust, precision-engineered weighbridges to businesses across Iraq, combining state-of-the-art technology with local expertise to support infrastructure and logistics growth.
BWER is Iraq’s premier provider of industrial weighbridges, offering robust solutions to enhance efficiency, reduce downtime, and meet the evolving demands of modern industries.
BWER Company is Iraq’s leading supplier of advanced weighbridge systems, offering reliable, accurate, and durable solutions for industrial and commercial needs, designed to handle heavy-duty weighing applications across various sectors.
Trusted by Iraq’s top industries, BWER Company provides innovative weighbridge systems, enabling seamless load monitoring and weight compliance for transport, construction, and agriculture sectors.
Enhance your industrial operations with BWER weighbridges, designed for exceptional accuracy and durability to support Iraq’s growing infrastructure and logistics sectors.
BWER Company stands as a trusted name in Iraq’s weighbridge industry, offering innovative designs, reliable installations, and comprehensive support for all weighing requirements.
Dedicated to excellence, BWER offers Iraq’s industries durable, reliable weighbridge systems that streamline operations and ensure compliance with local and global standards.
With a focus on precision and reliability, BWER offers state-of-the-art weighbridge systems to Iraq’s industries, meeting international standards and supporting operational efficiency.
At BWER Company, we prioritize quality and precision, delivering high-performance weighbridge systems to meet the diverse needs of Iraq’s industries.
Dedicated to excellence, BWER offers Iraq’s industries durable, reliable weighbridge systems that streamline operations and ensure compliance with local and global standards.
Choose BWER for trusted weighbridge systems in Iraq, offering customized solutions to optimize your industrial operations and ensure precise weight measurement every time.
BWER sets the standard for weighbridge excellence in Iraq, offering innovative, reliable systems and dedicated support to ensure optimal performance and client satisfaction.
Enhance your industrial operations with BWER weighbridges, designed for exceptional accuracy and durability to support Iraq’s growing infrastructure and logistics sectors.
Rely on BWER Company for superior weighbridge solutions in Iraq, offering advanced designs, unmatched precision, and tailored services for diverse industrial applications.
At BWER Company, we prioritize quality and precision, delivering high-performance weighbridge systems to meet the diverse needs of Iraq’s industries.
Trusted by Iraq’s top industries, BWER Company provides innovative weighbridge systems, enabling seamless load monitoring and weight compliance for transport, construction, and agriculture sectors.
BWER is Iraq’s premier provider of industrial weighbridges, offering robust solutions to enhance efficiency, reduce downtime, and meet the evolving demands of modern industries.
BWER Company is Iraq’s leading supplier of advanced weighbridge systems, offering reliable, accurate, and durable solutions for industrial and commercial needs, designed to handle heavy-duty weighing applications across various sectors.
Rely on BWER Company for superior weighbridge solutions in Iraq, offering advanced designs, unmatched precision, and tailored services for diverse industrial applications.
BWER Company provides Iraq’s leading-edge weighbridge solutions, designed to withstand harsh environments while delivering top-tier performance and accuracy.
BWER Company is committed to advancing Iraq’s industrial sector with premium weighbridge systems, tailored designs, and cutting-edge technology to meet the most demanding applications.
شركة Bwer هي أحد الموردين الرئيسيين لموازين الشاحنات ذات الجسور في العراق، حيث تقدم مجموعة كاملة من الحلول لقياس حمولة المركبات بدقة. وتغطي خدماتها كل جانب من جوانب موازين الشاحنات، من تركيب وصيانة موازين الشاحنات إلى المعايرة والإصلاح. تقدم شركة Bwer موازين شاحنات تجارية وموازين شاحنات صناعية وأنظمة موازين جسور محورية، مصممة لتلبية متطلبات التطبيقات الثقيلة. تتضمن موازين الشاحنات الإلكترونية وموازين الشاحنات الرقمية من شركة Bwer تقنية متقدمة، مما يضمن قياسات دقيقة وموثوقة. تم تصميم موازين الشاحنات الثقيلة الخاصة بهم للبيئات الوعرة، مما يجعلها مناسبة للصناعات مثل الخدمات اللوجستية والزراعة والبناء. سواء كنت تبحث عن موازين شاحنات للبيع أو الإيجار أو التأجير، توفر شركة Bwer خيارات مرنة لتناسب احتياجاتك، بما في ذلك أجزاء موازين الشاحنات والملحقات والبرامج لتحسين الأداء. بصفتها شركة مصنعة موثوقة لموازين الشاحنات، تقدم شركة Bwer خدمات معايرة موازين الشاحنات المعتمدة، مما يضمن الامتثال لمعايير الصناعة. تشمل خدماتها فحص موازين الشاحنات والشهادات وخدمات الإصلاح، مما يدعم موثوقية أنظمة موازين الشاحنات الخاصة بك على المدى الطويل. بفضل فريق من الخبراء، تضمن شركة Bwer تركيب وصيانة موازين الشاحنات بسلاسة، مما يحافظ على سير عملياتك بسلاسة. لمزيد من المعلومات حول أسعار موازين الشاحنات، وتكاليف التركيب، أو لمعرفة المزيد عن مجموعة موازين الشاحنات ذات الجسور وغيرها من المنتجات، تفضل بزيارة موقع شركة Bwer على الإنترنت على bwerpipes.com
This is exactly the comprehensive breakdown I needed. Your expertise shines through in every paragraph. Thanks for sharing such well-researched content.
Cat Cazino Скачать на Андроид. https://www.pgyer.com/apk/apk/com.cat.c115546
Blue Techker There is definately a lot to find out about this subject. I like all the points you made
Nice blog here Also your site loads up very fast What host are you using Can I get your affiliate link to your host I wish my site loaded up as quickly as yours lol
Thanks I have just been looking for information about this subject for a long time and yours is the best Ive discovered till now However what in regards to the bottom line Are you certain in regards to the supply