Tag: 编译

如何通过apt-get install实际安装软件包?

当使用apt-get install方法将软件包安装到ubuntu上时,获取该软件包的源代码与从头构建它是否有任何根本区别? apt-get installfunction是否只是下载源代码并将其在您的机器上构建到指定的目录,还是在幕后更多? 最后(也许这没有答案)是一种比另一种方法更好的方法? 我在这里的目标是从源代码中自己构建它有什么优势,还是让apt-get做它的事情更好?

如何将库路径添加到./configure命令?

我想./configure链接到一个库和一些包含文件。 我的库存储在/home/foo/sw/lib/ ,我的文件存储在/home/foo/sw/include 。 ./configure –help抛出以下内容: 一些有影响的环境变量: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, eg -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, eg -l CPPFLAGS (Objective) C/C++ preprocessor flags, eg -I if you have headers in a nonstandard directory CPP C preprocessor […]

Geany编译器,c编程,Ubuntu 14.04,无法显示程序输出

我写了一个简单的程序来打印“你好世界”。 编译器显示消息“编译已成功完成”。 但是程序的输出,我什么都看不到。 使用代码块时,程序输出会出现一个新的终端。 如何使用geany编译器查看程序输出。

如何编译python文件?

我已经开始学习python了,我也是Ubuntu的新用户。 我需要知道编译.py文件的方法。 我试过这个命令 python “hello.py” 编译python的其他方法有哪些?

从源代码构建软件时如何找到依赖项?

这就是我所做的。 我下载了foxtrotgps.1.1.1.tar.gz,因为它是最新的/home/crash/usr/local.src我把它作为目录/foxtrotgps.1.1.1提取到我的/ home / crash / usr / local / src 然后我检查了所有必需的包以获得正确的级别,他们是或者如果缺少,我添加了它们。 然后我转到FTGPS目录并执行./configure,然后它到达它所说的位置; No package ‘gtk+-2.0’ found No package ‘gdk-2.0’ found No package ‘gthread-2.0’ found 但是那里有gtk + -2.0,但是我找不到gdk或gthread。 它停了下来,无处可去。 我做错了什么 – 我错过了什么包依赖?

如何修复提到“stray’\ 342’”和“stray’ \ 200’”的编译错误?

我写了这个程序: #include int main() { printf(“Hello World\n”); return 0; } 我把它保存为first.c并试图编译但是接收到这个问题我甚至安装了gcc编译器。 $ gcc first.c -o first1 first.c: In function ‘main’: first.c:4:1: error: stray ‘\342’ in program first.c:4:1: error: stray ‘\200’ in program first.c:4:1: error: stray ‘\234’ in program first.c:4:11: error: ‘Hello’ undeclared (first use in this function) first.c:4:11: note: each undeclared identifier is reported only […]

Aircrack-ng SVN错误1

我已经从SVN repo下载了aircrack-ng,我正在尝试从源代码构建它,这就是我得到的: make -C src all make[1]: Entering directory `/home/chris/aircrack-ng/src’ gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=2363 -DCONFIG_LIBNL30 -I/usr/include/libnl3 -Wno-unused-but-set-variable -Wno-array-bounds -Iinclude wpaclean.o osdep/radiotap/radiotap-parser.o -o wpaclean -Losdep -losdep -lnl-genl-3 -lnl-3 /usr/bin/ld: cannot find -lnl-genl-3 collect2: error: ld returned 1 exit status make[1]: *** [wpaclean] Error 1 make[1]: Leaving directory `/home/chris/aircrack-ng/src’ make: *** [all] Error 2 […]

如何在Ubuntu上安装Google Chrome Canary?

如何为Ubuntu安装Google Chrome Canary ?

从源代码编译或从.deb包安装是否更好?

有时候,当从Internet下载软件时,我发现有一个.deb软件包可以用于我的Debian / Ubuntu以及一个tarball来编译。 一开始我只是简单地使用包来安装,甚至不敢尝试编译。 即使它的声音让我有点害怕。 然而,现在,当我有选择时,我有时会发现自己处于两难境地:与.deb包相比,从源代码编译是否有不受欢迎的优势? 我希望能在这里找到,谢谢。

编译TrueCrypt时,我得到“未定义的符号引用’dlclose @@ GLIBC_2.2.5’”

我正在尝试从Ubuntu 13.04上的源代码编译TrueCrypt 7.1a。 但是在链接过程中make失败并出现以下错误: Linking truecrypt /usr/bin/ld: /home/user/truecrypt-7.1a-source/tc2/Volume/Volume.a(SecurityToken.o): undefined reference to symbol ‘dlclose@@GLIBC_2.2.5’ /usr/bin/ld: note: ‘dlclose@@GLIBC_2.2.5’ is defined in DSO /lib/x86_64-linux-gnu/libdl.so.2 so try adding it to the linker command line /lib/x86_64-linux-gnu/libdl.so.2: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make[1]: *** [truecrypt] Error 1 make: *** [all] Error 2 我该如何解决这个问题?