我正在尝试在 Raspbian 上安装 ROS(机器人操作系统)。我需要一些依赖项,但 Raspbian 不可用,因此我必须从源代码构建它们。其中之一是lz4。这是我正在使用的指南的链接:指导
我正在运行命令
apt-get source -b lz4
运行2个小时后,最终会报如下错误:
Starting LZ4 fuzzer (32-bits, )
Seed = 8544
Overflow tests : high address detected : Makefile:277: recipe for target 'test-fuzzer' failed
make[3]: *** [test-fuzzer] Killed
make[3]: Leaving directory '/root/catkin_ws/external_src/lz4-0.0~r131/programs'
Makefile:98: recipe for target 'test' failed
make[2]: *** [test] Error 2
make[2]: Leaving directory '/root/catkin_ws/external_src/lz4-0.0~r131'
debian/rules:34: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 2
make[1]: Leaving directory '/root/catkin_ws/external_src/lz4-0.0~r131'
debian/rules:26: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
我也尝试过使用
apt-get source lz4
sudo apt-get build-dep lz4
dpkg-buildpackage -rfakeroot -uc -b
我犯了同样的错误。
有谁知道可能导致此问题的原因,或者我如何继续找到解决方案?
谢谢
答案1
你用的是全闪存卡吗?确保使用 raspi-config 实用程序扩展 FS。构建过程会检查各种大小的文件(10Mb 至 6Gb)的压缩情况,因此您需要一些可用空间。我的 A+ 上的 8Gb 卡上有 raspbian-lite,构建 lz4 没有遇到任何问题,尽管需要大约 2-3 小时。您也可以尝试添加交换空间。
答案2
得到了同样的信息,并且已经设置了另一个问题:{我正在我的 RPi 上安装 ROS,当我尝试使用以下命令安装 liblz4-dev 时:
$ cd ~/ros_catkin_ws/external_src
$ apt-get source -b lz4**
I get the following:
...
Starting LZ4 fuzzer (32-bits, )
Seed = 3703
Overflow tests : high address detected : Makefile:277: recipe for target 'test-fuzzer' failed
make[3]: *** [test-fuzzer] Killed
make[3]: Leaving directory '/home/pi/ros_catkin_ws/external_src/lz4-0.0~r131/programs'
Makefile:98: recipe for target 'test' failed
make[2]: *** [test] Error 2
make[2]: Leaving directory '/home/pi/ros_catkin_ws/external_src/lz4-0.0~r131'
debian/rules:47: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 2
make[1]: Leaving directory '/home/pi/ros_catkin_ws/external_src/lz4-0.0~r131'
debian/rules:33: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
Build command 'cd lz4-0.0~r131 && dpkg-buildpackage -b -uc' failed.
E: Child process failed
Everything worked fine including 3.2.1 Unavailable Dependencies > libconsole-bridge-dev:
将不胜感激您的建议。}
但后来它起作用了......我之前只是运行: sudo apt-get install liblz4-dev ,但不知道这是否是问题所在。