首页 > 编程语言 >/usr/bin/install: 无法更改“/usr/local/python397/bin“ 的权限: 没有那个文件或目录

/usr/bin/install: 无法更改“/usr/local/python397/bin“ 的权限: 没有那个文件或目录

时间:2024-03-06 13:55:45浏览次数:29  
标签:bin python397 build scripts 3.9 local usr

/usr/bin/install: 无法更改“/usr/local/python397/bin“ 的权限: 没有那个文件或目录

dragoo1

于 2021-09-21 16:39:21 发布

阅读量3.7k
收藏 9

点赞数 4
分类专栏: python 文章标签: python install 没有那个文件或目录
版权

python
专栏收录该内容
3 篇文章0 订阅
订阅专栏
编译python3.9.7时报错:

hbj@hbj-virtual-machine:/usr/local/python397/Python-3.9.7$ sudo make -j8 && make altinstall
CC='gcc -pthread' LDSHARED='gcc -pthread -shared ' OPT='-DNDEBUG -g -fwrapv -O3 -Wall' _TCLTK_INCLUDES='' _TCLTK_LIBS='' ./python -E ./setup.py build
running build
running build_ext

Python build finished successfully!
The necessary bits to build these optional modules were not found:
_uuid
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
_abc atexit pwd
time
running build_scripts
copying and adjusting /usr/local/python397/Python-3.9.7/Tools/scripts/pydoc3 -> build/scripts-3.9
copying and adjusting /usr/local/python397/Python-3.9.7/Tools/scripts/idle3 -> build/scripts-3.9
copying and adjusting /usr/local/python397/Python-3.9.7/Tools/scripts/2to3 -> build/scripts-3.9
changing mode of build/scripts-3.9/pydoc3 from 644 to 755
changing mode of build/scripts-3.9/idle3 from 644 to 755
changing mode of build/scripts-3.9/2to3 from 644 to 755
renaming build/scripts-3.9/pydoc3 to build/scripts-3.9/pydoc3.9
renaming build/scripts-3.9/idle3 to build/scripts-3.9/idle3.9
renaming build/scripts-3.9/2to3 to build/scripts-3.9/2to3-3.9
Creating directory /usr/local/python397/bin
/usr/bin/install: 无法更改"/usr/local/python397/bin" 的权限: 没有那个文件或目录
Creating directory /usr/local/python397/lib
/usr/bin/install: 无法更改"/usr/local/python397/lib" 的权限: 没有那个文件或目录
Makefile:1313: recipe for target 'altbininstall' failed
make: *** [altbininstall] Error 1
解决方法:

单独执行sudo make altinstall
————————————————

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

原文链接:https://blog.csdn.net/dragoo1/article/details/120402884

标签:bin,python397,build,scripts,3.9,local,usr
From: https://www.cnblogs.com/pangwablog/p/18056384

相关文章

  • 浅谈WPF之Binding时数据校验和类型转换
    在WPF开发中,Binding实现了数据在Source和Target之间的传递和流通,就像现实生活中的一条条道路,建立起了城镇与城镇之间的衔接,而数据校验和类型转换,就像高速公路之间的收费站和安检站。那在WPF开发中,如何实现数据的校验和类型转换呢?本文以一个简单的小例子,简述在WPF开发中,实现数据校......
  • Ubuntu安装zabbix,初始化数据库报没有这个文件 /usr/share/doc/zabbix-sql-scripts/mys
    报错信息如下: 解决方法:1、先查看是否安装了zabbix-server-mysql,我这里是已经安装过了,但是初始化还是报错找不到文件 2、去zabbix下载对应版本的源码,然后进行手动安装下载链接:https://www.zabbix.com/download_sources#60LTS 3、源码下载后解压,在database文件中找到m......
  • mysqldump: Error: Binlogging on server not active
    1.问题今天在备份数据库时遇到问题,提示二进制日志尚未开启,无法使用--master-data=2选项2.解决启用二进制日志记录,打开MySQL配置文件(通常是my.cnf或my.ini),添加以下选项即可。保存并重新启动MySQL服务器#开启二进制日志binloglog-bin=mysql-bin#开启Binlog一般只需......
  • vs工具dumpbin查看依赖的lib、dll
    转载:https://blog.csdn.net/weixin_34910922/article/details/109320939?spm=1001.2101.3001.6650.11&utm_medium=distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-11-109320939-blog-104154281.pc_relevant_aa&depth_1-utm_source=distribute.pc_relev......
  • MySQL-开启binlog
    要在MySQL中开启二进制日志(Binlog),可以按照以下步骤操作:打开MySQL配置文件my.cnf。该文件通常位于/etc/my.cnf、/etc/mysql/my.cnf或者/usr/local/mysql/my.cnf。查找并编辑[mysqld]部分的内容。如果没有这个部分,则添加以下行到文件末尾:[mysqld]。在[......
  • [LeetCode] 2864. Maximum Odd Binary Number
    Youaregivenabinarystringsthatcontainsatleastone'1'.Youhavetorearrangethebitsinsuchawaythattheresultingbinarynumberisthemaximumoddbinarynumberthatcanbecreatedfromthiscombination.Returnastringrepresentin......
  • WPF Binding 绑定标记扩展
    参考绑定标记扩展Binding类环境软件/系统版本说明WindowsWindows10专业版22H219045.4046MicrosoftVisualStudioMicrosoftVisualStudioCommunity2022(64位)-17.6.5Microsoft.NetSDK8.0.101手动安装Microsoft.NetSDK7.0.306Mi......
  • [LeetCode] 2583. Kth Largest Sum in a Binary Tree
    Youaregiventherootofabinarytreeandapositiveintegerk.Thelevelsuminthetreeisthesumofthevaluesofthenodesthatareonthesamelevel.Returnthekthlargestlevelsuminthetree(notnecessarilydistinct).Iftherearefewerthan......
  • [USACO11NOV]Binary Sudoku G 题解
    定义一个\(3\times3\)的表格\(a\),表示每个小九宫格内1的个数的奇偶状态。再定义两个长为\(9\)的数组\(c0,c1\),表示每行每列上1的个数的奇偶状态。当\(d_{i,j}\)取反时,会将\(a_{[\frac{i}{3}],[\frac{j}{3}]},c0_i,c1_j\)各取反一次。要将\(a_{i,j}\)全部变为0......
  • Nginx添加第三方模块,出现“is not binary compatible in”错误的解决方案
    动态编译好第三方模块:ngx_http_ts_module.so 检测nignx配置,异常sudo/usr/local/openresty/nginx/sbin/nginx-tnginx:[emerg]module"/usr/local/openresty/nginx/modules/ngx_http_ts_module.so"isnotbinarycompatiblein/usr/local/openresty/nginx/conf/nginx.conf......