usr

/opt/rh/devtoolset-9/root/usr/libexec/gcc/x86_64-redhat-linux/9/ld: 找不到 -lz 找不到 -lssl 找不到 -lcrypto

我用的cmake命令是:target_link_libraries(${MyProjectName} -L/usr/lib64/mysql -lmysqlclient -lpthread -lz -lm -lssl -lcrypto -ldl) 将 ${MyProjectName} 这个目标(可执行 ......

#!/usr/bin/python3 和 #!/usr/bin/env python3 的区别

#!/usr/bin/python3 和 #!/usr/bin/env python3有何用处和区别,调用模块脚本时不加这句会报错。这个问题可能不少初学者也会遇到,实际上它的作用是用来指定Python的解释器。 脚本语言的第一行,目的就是指出,你想要你的这个文件中的代码用什么可执行程序去运行它。—— ......
python3 python usr bin env

Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!

一、现象 二、思路 下载两个版本的Homebrew并存 三、解决 brew bundle dump 下载homebrew,参考Mac装机软件 vi ~/.zshrc 添加 export PATH=/opt/homebrew/bin:$PATH source使配置生效 ......
processor Homebrew install default Cannot

pip安装路径由.local调整为/usr/local

如果没有设置PYTHONUSERBASE,默认会安装在~/.local下 如果不希望安装在.local目录下,可以通过配置环境变量PYTHONUSERBASE指定对应的路径,比如/usr/local 当然也可以直接修改site.py的_getuserbase方法,通过设置USER_SITE和USER ......
local 路径 pip usr

Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!

一、现象 二、思路 下载两个版本的Homebrew并存 三、解决 brew bundle dump 下载homebrew,参考Mac装机软件 vi ~/.zshrc 添加 export PATH=/opt/homebrew/bin:$PATH source使配置生效 ......
processor Homebrew install default Cannot

LInux directory usage:usr(user)vs. opt(option)

* [Linux中/opt和/usr目录(小白入门)\_ubuntu1604下的opt文件夹怎么创建目录-CSDN博客](https://blog.csdn.net/LuRenJiang/article/details/104462296)* [directory structure - What ......
directory option LInux usage user

Linux安装nacos 启动报错解决: which: no javac in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)

报错信息:which: no javac in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin) readlink: 缺少操作数 Try 'readlink --help' for more information. dirn ......
usr bin local sbin Linux

ubuntu 18.04.6 编译文件系统buildroot的时候提示 buildroot/output/host/ARM-buildroot-linux-gnueabihf/sysroot/usr/lib 没有文件或目录

错误提示如下:ln::无法创建符号链接 buildroot/output/host/ARM-buildroot-linux-gnueabihf/sysroot/usr/lib 没有文件或目录 cd 进入buildroot路径, 先sudo make clean 然后再cd .. 到software文 ......

WSL安装软件报错/sbin/ldconfig.real: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link

原因 /usr/lib/wsl/lib/目录下都是文件而不是链接,且该目录只读,需要在其他目录操作 解决 cd /usr/lib/wslsudo mkdir lib2sudo ln -s lib/* lib2 更改wsl配置文件 sudo vim /etc/ld.so.conf.d/ld.wsl.c ......
lib ldconfig symbolic libcuda 软件

解决非root用户安装软件中cannot create regular file `/usr/local/lib/libz.a‘: Permission denied

解决非root用户安装软件中cannot create regular file `/usr/local/lib/libz.a': Permission denied 举例 解决办法 举例 比如我现在要安装一个软件叫zlib,安装过程如下: wget http://zlib.net/zlib-1.2 ......
Permission regular 用户 cannot create

/usr/bin/perl: symbol lookup error: Devel/Size/Size.so: undefined symbol: Perl_xs_apiversion_bootcheck

001、perl报错如下:/usr/bin/perl: symbol lookup error: Devel/Size/Size.so: undefined symbol: Perl_xs_apiversion_bootcheck 002、 ......

CentOS 7.9 防火墙启动报错--Process: 12848 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=0/SUCCESS)

原因:配置防火墙策略过程中,多次启停防火墙,导致防火墙启动报错 报错截图: 排查: python版本是一致的,有一个遗留的防火墙进程 防火墙正常关闭后没有这个进程 解决办法: 杀掉这个进程,启动防火墙 ......

python Compile failed: command '/usr/bin/clang' failed with exit code 1 解决办法

一、升级pip pip3 install --upgrade pip 然后,更新设置工具: python3 -m pip install --upgrade setuptools ......
failed Compile command 办法 python

解决nginx: [error] invalid PID number in /usr/local/nginx/logs/nginx.pid

在编辑nginx之后,运行时出现nginx已经在运行,然后输入./nginx -s reload时出现nginx: [error] invalid PID number “” in “/usr/local/nginx/logs/nginx.pid” ,进入对应目录可以看到nginx.pid里是空的, ......
nginx invalid number error local

Can't locate CPAN.pm in @INC (@INC contains: /usr/local/lib64/perl5

001、perl -MCPAN -e shell命令报错: Can't locate CPAN.pm in @INC (@INC contains: /usr/local/lib64/perl5 (以上报错提示没有安装CPAN模块) 002、解决方法 yum -y install perl-CPAN ......
INC contains locate local perl5

启动nginx报错nginx: [emerg] unexpected end of file, expecting "}" in /usr/local/nginx/conf/nginx.conf:

启动nginx报错:“nginx: [emerg] unexpected end of file, expecting “}” in /usr/local/nginx/conf/nginx.conf:118”重启nginx时,报这么个错: [root@localhost conf]# /usr/lo ......
nginx conf quot unexpected expecting

【python】-bash: /usr/local/bin/pip: /usr/bin/python: bad interpreter: No such file or directory的问题解决

安装单独的第三方库时没有问题 pip install pandas但是一旦使用requirement.txt批量安装第三方库时就会出现 -bash: /recorddata/rebuydata/hppy/soft/python3/bin/pip3: /usr/local/source/hppy/so ......
python interpreter bin directory usr

在 Python 脚本的第一行使用 #!/usr/bin/env 有什么作用

#!/usr/bin/env 告诉计算机用什么程序执行该脚本。 001、测试两个程序 [root@pc1 test]# ls ## 两个测试程序 test2.py test.py [root@pc1 test]# cat test.py ## 程序1 print('hello world') [ro ......
脚本 一行 作用 Python usr

linux输入yum后提示: -bash: /usr/bin/yum: No such file or directory的解决方法

https://blog.csdn.net/moveym/article/details/125569233 一、首先了解Linux系统下这两个命令的区别 yum: 属于:RedHat系列 常见系统有:Redhat、Centos、Fedora等 apt-get: 属于:Debian系列 常见系统:D ......
directory yum 方法 linux bash

出错/usr/lib64/python2.7/site-packages/pycurl.so: undefined symbol: CRYPTO_num_locks

出错/usr/lib64/python2.7/site-packages/pycurl.so: undefined symbol: CRYPTO_num_locks umerror 在centos上更改python版本之后,出错: 按顺序执行下面的代码: ldd /usr/lib64/python2 ......

【踩坑】/usr/bin/ld: cannot find -lstdc++: No such file or directory

环境:win10 中的 wsl2 的 Ubuntu 1. 报错 /usr/bin/ld: cannot find -lstdc++: No such file or directory 通过 sudo apt-get install libstdc++6 解决。 2. 安装完之后依旧还是报一样的错 ......
directory cannot lstdc find file

Unexpected character '=' (code 61); expected a semi-colon after the reference for entity 'useSSL' at [row,col,system-id]: [8,75,"file:/usr/bigdata/hive-3.1.3/conf/hive-site.xml"]

在初始化hive时报错,出现如下问题: 错误原因:hive-site.xml 配置文件中,数据库的地址带有 & 符号。 将数据库地址中的 & 符号调整为 &,详情如下: 再次初始化hive,执行结果如下: ......
39 hive quot Unexpected semi-colon

/usr/bin/ld: cannot find -lxxx 的解决方法总结

问题原因: 1、系统没有按照相应的lib 2、相对应的lib版本不对 3、lib的symbolic link不对,没有连接到正确的函数库文件(so) 解决: 对于1,2种情况: apt-get install libxxx-dev 对于3中情况: 可以先用locate和find找到指定的lib文件, ......
方法 cannot find lxxx usr

smbclient: relocation error: /usr/lib64/samba/libsamdb-common-samba4.so: symbol ldb_msg_element_add_value version LDB_2.0.12 not defined in file libldb.so.2 with link time reference

smbclient: relocation error: /usr/lib64/samba/libsamdb-common-samba4.so: symbol ldb_msg_element_add_value version LDB_2.0.12 not defined in file libld ......

Can't locate Env.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl

001、问题 Can't locate Env.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl 002、解决方法 (base) [root@pc1 MaSuRCA-4.1.0]# yum -y insta ......
local perl INC usr contains

Docker ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE) 错误

错误排查: 都会用 2那里 搜索 ,答案又是满天飞,且抄手一大帮! 正确实的方式: tail -200f /var/log/messages 查看日志 ,具体定位! ......
containerd ExecStart 错误 FAILURE dockerd

keepalived 报错/usr/sbin/keepalived: error while loading shared libraries: /lib64/libnetsnmpmibs.so.31: file too short的解决

yum install keepalived的时候提示需要一下包 Installing: keepalived x86_64 1.3.5-19.el7 base 332 kInstalling for dependencies: net-snmp-agent-libs x86_64 1:5.7.2- ......

linux 系統 提示: File "/usr/lib/python3.8/multiprocessing/connection.py", line 527, in Pipe OSError: [Errno 24] Too many open files

Exception in thread Thread-4:Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner File "/usr/lib/p ......

qt程序调用cuda-11.7,cmake编译时,提示:"CMakeCUDACompilerId.cu" failed. Compiler: /usr/local/cuda/bin/nvcc Build flags: Id flags: --keep;--keep-dir;tmp -v

报错显示: Running /home/wc/software/cmake-3.26.3-linux-x86_64/bin/cmake /home/wc/work/junke_src/missile-sim '-GCodeBlocks - Unix Makefiles' in /home/wc/wo ......
flags CMakeCUDACompilerId cuda quot keep