首页 > 其他分享 >./a.out: error while loading shared libraries: libgsl.so.25: cannot open shared object file: No such

./a.out: error while loading shared libraries: libgsl.so.25: cannot open shared object file: No such

时间:2023-10-10 23:14:49浏览次数:33  
标签:pc1 file such test shared root out

 

001、问题: ./a.out: error while loading shared libraries: libgsl.so.25: cannot open shared object file: No such file or directory

 

002、解决方法

[root@pc1 test]# ls
a.c
[root@pc1 test]# gcc -I/usr/local/include/gsl -lgsl -lgslcblas a.c
[root@pc1 test]# ls
a.c  a.out
[root@pc1 test]# ./a.out
./a.out: error while loading shared libraries: libgsl.so.25: cannot open shared object file: No such file or directory
[root@pc1 test]#
[root@pc1 test]# echo "/usr/local/lib" >> /etc/ld.so.conf       ## 修改配置文件
[root@pc1 test]# ldconfig                                       ## 更新配置文件
[root@pc1 test]# ./a.out
Segmentation fault (core dumped)

 

 

参考:

https://blog.csdn.net/qq_36748248/article/details/110672626

 

标签:pc1,file,such,test,shared,root,out
From: https://www.cnblogs.com/liujiaxin2018/p/17755975.html

相关文章

  • CTFer blogs--Web-fileinclude
    本题来源攻防世界解题思路:首先分析代码,将cookie中‘language’的值传入lan在后续又使用include调用了lan这个变量,因此可以从此处写入读取flag.php的payload可以使用burpsuite进行抓包后添加cookie值name:languagevalue:php://filter/read=convert.base64-encode/resource=/var......
  • Dockerfile 中的 CMD 与 ENTRYPOINT
    1、概述CMD和ENTRYPOINT指令都用于定义容器启动时执行的命令,单从功能上来看,这两个命令几乎是重复的,单独使用其中的一个就可以实现绝大多数的用例。尽管如此,它们在某些情况下具有不同的用途和优势。这篇文章旨在澄清它们的用法,以帮助你在实际应用中做出明智的选择,避免混淆。2......
  • Go - Loading an Image from a File
    Problem: Youwanttoloadanimagefromanimagefile.Solution: Useimage.Decodetodecodedatafromanimagefileintoanimplementationofimage.Image. Ifyouwanttoworkwithanimagefromafile,youhavetoopenupthefileandthendecodeits......
  • 模型视图简介、QListWidget、QTreeWidget、QTableWidget、QStringListModel、QFileSys
    一、模型视图简介   有时,我们的系统需要显示大量数据,比如从数据库中读取数据,以自己的方式显示在自己的应用程序的界面中。早期的Qt要实现这个功能,需要定义一个组件,在这个组件中保存一个数据对象,比如一个列表。我们对这个列表进行查找、插入等的操作,或者把修改的地方写回,然后......
  • Makefile 入门教程
    Makefile是一个非常强大的构建自动化工具,用于管理项目的编译、链接和其他构建任务。以下是一个详细的Makefile使用文档,包括基本概念、语法、示例和常见任务。1.基本概念目标(Targets):在Makefile中,目标是要生成的文件或执行的操作的名称。目标可以是文件名,也可以是伪目标......
  • [899] Save a dictionary as a file (JSON)
    InPython,youcansaveadictionaryasafileusingvariousmethods,suchasJSON,Pickle,orCSV.Here,I'llshowyouhowtosaveadictionaryasaJSONfileandthenreadthatJSONfilebackintoadictionary.SavingaDictionaryasaJSONFile:Y......
  • [902] Get the current file's directory of CMD batch scripts
    Inabatchfile,youcanusethe%~dp0specialvariabletogetthedirectoryofthecurrentlyexecutingbatchfile.Here'showyoucandoit:@echooffechoThedirectoryofthisbatchfileis:%~dp0Whenyourunthisbatchfile,itwilldisplaythe......
  • ssh WARNING: UNPROTECTED PRIVATE KEY FILE!
    前言在ssh-i指定密钥文件登录时,出现以下报错:Permissions0644for'xxxx'aretooopen.ItisrequiredthatyourprivatekeyfilesareNOTaccessiblebyothers.Thisprivatekeywillbeignored.Loadkey"xxxx":badpermissions当执行SSH连接时,私钥文件的权......
  • npm: No such file or directory
    在项目中运行npmrunbuild报错bash:/c/ProgramFiles/nodejs/node_global/npm:Nosuchfileordirectory因为升级了npm和node,环境变量地址也需要重新配置下npm不是在/node_global文件里,是在node_modules里面 打开控制面板/系统和安全/系统/高级系统设置,环境变量NODE......
  • [893] Add comments at a batch file (CMD)
    ref:HowdoIdocommentsataWindowscommandprompt?REM isthestandardway:REMthisisacommentYoucouldalsousethedouble-colonconventioncommonlyseeninbatchfiles:::anothercommentAsinglecolonfollowedbyastringisalabel,buta......