Linux环境配置错误记录
1. pip install --special_version
pip10.0.1 以上的版本安装包报一堆错误,所以降级为9.0. 版本。
使用命令:
python -m pip install pip==9.0.
其中, -m 参数的意思是将库中的python模块用作脚本去运行[1]
run library module as a script (terminates option list)
2. fusibile make error
在编译 fusibile 时出现错误
最开始是 cmake .. 都没有通过,因为没找到 OpenCV 链接库,在装好 OpenCV 之后问题解决,顺利通过
然后 make 又出错,错误提示如下
~/mvsnet/fusibile/build$ make
[ %] Building NVCC (Device) object CMakeFiles/fusibile.dir/fusibile_generated_fusibile.cu.o
ptxas info : bytes gmem, bytes cmem[]
ptxas info : Compiling entry function '_Z8fusibileR11GlobalStatei' for 'sm_30'
ptxas info : Function properties for _Z8fusibileR11GlobalStatei
bytes stack frame, bytes spill stores, bytes spill loads
ptxas info : Used registers, bytes cmem[], bytes cmem[]
ptxas info : bytes gmem, bytes cmem[]
ptxas info : Compiling entry function '_Z8fusibileR11GlobalStatei' for 'sm_52'
ptxas info : Function properties for _Z8fusibileR11GlobalStatei
bytes stack frame, bytes spill stores, bytes spill loads
ptxas info : Used registers, bytes cmem[], bytes cmem[]
/usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’:
/usr/include/string.h::: error: ‘memcpy’ was not declared in this scope
return (char *) memcpy (__dest, __src, __n) + __n;
^
CMake Error at fusibile_generated_fusibile.cu.o.cmake: (message):
Error generating file
/home/cvlab/mvsnet/fusibile/build/CMakeFiles/fusibile.dir//./fusibile_generated_fusibile.cu.o CMakeFiles/fusibile.dir/build.make:: recipe for target 'CMakeFiles/fusibile.dir/fusibile_generated_fusibile.cu.o' failed
make[]: *** [CMakeFiles/fusibile.dir/fusibile_generated_fusibile.cu.o] Error
CMakeFiles/Makefile2:: recipe for target 'CMakeFiles/fusibile.dir/all' failed
make[]: *** [CMakeFiles/fusibile.dir/all] Error
Makefile:: recipe for target 'all' failed
make: *** [all] Error
参考网友【@cheney康】编译opencv2.4.13error 的解决方案,对 g++ 版本进行兼容设置,在 CMakeLists.txt 中添加
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_FORCE_INLINES")
再运行make出现下面的信息,应该算是已经通过了?
[ %] Building NVCC (Device) object CMakeFiles/fusibile.dir/fusibile_generated_fusibile.cu.o
ptxas info : bytes gmem, bytes cmem[]
ptxas info : Compiling entry function '_Z8fusibileR11GlobalStatei' for 'sm_30'
ptxas info : Function properties for _Z8fusibileR11GlobalStatei
bytes stack frame, bytes spill stores, bytes spill loads
ptxas info : Used registers, bytes cmem[], bytes cmem[]
ptxas info : bytes gmem, bytes cmem[]
ptxas info : Compiling entry function '_Z8fusibileR11GlobalStatei' for 'sm_52'
ptxas info : Function properties for _Z8fusibileR11GlobalStatei
bytes stack frame, bytes spill stores, bytes spill loads
ptxas info : Used registers, bytes cmem[], bytes cmem[]
Scanning dependencies of target fusibile
[ %] Building CXX object CMakeFiles/fusibile.dir/main.cpp.o
In file included from /home/cvlab/mvsnet/fusibile/main.cpp:::
/home/cvlab/mvsnet/fusibile/helper_cuda.h: In function ‘const char* _cudaGetErrorEnum(CUresult)’:
/home/cvlab/mvsnet/fusibile/helper_cuda.h::: warning: enumeration value ‘CUDA_ERROR_PEER_ACCESS_UNSUPPORTED’ not handled in switch [-Wswitch]
switch (error)
^
/home/cvlab/mvsnet/fusibile/helper_cuda.h::: warning: enumeration value ‘CUDA_ERROR_INVALID_PTX’ not handled in switch [-Wswitch]
/home/cvlab/mvsnet/fusibile/helper_cuda.h::: warning: enumeration value ‘CUDA_ERROR_INVALID_GRAPHICS_CONTEXT’ not handled in switch [-Wswitch]
/home/cvlab/mvsnet/fusibile/helper_cuda.h::: warning: enumeration value ‘CUDA_ERROR_ILLEGAL_ADDRESS’ not handled in switch [-Wswitch]
/home/cvlab/mvsnet/fusibile/helper_cuda.h::: warning: enumeration value ‘CUDA_ERROR_HARDWARE_STACK_ERROR’ not handled in switch [-Wswitch]
/home/cvlab/mvsnet/fusibile/helper_cuda.h::: warning: enumeration value ‘CUDA_ERROR_ILLEGAL_INSTRUCTION’ not handled in switch [-Wswitch]
/home/cvlab/mvsnet/fusibile/helper_cuda.h::: warning: enumeration value ‘CUDA_ERROR_MISALIGNED_ADDRESS’ not handled in switch [-Wswitch]
/home/cvlab/mvsnet/fusibile/helper_cuda.h::: warning: enumeration value ‘CUDA_ERROR_INVALID_ADDRESS_SPACE’ not handled in switch [-Wswitch]
/home/cvlab/mvsnet/fusibile/helper_cuda.h::: warning: enumeration value ‘CUDA_ERROR_INVALID_PC’ not handled in switch [-Wswitch]
/home/cvlab/mvsnet/fusibile/helper_cuda.h::: warning: enumeration value ‘CUDA_ERROR_NOT_PERMITTED’ not handled in switch [-Wswitch]
/home/cvlab/mvsnet/fusibile/helper_cuda.h::: warning: enumeration value ‘CUDA_ERROR_NOT_SUPPORTED’ not handled in switch [-Wswitch]
[%] Linking CXX executable fusibile
[%] Built target fusibile
3. 硬盘挂载问题
问题描述:电脑权限紊乱导致的当前用户无法读取外接硬盘的内容。
硬盘信息展示, Name 是 Linux filesystem,所以我的硬盘是什么格式的呢?
cv@cv:~$ sudo gdisk /dev/sdb
GPT fdisk (gdisk) version 1.0. Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present ***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
typing 'q' if you don't want to convert your MBR partitions
to GPT format!
*************************************************************** Command (? for help): p
Disk /dev/sdb: sectors, 465.8 GiB
Logical sector size: bytes
Disk identifier (GUID): 060A754F--46DA--5E2C74D4C59B
Partition table holds up to entries
First usable sector is , last usable sector is
Partitions will be aligned on -sector boundaries
Total free space is sectors (3.0 MiB) Number Start (sector) End (sector) Size Code Name
465.8 GiB Linux filesystem
让我产生这种疑问的是下面的信息:
cv@cv:~$ sudo fdisk -l
Disk /dev/sdb: 465.8 GiB, bytes, sectors
Units: sectors of * = bytes
Sector size (logical/physical): bytes / bytes
I/O size (minimum/optimal): bytes / bytes
Disklabel type: dos
Disk identifier: 0x49e2c54e Device Boot Start End Sectors Size Id Type
/dev/sdb1 * .8G Linux
cv@cv:~$ sudo blkid
/dev/sda1: LABEL="M-gM-3M-;M-gM-;M-^_M-dM-?M-^]M-gM-^UM-^Y" UUID="" TYPE="ntfs" PARTUUID="469e8113-01"
...
/dev/sda10: UUID="351d9423-6f8c-4c33-9847-5f0ee1804f11" TYPE="ext4" PARTUUID="469e8113-0a"
/dev/sdb1: LABEL="Seagate" UUID="7E42F44342F3FE29" TYPE="ntfs" PARTUUID="49e2c54e-01"
硬盘内容明明是存在的,却无法读取到,非常奇怪。
cv@cv:~$ ls -lh /media/cv/
total .0K
drwxrwxr-- cv cv .0K 3月 : Seagate
cv@cv:~$ ls -lh /media/cv/Seagate/
total
4. NVIDIA-SMI(System Management Interface)指标含义
每一项的具体指代意义
Wed Apr ::
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.67 Driver Version: 390.67 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| GeForce GTX Off | ::00.0 On | N/A |
| % 36C P8 8W / 180W | 27MiB / 8118MiB | % Default |
+-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| G /usr/lib/xorg/Xorg 25MiB |
+-----------------------------------------------------------------------------+
Timestamp : Wed Apr ::
Driver Version: 390.67
Product Name: The official product name of the GPU. This is an alphanumeric string. GeForce GTX
Mainly we focus on the GPU Memory-Usage: 27MiB / 8118MiB
Reference
[1] pip版本降级
[2] 编译opencv 2.4.13error:1 /usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope
Linux环境配置错误记录的更多相关文章
- rancher说明为什么需要按照指定版本安装以及rancher和节点linux环境配置-docker指定版本安装
rancher说明为什么需要按照指定版本安装以及rancher和节点linux环境配置-docker指定版本安装 待办 https://blog.csdn.net/CSDN_duomaomao/art ...
- JMeter学习-038-JMeter Linux 环境配置
1.1.下载 Download URL:http://mirrors.tuna.tsinghua.edu.cn/apache//jmeter/binaries/apache-jmeter-3.0.tg ...
- linux环境配置nginx导致页面不刷新
在linux环境下,配置了nginx负载均衡,由于可能在虚拟主机的配置文件nginx.conf中,对缓存机制未配置成功,导致页面不刷新,仍然显示缓存中的内容. 最后通过注释nginx.conf文件中的 ...
- kerberos 配置错误记录
服务端错误记录: 1.服务端在创建数据库的时候报如下错误: # kdb5_util -s -r HADOOP.HOME 错误提示:kdb5_util: Improper format of Kerbe ...
- [Linux]环境配置之jdk的安装 标签: jdk服务器linux 2016-08-07 22:18 502人阅读 评论(21)
这两天服务器崩了,所以需要重新配置环境,然后从头到尾配置了一遍,现在记录总结一下自己这两天的工作,首先是jdk的配置! 很多软件,需要jdk为基础,所以第一个装的就是jdk. 第一步,拷贝文件 首先将 ...
- SSM整合配置错误记录
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dic ...
- Linux iptables配置错误导致ORA-12535 & ORA-12170
实验环境: 操作系统 : Red Hat Enterprise Linux Server release 5.7 (Tikanga) 数据库版本: Oracle Databa ...
- 使用jEnv在Mac/Linux环境配置多版本Java
jEnv 是什么? 先来看一下官方介绍 jEnv is a command line tool to help you forget how to set the JAVA_HOME environm ...
- Linux环境配置与项目部署
简介: Linux是一类Unix计算机操作系统的统称.Linux操作系统的内核的名字也是“Linux”.Linux操作系统也是自由软件和开放源代码发展中最著名的例子.严格来讲,Linux这个词本身只表 ...
随机推荐
- vue element-ui 文件上传
<el-upload class="upload-demo" action="" :before-remove="beforeRemove&qu ...
- 重建程序员能力(2)-如何使asp.net mvc应用增加js和其他功能
1. 在Visual Studio的解决方案资源管理器,找到项目右键展开右键菜单后选择 管理NuGet程序包. 2.在打开的页面中,可以按需要选择Jquery.BootStrap等页面展现框架. 有工 ...
- Android远程桌面助手(B1332)之文件管理器
Android远程桌面助手除了支持Android界面的显示及控制外,还支持Android文件系统的管理,包括文件的快速上传(push).下拉(pull)和查看(cat). Android远程桌面助手( ...
- 关于写作那些事之利用 js 统计各大博客阅读量
在日常文章数据统计的过程中,纯手动方式已经难以应付,于是乎,逐步开始了程序介入方式进行统计. 在上一节中,探索利用 csv 文件格式进行文章数据统计,本来以为能够应付一阵子,没想到仅仅一天我就放弃了. ...
- POST一下就知道:人生苦短,我用Python!
Python编程笔记---- 背景: “闸机端”简版程序要求: 读取扫描仪得到的userID; 向服务器发送请求进行验证: 根据返回值(True/False)决定闸机的信号. 1. 文件的读取 网上买 ...
- 一分钟了解Allegro导入DXF文件
Allegro, pads,PCB线路板设计,小北PCB 很高兴与大家分享一分钟了解Allegro导入DXF文件的方法,请问您们,刚学习这个软件时,您是否遇到过同样的问题呢?应该我们每一个刚学习者都会 ...
- 在项目管理中如何保持专注,分享一个轻量的时间管理工具【Flow Mac版 - 追踪你在Mac上的时间消耗】
在项目管理和团队作业中,经常面临的问题就是时间管理和优先级管理发生问题,项目被delay,团队工作延后,无法达到预期目标. 这个仿佛是每个人都会遇到的问题,特别是现在这么多的内容软件来分散我们的注意力 ...
- ext组件中的查询
组件中的查询依赖于组件树,往上可追溯父组件,往下可查找子组件. 组件中的查询主要包括8个方法:up.down.query.child.nextNode.nextSibiling.previoutNod ...
- Redis笔记-集群搭建
Redis单机版搭建上一篇已经基本介绍了,下面讨论Redis集群搭建方案和示例. 1.关于Redis常用的集群方案(三种): a.一主多从,如一个Master.两个Slave b.薪火相传,即集群中的 ...
- 从0开始的Python学习011模块
简介 你已经学习了如何在你的程序中定义一次函数而重用代码.如果你想要在其他程序中重用很多函数,那么你该如何编写程序呢?你可能已经猜到了,答案是使用模块.模块基本上就是一个包含了所有你定义的函数和变量的 ...