我为我的 PPA 制作了一个包并上传了它。它没有任何问题。
然后我制作了另一个依赖于第一个的包并上传了它。它失败了,因为它找不到第一个包中的文件。这让我相信第一个包甚至没有安装。
在尝试构建第二个包之前,如何确保安装了第一个包?
第一个包(libjsoncpp)的控制文件:
来源:jsoncpp
优先级:额外
维护者:Nathan Osman
构建依赖:debhelper (>= 7)
标准版本:3.8.3
部分:库
主页:http://jsoncpp.sf.net
包:jsoncpp-dev
部分:libdevel
架构:任何
取决于:libjsoncpp (= ${binary:Version})
描述:C++ JSON 解析库
jsoncpp 是一个 C++ 库,可以很容易地
读取/写入 JSON 数据。
.
该软件包包含必要的开发工具
创建使用 jsoncpp 的应用程序。
包:libjsoncpp
部分:库
架构:任何
依赖:${shlibs:Depends}, ${misc:Depends}
描述:C++ JSON 解析库
jsoncpp 是一个 C++ 库,可以很容易地
读取/写入 JSON 数据。
第二个(libsopp)的控制文件:
来源:sopp
优先级:额外
维护者:Nathan Osman
构建依赖:debhelper (>= 7)
标准版本:3.8.3
部分:库
主页:http://stackoverflow.quickmediasolutions.com
软件包:sopp-dev
部分:libdevel
架构:任何
取决于:libsopp (= ${binary:Version})、jsoncpp-dev
描述:用于与 StackExchange 站点交互的 C++ 库。
so++ 是一个 C++ 库,它封装了 StackOverflow 的功能 … 我已经下载了tmux并尝试在 Ubuntu 10.04 上安装它。
$ ./configure
Configured for Linux
$ make
cc -DBUILD="\"1.3\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -c -o attributes.o attributes.c
In file included from attributes.c:23:
tmux.h:30:19: error: event.h: No such file or directory
In file included from attributes.c:23:
tmux.h:831: error: field ‘name_timer’ has incomplete type
tmux.h:1025: error: field ‘key_timer’ has incomplete type
tmux.h:1086: error: field ‘event’ has incomplete type
tmux.h:1102: error: field ‘repeat_timer’ has incomplete type
tmux.h:1122: error: field ‘identify_timer’ has incomplete type
tmux.h:1125: error: field ‘message_timer’ …Run Code Online (Sandbox Code Playgroud) 我遵循了这些说明。我common.mak成功编辑了文件,运行时出现make此错误:
mohd-arafat-hossain@TUD:~/aircrack-ng-1.1$ make
make -C src all
make[1]: Entering directory `/home/mohd-arafat-hossain/aircrack-ng-1.1/src'
make -C osdep
make[2]: Entering directory `/home/mohd-arafat-hossain/aircrack-ng-1.1/src/osdep'
Building for Linux
make[3]: Entering directory `/home/mohd-arafat-hossain/aircrack-ng-1.1/src/osdep'
make[3]: `.os.Linux' is up to date.
make[3]: Leaving directory `/home/mohd-arafat-hossain/aircrack-ng-1.1/src/osdep'
make[2]: Leaving directory `/home/mohd-arafat-hossain/aircrack-ng-1.1/src/osdep'
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=0 -Iinclude -c -o aircrack-ng.o aircrack-ng.c
In file included from aircrack-ng.c:65:0:
crypto.h:12:26: fatal error: openssl/hmac.h: No such file or directory
compilation terminated.
make[1]: *** [aircrack-ng.o] Error 1
make[1]: Leaving …Run Code Online (Sandbox Code Playgroud) 谷歌搜索了一会儿,却发现一片空白。
需要在 64 位 Ubuntu 上构建 32 位应用程序。
意识到我需要安装 ia32-libs。我已经这样做了,apt-get 告诉我它已经是最新版本了。
这个链接:http : //packages.debian.org/squeeze/amd64/ia32-libs/filelist 说 libstdc++ 应该在 /usr/lib32
它不存在!
我已经卸载,重新安装(强制)ia32-libs。
有任何想法吗?我怎样才能把这个小动物放在我的盒子上?
塔本
我从 Realtek 站点下载了板载 RTL8111E(Mobo MSI B75 Pro3-M)的 Linux 驱动程序。Realtek 驱动程序已于 23/09/2013 更新,因此我认为它可以处理 64 位 Ubuntu(在我的情况下为 13.10)。它似乎与内核 3.xx 兼容。
我以 root 身份运行 autorun.sh 但收到以下错误:“启用 CONFIG_X86_X32 但不支持 binutils”
我没想到这个错误,因为我的操作系统是 64 位。有人知道如何解决这个问题吗?
亲切的问候,
大卫。
最近,我需要从源代码构建 Vim 以使用需要 Lua 解释的插件。这在我的笔记本电脑上运行良好,但我的塔式计算机有一些问题。每次运行 Vim 时,我都会收到以下消息:
Error detected while processing /home/XXXXXX/.vim/vimrc:
line 55:
E484: Can't open file /usr/share/vim/vim74/syntax/syntax.vim
Run Code Online (Sandbox Code Playgroud)
不足为奇的是,Vim 无法突出显示语法,并在编辑文本时抛出一堆其他错误。
我自己做了一些研究后,我可以看出,syntax.vim 实际上在 中/usr/local/share/vim/vim74/syntax/syntax.vim,而不是前面提到的目录。我该如何解决这个问题?
Vim 是使用checkinstall. 为了编译它,我运行了以下命令:
./configure --with-features=huge --enable-cscope --enable-pythoninterp=yes --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu --enable-multibyte --enable-fontset --disable-gui --disable-netbeans --enable-luainterp=yes --with-lua-prefix=/usr/include/lua5.1 --enable-largefile
make VIMRUNTIMEDIR=/usr/share/vim/vim74
Run Code Online (Sandbox Code Playgroud) 我是 Ubuntu 的新手并使用 Ubuntu 14.04 64 位。我想make一个项目,用途cuda和opencv运行时,我得到了以下错误cmake . && make
Linking CXX executable ground_estimation
/usr/bin/ld: cannot find -lcudart
collect2: error: ld returned 1 exit status
make[2]: *** [ground_estimation] Error 1
make[1]: *** [CMakeFiles/ground_estimation.dir/all] Error 2
make: *** [all] Error 2
Run Code Online (Sandbox Code Playgroud)
这是输出 ld -lcudart --verbose
attempt to open /usr/x86_64-linux-gnu/lib64/libcudart.so failed
attempt to open /usr/x86_64-linux-gnu/lib64/libcudart.a failed
attempt to open //usr/local/lib/x86_64-linux-gnu/libcudart.so failed
attempt to open //usr/local/lib/x86_64-linux-gnu/libcudart.a failed
attempt to open //usr/local/lib64/libcudart.so failed
attempt to open //usr/local/lib64/libcudart.a …Run Code Online (Sandbox Code Playgroud) 我正在尝试编译这里收到的下载:https://code.google.com/p/linux-g13-driver/通过运行 make 但我收到了错误,在网上搜索后,看起来他们是程序员的错,但他们是:
g++ c-source/G13.o c-source/G13Action.o c-source/Macro.o c-source/MacroAction.o c-source/Main.o c-source/Output.o c-source/PassThroughAction.o -o Linux-G13-Driver -lusb-1.0
/usr/bin/ld: c-source/Main.o: undefined reference to symbol 'pthread_kill@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [Linux-G13-Driver] Error 1
Run Code Online (Sandbox Code Playgroud)
如果有人有任何想法,请帮助我真的想让它运行
我正在尝试按照教程让 CudaMiner在 Linux 上工作。我煞费苦心地安装了 NVidia 驱动程序,Cuda 5.0,顺便说一句,当我运行时,我在最后一步失败了make:
make all-recursive
make[1]: Entering directory `/var/progs/CudaMiner'
Making all in compat
make[2]: Entering directory `/var/progs/CudaMiner/compat'
Making all in jansson
make[3]: Entering directory `/var/progs/CudaMiner/compat/jansson'
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT dump.o -MD -MP -MF .deps/dump.Tpo -c -o dump.o dump.c
/bin/bash: gcc: command not found
make[3]: *** [dump.o] Error 127
make[3]: Leaving directory `/var/progs/CudaMiner/compat/jansson'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/progs/CudaMiner/compat'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving …Run Code Online (Sandbox Code Playgroud) 我gcc 7.3.0在 Ubuntu 18.04 上。但是我正在开发一个需要低于版本 6 的 gcc 的项目。当我尝试使用 安装 gcc 5.4 时sudo apt install gcc-5.4,出现此错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gcc-5.4
E: Couldn't find any package by glob 'gcc-5.4'
E: Couldn't find any package by regex 'gcc-5.4'
Run Code Online (Sandbox Code Playgroud)
安装 gcc 5.4 的合适方法是什么?