Ubuntu 中的“cpp”和“c++”编译器有什么区别?
在决定哪些是最优雅的使用之前,我一直试图澄清 Ubuntu(以及一般的 Linux 发行版)中使用的各种编译器同义词。使用“file”命令跟随符号链接可以快速显示“cc”链接到“gcc”,“c++”链接到“g++”。
然而,“cpp”和“c++”没有符号链接,而是链接到两个不同的 ELF 文件,其中“cmp”显示不相似,因此它们也不是硬链接。有谁知道这些编译器之间的差异的重要性?
我想从源代码中学习如何编译vim,因为有一些我想添加的内容,并学习如何处理这种情况,但直到现在我都没有成功,我可以编译vim,但是没有它的图形用户界面
我认为这是一个依赖关系问题,但我不知道我必须安装哪些包,用它的 gui 编译 vim 的依赖关系是什么?
我找到了一篇关于如何编译 gvim的文章,但我的 ubuntu 10.10 存储库中没有安装包,我希望能找到一些帮助
你好
“CONCURRENCY_LEVEL=x”变量是否影响使用make进行的编译?
我需要帮助编译午夜指挥官,以便我可以进行一些更改(出于教育目的)。甚至创建 make 文件。
从git下载最新版本后。我尝试执行 ./autogen.sh 。结果是:
maint/autopoint: 418: cannot open /usr/share/gettext/archive.tar.gz: No such file
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
cvs checkout: cannot find module `archive' - ignored
find: `archive': No such file or directory
find: `archive': No such file or directory
find: `archive': No such file or directory
autopoint: *** infrastructure files for version 0.14.3 not found; this is autopoint from GNU gettext-tools 0.17
autopoint: *** Stop. …Run Code Online (Sandbox Code Playgroud) 我在 Gnome 2.32.1 (Ubuntu 11.04) 上,我想在我当前的桌面环境中使用 gedit 3。
为了实现这一点,我想我可以使用自定义前缀编译 gedit 3 及其依赖库,因此它不会干扰我当前的 Gnome 2 库,但我不确定。
非常感谢。
周一,我已从 Ubuntu 11.04(我的初始安装)升级到 11.10,现在我无法再从源代码构建 gcc。由于我在升级前忘记卸载 gcc 包,Ubuntu 用稳定的 4.6.1 替换了我的 4.7.0 编译器。所以我尝试再次构建 SVN 源代码,但失败了。我最近尝试过 SVN 修订版 180193。
一段时间后,构建失败并显示以下消息:
/home/raphael/devel/gcc/build/./gcc/xgcc -B/home/raphael/devel/gcc/build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -g -O2 -O2 -I. -I. -I../../src/gcc -I../../src/gcc/. -I../../src/gcc/../include -I../../src/gcc/../libdecnumber -I../../src/gcc/../libdecnumber/bid -I../libdecnumber -I../../src/gcc/../libgcc -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -I. -I. -I../.././gcc -I../../../src/libgcc -I../../../src/libgcc/. -I../../../src/libgcc/../gcc -I../../../src/libgcc/../include -I../../../src/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o _ashldi3.o -MT _ashldi3.o -MD -MP -MF _ashldi3.dep -DL_ashldi3 -c ../../../src/libgcc/../gcc/libgcc2.c \
-fvisibility=hidden …Run Code Online (Sandbox Code Playgroud) 我将如何在 Ubuntu 10.10 中安装 Clang/LLVM 的第 3 版?Ubuntu 10.10 默认安装 2.8 版。版本 3 对 C++ 和可能的 C 有更广泛/最新的支持(我不完全确定 C)。我知道我可以从源代码编译,但想知道是否有 ppa 或其他方法来避免从源代码编译它。
如果我从源代码编译,我是否必须告诉它在哪里可以找到 std c 库等,或者是自动完成的。
installation programming compiling install-from-source compiler
Media Explorer是一个媒体中心,很像 XBMC,它是 Meego 的一部分。最新版本 0.3 仅作为源提供,必须构建。存在 PPA,提供 0.2 版,但我不想要它——我想要最新的。该文档列出了在 11.04 中构建它的步骤,但只是找不到一些包。
如何安装最新版本的媒体资源管理器?
我正在尝试安装和使用liboverlay-scrollbar符合我个人喜好的补丁版本。我已经成功下载lp:ayatana-scrollbar并./autogen.sh; make; sudo make install编辑了它。
这就是问题所在。看看ldd /usr/bin/*,它看起来不像任何应用程序实际使用 liboverlay-scrollbar*.so. 即使我使用类似的东西:
export LD_LIBRARY_PATH="/usr/local/lib/:/usr/lib/"
export LIBOVERLAY_SCROLLBAR=1
gedit
Run Code Online (Sandbox Code Playgroud)
我调用的使用滚动条的应用程序似乎无视我的/usr/local/lib库并使用系统安装的 ayatana 滚动条。我的 GTK+ 库是 Ubuntu 的股票,所以我假设我不需要修补和重新编译图形工具包。
任何人都可以发布从源代码安装覆盖滚动条的分步过程吗?
我们一直在尝试在 12.04 64 位上构建 LFS 系统。在 的配置阶段glibc,我收到错误
配置:错误:需要带有 -z relro 支持的链接器
如何启用 RELRO 支持?
/media/lfs/sources/glibc-build$ ../glibc-2.15/configure \
> --prefix=/tools \
> --host=$LFS_TGT \
> --build=$(../glibc-2.15/scripts/config.guess) \
> --disable-profile \
> --enable-add-ons \
> --enable-kernel=2.6.25 \
> --with-headers=/tools/include \
> libc_cv_forced_unwind=yes \
> libc_cv_ctors_header=yes \
> libc_cv_c_cleanup=yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-lfs-linux-gnu
checking for x86_64-lfs-linux-gnu-gcc... x86_64-lfs-linux-gnu-gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking …Run Code Online (Sandbox Code Playgroud)