标签: compiling

更改配置后如何快速重新编译内核?

我正在尝试解决戴尔 Inspiron 600m 上的挂起问题。我认为问题在于视频驱动程序模块没有正确重新加载。因此,我将尝试将视频驱动程序正确编译到内核中,而不是将它们保留为外部模块。我只想知道我是否可以摆脱跑步:

fakeroot debian/rules clean
Run Code Online (Sandbox Code Playgroud)

在构建内核之前:

skipabi=true skipmodule=true fakeroot debian/rules binary-core2
Run Code Online (Sandbox Code Playgroud)

其中 core2 是我自定义配置的内核。这会起作用,我会得到一个干净的内核包,我可以编译,但是在我的机器上编译可能需要长达 3 个小时,所以我只想重建我需要的东西并尝试保留一些 *.o 文件所以我可以链接它们而不是重新编译它们。

谢谢

10.04 compiling kernel

7
推荐指数
1
解决办法
2154
查看次数

如何并行化大型 dkms 包的 dpkg?

许多作为 apt 软件包安装的 dkms 模块(例如zfs-dkmsopenafs-modules-dkms)需要大量时间来构建(> 5 分钟),并且在其处理的大部分部分中不使用任何并行化(至少在 CPU 监视器中无法识别) 。在进程的最后一部分(例如,最后 10% 的时间) MAKEFLAGS,获得拾取(所有 CPU 核心的 100% 使用率,就像其他构建期间一样)。有没有办法在整个运行中使用并行化?构建缓慢部分的输出是.make -j16zfs-dkmsbuilding initial module for <kernel version>

使用dpkg1.17.13ubuntu1 运行 Ubuntu 14.04 amd64。

apt dpkg compiling dkms

6
推荐指数
1
解决办法
1028
查看次数

系统升级后Clang++找不到lstdc++

我有一个 C++ 小项目,在我将 Xubuntu 升级到 15.04 之前,它编译得很好。当我尝试使用 cmake 重建它时,此消息出现在输出的中间:

/usr/bin/ld: cannot find -lstdc++
Run Code Online (Sandbox Code Playgroud)

因此,我尝试编写一个简单的程序来看看是否cmake对此负责:

int main() {
    return 0;
}
Run Code Online (Sandbox Code Playgroud)

有趣的事情:g++编译:

$ g++ main.cpp
$ ls
a.out  main.cpp
$ ./a.out
$
Run Code Online (Sandbox Code Playgroud)

但是当我尝试使用clang++...

$ clang++ main.cpp 
/usr/bin/ld: cannot find -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
$
Run Code Online (Sandbox Code Playgroud)

尝试使用clang++ main.cpp -lc++如此处建议的)或标志-static此处)会给出完全相同的错误。-v按照它自己的建议运行clang,我得到这个:

$ clang++ main.cpp -v
Ubuntu …
Run Code Online (Sandbox Code Playgroud)

upgrade xubuntu compiling clang 15.04

6
推荐指数
2
解决办法
4674
查看次数

如何在 ubuntu 14.04 中安装 jsconcpp 进行 C++ 开发?

正如问题告诉我应该如何在 ubuntu 14.04 中安装jsonccpp。我已经下载了 jsoncpp-src-0.5.0.tar.gz 表单sourceforge。然后我使用 sudo 打开 nautilus 并复制、粘贴和提取 tar.gz 文件/opt。我已经安装了 cmake 并使用此代码按照 jsoncpp github 中的建议进行安装

cmake -DCMAKE_BUILD_TYPE=debug -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF \
      -DARCHIVE_INSTALL_DIR=. -G "Unix Makefiles"
Run Code Online (Sandbox Code Playgroud)

但它给出了这个错误

CMake Error: The source directory "/opt/jsoncpp-src-0.5.0" does not
appear to contain CMakeLists.txt. Specify --help for usage, or press
the help button on the CMake GUI.
Run Code Online (Sandbox Code Playgroud)
  • Codeblocks 用作 C++ 开发 IDE

compiling code-blocks c++ software-installation 14.04

6
推荐指数
1
解决办法
1万
查看次数

最新的 Avogadro 版本 - 发现无法在 Ubuntu 14.04 上安装

我在 Ubuntu 14.04 上,尝试安装最新版本的 Avogadro(因为软件中心中的版本显示问题),当我到达时make,它会打印所有这些错误:

[ 98%] Linking CXX shared module ../../../lib/animationextension.so
[ 98%] Linking CXX shared module ../../../lib/povrayextension.so
In file included from /usr/local/include/eigen2/Eigen/Core:102:0,
                 from /home/jake/src/avogadro/libavogadro/src/extensions/vrmldialog.h:33,
                 from /home/jake/src/avogadro/libavogadro/src/extensions/vrmldialog.cpp:25:
/usr/local/include/eigen2/Eigen/src/Core/util/Memory.h: In function ‘Integer Eigen::ei_alignmentOffset(const Scalar*, Integer)’:
/usr/local/include/eigen2/Eigen/src/Core/util/Memory.h:232:51: warning: typedef ‘Packet’ locally defined but not used [-Wunused-local-typedefs]
   typedef typename ei_packet_traits<Scalar>::type Packet;
                                                   ^
In file included from /usr/local/include/eigen2/Eigen/Core:102:0,
                 from /home/jake/build/avogadro/libavogadro/src/extensions/../../../../../src/avogadro/libavogadro/src/extensions/vrmldialog.h:33,
                 from /home/jake/build/avogadro/libavogadro/src/extensions/../../../../../src/avogadro/libavogadro/src/extensions/vrmlextension.h:28,
                 from /home/jake/build/avogadro/libavogadro/src/extensions/moc_vrmlextension.cxx:9:
/usr/local/include/eigen2/Eigen/src/Core/util/Memory.h: In function ‘Integer Eigen::ei_alignmentOffset(const Scalar*, Integer)’:
/usr/local/include/eigen2/Eigen/src/Core/util/Memory.h:232:51: warning: typedef ‘Packet’ locally defined but not used [-Wunused-local-typedefs] …
Run Code Online (Sandbox Code Playgroud)

package-management compiling cmake software-installation

6
推荐指数
0
解决办法
557
查看次数

配置:错误:找不到 jpeglib.h

我正在尝试在 Ubuntu 14.04 上编译 php 5.3.29。我收到一个错误 -configure: error: jpeglib.h not found.

这是我的 options.sh :

#!/bin/bash
# You can override config options very easily.
# Just create a custom options file; it may be version specific:
# - custom-options.sh
# - custom-options-5.sh
# - custom-options-5.3.sh
# - custom-options-5.3.1.sh
#
# Don't touch this file here - it would prevent you to just "svn up"
# your phpfarm source code.

version=$1
vmajor=$2
vminor=$3
vpatch=$4

#gcov='--enable-gcov'
configoptions="\
--enable-bcmath \
--with-mysqli \
--with-png …
Run Code Online (Sandbox Code Playgroud)

php compiling

6
推荐指数
1
解决办法
2万
查看次数

尝试为 HFS+ 安装 Paragon ufsd 专业驱动程序时,内核配置无效错误

简短的问题:

在运行 Paragon UFSD 驱动程序的 install.sh Skript 时,我收到错误消息:

 ERROR: Kernel configuration is invalid."; 
\include/generated/autoconf.h or include/config/auto.conf are missing."$
 Run 'make oldconfig && make prepare' on kernel src to fix it.";      \
Run Code Online (Sandbox Code Playgroud)

我如何运行“make oldconfig && make prepare”,这有意义吗?

免责声明:

我知道这个问题是在 NVIDIA 驱动程序的上下文中被问到的,但它是通过建议其他安装 NVIDIA 的方法而不是告诉如何运行 make 命令来回答的(安装 NVIDIA 驱动程序:Error Run 'make oldconfig && make prepare' on kernel src to fix它。”)。在另一个问题中,问题已解决,但提出问题的人不记得是如何解决的(“错误:内核配置无效”)。

我的问题的背景:

我现在尝试了几天来安装 Paragon-147-PRE_NTFS_Linux_9.4_Pro UFSD 驱动程序,以获得完整的读写 NTFS 和 HFS+ 文件系统支持。驱动程序正式支持 Ubuntu 16.04LTS。在处理完我的旧 Linux 安装后,我使用全新安装的 Ubuntu 16.04.2LTS(从 UBUNTU 网站下载),除了标准安装之外什么都没有,尽管我在三重引导系统(Windows7、elementary、Ubuntu)上运行它,如果这很重要。

我安装了 build-essentials、dkms …

compiling kernel dkms drivers

6
推荐指数
2
解决办法
3万
查看次数

如何将 ruby​​ 版本更新到 2.5.1?

当我尝试通过以下方式打开 metasploit 时

msfconsole
Run Code Online (Sandbox Code Playgroud)

它显示了一个错误

rbenv: version `2.5.1' is not installed (set by /opt/metasploit-framework/.ruby-version)
Run Code Online (Sandbox Code Playgroud)

我试过

rbenv install rbx-2.5.1
Run Code Online (Sandbox Code Playgroud)

它的显示

BUILD FAILED (Ubuntu 16.04 using ruby-build 20160602-19-g0c35180)

Inspect or clean up the working tree at /tmp/ruby-build.20180421085159.19307
Results logged to /tmp/ruby-build.20180421085159.19307.log

Last 10 log lines:
Updating files in vendor/cache
Bundle complete! 5 Gemfile dependencies, 11 gems now installed.
Bundled gems are installed into `./vendor/bundle`
Checking gcc: found
Checking g++: found
Checking bison:./configure:1430:in ``': No such file or directory - bison (Errno::ENOENT)
    from …
Run Code Online (Sandbox Code Playgroud)

ruby apt compiling software-installation metasploit

6
推荐指数
1
解决办法
5422
查看次数

由于缺少“二进制通用”配方,内核自定义构建不起作用

我在Ubuntu 18.04 上,我正在尝试通过本指南本指南构建我自己的内核。

不幸的是命令:

AUTOBUILD=1 fakeroot debian/rules binary-headers binary-generic binary-perarch skipdbg=false
Run Code Online (Sandbox Code Playgroud)

给我这个错误:

dh binary-headers
dh: Unknown sequence binary-headers (choose from: binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep)
debian/rules:35: recipe for target 'binary-headers' failed
make: *** [binary-headers] Error 2
Run Code Online (Sandbox Code Playgroud)

我怀疑指南没有更新,我搜索了很多关于规则脚本接收列表的内容,但我没有找到任何有用的东西。

有人可以帮助我吗?

谢谢!

编辑 1允许的接收者是,binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep但这些尚未产生带有嵌入式调试符号的内核。

编辑 2 Debian 规则存入/usr/src/linux-source-{KERNEL-VERSION}/debian/rules.d并存入0-common-vars.mk您可以找到所有允许的开关。

debug compiling debian kernel

6
推荐指数
1
解决办法
633
查看次数

尝试编译包时出现“找不到 libcurl”错误消息

我正在尝试编译一个包,在 ./configure 步骤,我得到:

checking for LIBCURL... configure: error: Package requirements (libcurl >=  7.15.4) were not met:

No package 'libcurl' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBCURL_CFLAGS
and LIBCURL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Run Code Online (Sandbox Code Playgroud)

附加信息 :

    $ ./configure
checking whether make supports nested variables... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build …
Run Code Online (Sandbox Code Playgroud)

compiling configure

6
推荐指数
1
解决办法
2万
查看次数