我想使用构建系统(即jenkins,travis等)构建软件包,但我所拥有的只是Ubuntu 12.04 VM.
我发现了这[1]条说明但马赫不支持CentOS 7.0.
[1] http://blog.burghardt.pl/2008/12/how-to-build-rpm-packages-in-centos-chroot-on-debian/
我正在尝试在以下机器上运行 Quartus 13.0:
parrot 4.18.0-parrot10-amd64 #1 SMP Debian 4.18.10-1parrot10 (2018-10-06) x86_64 GNU/Linux.
Run Code Online (Sandbox Code Playgroud)
我已经完成了 Quartus 13.0 的安装,当我尝试执行它时出现以下错误:
quartus: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
Run Code Online (Sandbox Code Playgroud)
我已经阅读了堆栈溢出和其他网站中的所有相关问题,但没有人为我工作。
在寻找那个文件时,我找到了它。我试图做一个硬链接,但它也不起作用。搜索结果:
??[pepbd@parrot]?[~]
???? $ls -ld $(locate -r libpng.*\.so.*)
lrwxrwxrwx 1 root root 19 nov 19 17:09 /usr/lib/x86_64-linux-gnu/libpng16.so.16 -> libpng16.so.16.34.0
-rw-r--r-- 1 root root 210864 jul 10 13:17 /usr/lib/x86_64-linux-gnu/libpng16.so.16.34.0
-rw-r--r-- 1 root root 18272 oct 14 21:59 /usr/lib/x86_64-linux-gnu/vlc/plugins/codec/libpng_plugin.so
Run Code Online (Sandbox Code Playgroud) 我有一台主PC和多个从属网络设备。主服务器使用fork为每个从服务器创建一个进程。每个进程都尝试连接到适当的设备并通过TCP捕获数据。
一切正常,但是我在主ubuntu-> kali(4.19.0-kali1-amd64)上重新安装,并且数据捕获停止
输入数据应在10-40Mb / s之间
分叉,从属和数据捕获似乎很好。如我所见,问题是fwrite。
如果我将fwrite更改为printf并将数据重定向到文件中,那么我将获取捕获的数据。
调试后有趣的注意事项:
使用printf而不是fwrite,一切都很好。
还有一个有趣的注意事项:我认为这是一个不同的问题,但是我的网络界面看不到传入的软件包。已捕获,但不能用于netstat之类的统计信息。
while(1)
{
valread = read( sock , buffer, 1024); //blocking
//printf("%s",buffer); //try with printf
if (valread > 0)
fwrite(buffer,1,valread,fp); //stuck?
}
Run Code Online (Sandbox Code Playgroud) 我已经尝试过什么?
qemu-system-x86_64 -hda hdd.img -m 1G -net nic, macaddr=MACADDR -net bridge,br=BRIDGE -enable-kvm -nographic -daemonize
qemu-system-x86_64 -hda hdd.img -m 1G -net nic, macaddr=MACADDR -net bridge,br=BRIDGE -enable-kvm -display none -daemonize
qemu-system-x86_64 -hda hdd.img -m 1G -net nic, macaddr=MACADDR -net bridge,br=BRIDGE -enable-kvm -nographic -serial mon:stdio -append 'console=ttyS0'
Run Code Online (Sandbox Code Playgroud)
MACADDR 和 BRIDGE 在我的系统中定义。
我使用过-display none -daemonize,但失败并出现错误
qemu-system-x86_64: -nographic cannot be used with -daemonize
我也尝试过-nographic -serial mon:stdio -append 'console=ttyS0',但也失败并出现错误:
Failed to initialize module: /usr/lib/x86_64-linux-gnu/qemu/block-iscsi.so
Note: only modules from the same build can …Run Code Online (Sandbox Code Playgroud)