Tag: make

如何加快Ubuntu应用程序的编译速度(make,cmake,gcc)

我正在编译一些程序,我有4个核心。 有没有办法告诉make , cmake或gcc使用所有内核或其他东西进行编译?

“/ usr / bin / ld:找不到-lcudart”

我是Ubuntu的新手,使用64位的Ubuntu 14.04。 我想make一个使用cuda和opencv的项目我在运行cmake . && make时遇到以下错误cmake . && make 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 这是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 […]

缺少modversions.h

我正在尝试编译一个程序,它实际上是基于内核2.4为Linux操作系统设计的。 当我运行make命令时,我收到以下错误 /lib/modules/3.8.0-29-generic/build/include/linux/modversions.h: No such file or directory 所以我尝试通过运行命令手动找到modversions.h文件 sudo find / modversions.h 但我找不到任何东西。 我尝试了以下内容 cd /usr/src/linux-headers-3.8.0-29/include/linux make update-modverfile 但得到以下错误 make: *** No rule to make target `update-modverfile’. Stop. 我也搜索了这个丢失的文件,它看起来像这是许多为旧内核设计的应用程序的常见问题,所以我可以做些什么来解决这个问题。 请提供您的建议。 其他信息 操作系统:Ubuntu 12.04 内核版本:3.8.0-29 程序我试图编译: AODV-UU

checkinstall / make对我想安装的程序razercfg不起作用

我的目标是改变我的鼠标DPI。 因此,欢迎任何不那么令人沮丧的解决方案 我已经搜索并阅读了关于razercfg的其他主题以及许多其他人试图弄清楚如何不解决这些错误,但我是Linux的新手,甚至我正在阅读的答案让我更加困惑。 我正在尝试安装razercfg ,可以在这里找到: http : razercfg 我已经下载了tar.bz2存档并将其解压缩到我的主文件夹中。 我打开了自述文件,现在我已经在安装说明开始时卡住了几个小时。 我正在按照存档中的README文件的说明进行操作。 我已经设法得到’ cmake。 ‘通过终端更改到目录并运行此命令来工作(我认为)。 cmake的输出: wico@wico-System-Product-Name ~/razerconfig $ cmake . — The C compiler identification is GNU 4.8.4 — Check for working C compiler: /usr/bin/cc — Check for working C compiler: /usr/bin/cc — works — Detecting C compiler ABI info — Detecting C compiler ABI […]

Ubuntu 18.04上的reaver问题

所以我跟进了这个链接https://www.learn2crack.com/2013/07/learn-to-hack-wifi-password-with-ubuntu.html我坚持第7步,我正在粘贴第6步的回复,以防万一错误在那里… root@Sphinx-PC:~/reaver-1.4/src# ./configure checking for gcc… gcc checking whether the C compiler works… yes checking for C compiler default output file name… a.out checking for suffix of executables… checking whether we are cross compiling… no checking for suffix of object files… o checking whether we are using the GNU C compiler… yes checking whether gcc […]

如何从源安装vte-ng:make命令失败

尝试从源安装vte-ng 。 我尝试过像make这样的常用方法。 没有任何内容与readme文件中的安装相关,也找不到配置文件夹。 那我该怎么安装呢?

什么是“./configure; 使; make install“做什么?

./configure做什么用? 为什么要make make install ? 它是如何知道libs位置的? (它们都在那里并加载但它无法找到它们。)为什么需要libs如果编译器应该编译?

安装Reaver 1.4

我正在尝试安装reaver 1.4,但是当我运行./configure ; make ./configure ; make我最后收到这条消息 int ret_val = EXIT_FAILURE, r = 0; 我搜索了一下,找不到答案,任何帮助将不胜感激。 如果这个问题得到解答我很抱歉,我就是找不到它。

我通过获取源代码安装程序,然后运行`sudo make install`; 如何让’apt-get`了解它?

我通过从源代码构建程序,然后最后调用sudo make install和sudo ldconfig安装程序(例如,调用它, progA )。 但是,似乎apt-get没有得到备忘录,因为在安装progB ,依赖于progA , apt-get建议我也安装progA 。 为什么这样,我该怎么办?