我一直看到有人说make; make install不好。我似乎找不到任何人有合理的解释。
那么,为什么不好呢?或者为什么人们倾向于说“这很糟糕,请改用清除安装”或类似的话?
我试图在本地安装一个用 C++ 编写的程序。我已经下载了该程序,并试图按照程序指令的指示使用“make”命令来编译该程序。但是,当我这样做时,我收到此错误:
/usr/include/stdc-predef.h:30:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
Run Code Online (Sandbox Code Playgroud)
在互联网上环顾四周,有些人似乎通过以下方式解决了这个问题
sudo apt-get install libc6-dev-i386
Run Code Online (Sandbox Code Playgroud)
我检查了这个包是否已安装,但没有。当我尝试安装它时,我得到
E: Unable to locate package libc6-dev-i386
Run Code Online (Sandbox Code Playgroud)
我已经跑了
sudo apt get update
Run Code Online (Sandbox Code Playgroud)
我确定这是一个新手问题,但任何帮助表示赞赏,我正在运行 13.10 32 位。
更新:我尝试了在类似错误中发现的其他建议。我所管理的只是一个不同但相似的错误。这是我得到的。
Geoffrey@Geoffrey-Latitude-E6400:/usr/local/src/trinityrnaseq_r2013_08_14$ make
Using gnu compiler for Inchworm and Chrysalis
cd Inchworm && (test -e configure || autoreconf) \
&& ./configure --prefix=`pwd` && make install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for …Run Code Online (Sandbox Code Playgroud) 当我使用命令 make menuconfig 时,它会显示
sharath@sharath:~/openwrt$ make menuconfig
Checking 'working-make'... ok.
Checking 'case-sensitive-fs'... ok.
Checking 'getopt'... ok.
Checking 'fileutils'... ok.
Checking 'working-gcc'... ok.
Checking 'working-g++'... failed.
Checking 'ncurses'... failed.
Checking 'zlib'... failed.
Checking 'gawk'... failed.
Checking 'flex'... failed.
Checking 'unzip'... ok.
Checking 'bzip2'... ok.
Checking 'patch'... ok.
Checking 'perl'... ok.
Checking 'python'... ok.
Checking 'wget'... ok.
Checking 'gnutar'... ok.
Checking 'svn'... ok.
Checking 'gnu-find'... ok.
Checking 'getopt-extended'... ok.
Checking 'non-root'... ok.
Build dependency: Please install the GNU C++ Compiler (g++).
Build …Run Code Online (Sandbox Code Playgroud) 每当我尝试“制作”文件时都会出错,我在输入“制作”之前这样做了:
tar xjf xarchiver-0.5.4.tar.bz2
cd ./xarchiver-0.5.4
./configure
Run Code Online (Sandbox Code Playgroud)
配置命令:
thomas@thomas-pc:~/Downloads/xarchiver-0.5.4$ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default …Run Code Online (Sandbox Code Playgroud) 我不明白编译 openWRT 的命令之一。
make -j N V=m编译openWRT时命令的含义是什么?
例如,make -j8 V=99。
我正在尝试在 Ubuntu 上构建 rtl wifi 驱动程序,当我使用make命令时,它给了我这条消息
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-50-generic'
arch/x86/Makefile:156: CONFIG_X86_X32 enabled but no binutils support
arch/x86/Makefile:245: *** You are building kernel with non-retpoline compiler, please update your compiler.. Stop.
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-50-generic'
Makefile:58: recipe for target 'all' failed
make: *** [all] Error 2
Run Code Online (Sandbox Code Playgroud) 我在我的机器上安装 OpenCV 时遇到问题。我运行 Ubuntu 12.04。
我遵循了本指南:http : //www.raben.com/book/export/html/3,以便在我的 linux 机器上安装 OpenCV 2.4.3。但是,当我执行
make
Run Code Online (Sandbox Code Playgroud)
命令,“制作”在14%处停止,返回以下错误
13%] Built target opencv_imgproc
[ 13%] Generating qrc_window_QT.cxx
[ 14%] Generating src/moc_window_QT.cxx
moc: Cannot open options file specified with @
Usage: moc [options] <header-file>
-o<file> write output to file rather than stdout
-I<dir> add dir to the include path for header files
-E preprocess only; do not generate meta object code
-D<macro>[=<def>] define macro, with optional definition
-U<macro> undefine macro
-i do not generate …Run Code Online (Sandbox Code Playgroud) 我正在尝试安装WaoN。当我运行时,sudo make -f Makefile.waon它给我以下错误:
gcc -Wall -march=pentium -O3 -ffast-math `pkg-config --cflags fftw3` `pkg-config --cflags sndfile` -c -o main.o main.c
Package fftw3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `fftw3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'fftw3' found
Package sndfile was not found in the pkg-config search path.
Perhaps you should add the directory containing `sndfile.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sndfile' found
main.c:31:19: fatal error: …Run Code Online (Sandbox Code Playgroud) 我正在尝试安装 reaver 1.4,但是当我运行时,我./configure ; make
在最后收到此消息
int ret_val = EXIT_FAILURE, r = 0;
Run Code Online (Sandbox Code Playgroud)
我已经搜索了很多但找不到答案,任何帮助将不胜感激。如果这已经得到回答,我很抱歉,我只是没有找到它。
如果我通过执行安装软件:
./configure
make
make install
Run Code Online (Sandbox Code Playgroud)
有没有通用的方法来卸载它(比如sudo apg-get remove)?