[英]Nvidia Jetson Xavier Hello AI World, error when running example
I have recently purchased a Nvidia Jetson AGX Xavier.我最近购买了 Nvidia Jetson AGX Xavier。 I flashed the system and installed the tools using the SDKManager and all seemed ok.
我刷新了系统并使用 SDKManager 安装了工具,一切似乎都很好。
I wanted to run the Hello AI World tutorial to familiarize myself with the system.我想运行 Hello AI World 教程来熟悉系统。 When running the python example:
运行python示例时:
./imagenet-console.py --network=googlenet orange_0.jpg output_0.jpg
I received the error:我收到错误:
jetson.inference.__init__.py
Traceback (most recent call last):
File "./imagenet-console.py", line 24, in <module>
import jetson.inference
File "/usr/lib/python2.7/dist-packages/jetson/inference/__init__.py", line 4, in <module>
from jetson_inference_python import *
ImportError: libjetson-utils.so: cannot open shared object file: No such file or directory
I reflashed the system and tried again and got the same error.我重新刷新系统并再次尝试并得到相同的错误。 After some effort I found a solution which I have posted below.
经过一番努力,我找到了我在下面发布的解决方案。 I have lodged this Q&A to assist other who will no doubt have the same problem.
我提出这个问答是为了帮助其他毫无疑问会遇到同样问题的人。
First, I note that you need an editor and the Jetson Xavier doesn't seem to come with nano editor installed so I installed this using首先,我注意到您需要一个编辑器,而 Jetson Xavier 似乎没有安装 nano 编辑器,所以我使用
sudo apt-get install nano
The solution I found here:我在这里找到的解决方案:
error-while-loading-shared-libraries-cannot-open-shared-object-file 加载共享库时出错,无法打开共享对象文件
In particular, I quote Bob Plankers' preferred solution:我特别引用了 Bob Plankers 的首选解决方案:
ask the dynamic linker to check /usr/local/lib要求动态链接器检查 /usr/local/lib
Edit the file /etc/ld.so.conf and add “/usr/local/lib” on its own line at the bottom[3].编辑文件 /etc/ld.so.conf 并在底部 [3] 的一行中添加“/usr/local/lib”。
DO NOT REMOVE THINGS FROM THIS FILE.请勿从该文件中删除任何内容。 When you're done it might look something like:
完成后,它可能看起来像:
$ cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/local/lib
or it might look completely different, with the exception of the last line.或者它可能看起来完全不同,除了最后一行。
*****IMPORTANT*** Run ldconfig to tell it to update the cache:** *****重要*** 运行 ldconfig 告诉它更新缓存:**
$ sudo ldconfig
You can check your work with:您可以通过以下方式检查您的工作:
$ ldconfig -p | grep local
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.