标签: compiling

如果我从源代码构建一个包,我该如何卸载或完全删除?

我使用源代码构建了一个包,如下所示:

./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib --with-package-name="Myplugin" --with-package-origin="http://www.ubuntu.org/" --enable-gtk-doc --disable-static
make
make install
Run Code Online (Sandbox Code Playgroud)

但不幸的是,我发现它是最新版本,并且有很多错误,所以我需要删除它/卸载它。但我怎么能这样做呢?我试过了,make clean; make uninstall但我仍然看到它存在:

# pkg-config --list-all | grep Myplugin
myplugin-....
$ ls /usr/lib/myplugin/libXYZ.so
exist....
Run Code Online (Sandbox Code Playgroud)

你现在如何删除这个?

package-management uninstall compiling

184
推荐指数
4
解决办法
27万
查看次数

如何安装最新版本的 node.js?

如何在 Ubuntu 上安装最新的node.js?我环顾四周,什么也没找到。是否有 Ubuntu 包node.js,还是我必须自己编译?

compiling nodejs software-installation

177
推荐指数
9
解决办法
25万
查看次数

如何在 Ubuntu 上编译 .java 文件?

如何编译 .java 文件?

我需要什么程序?如果我需要 Java JDK,我还需要帮助安装它。我对 Ubuntu 很陌生,所以我需要安装任何程序,我都需要一个关于如何安装它们的教程。

compiling java

115
推荐指数
4
解决办法
91万
查看次数

如何编译一个python文件?

我已经开始学习 python,我也是 Ubuntu 的新用户。我需要知道编译.py文件的方法。我已经尝试过使用命令

python "hello.py"
Run Code Online (Sandbox Code Playgroud)

编译python的其他方法是什么?

python compiling

66
推荐指数
5
解决办法
66万
查看次数

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

我想./configure链接到一个库和一些包含文件。我的库/home/foo/sw/lib/存储在/home/foo/sw/include.

./configure --help 抛出以下内容:

一些有影响的环境变量:

  CC           C compiler command
  CFLAGS       C compiler flags
  LDFLAGS      linker flags, e.g. -L<lib dir> if you have libraries in a 
               nonstandard directory <lib dir>
  LIBS         libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS     (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 
               you have headers in a nonstandard directory <include dir>
  CPP          C preprocessor
Run Code Online (Sandbox Code Playgroud)

我尝试了各种组合:

./configure --prefix=/home/foo/sw -I</home/foo/sw/include> -L</home/foo/sw/lib/>
./configure --prefix=/home/foo/sw -I=/home/foo/sw/include -L=/home/foo/sw/lib/
./configure --prefix=/home/foo/sw -I/home/foo/sw/include -L/home/foo/sw/lib/
etc..
Run Code Online (Sandbox Code Playgroud)

但我似乎无法正确使用语法。如果有人可以帮助我,那将不胜感激。谢谢!

compiling

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

编译 OpenGL 程序(缺少 GL/gl.h)

我是一个完整的 Linux/Ubuntu 菜鸟,所以我为这个问题的任何愚蠢部分或后续问题道歉。

我正在尝试将我的软件工程班组编写的程序写入我的家用计算机。在学校,我们有 Linux,它会在那里编译和运行。我下载了 VMWare,在虚拟机上安装了 Ubuntu,现在正在尝试打开我的程序。

然而,当我尝试运行我的 make 文件时,我收到一个错误消息

gcc -I../include -pthread -O1 -c rain.c
In file included from rain.c:19:0:
../include/GL/glfw.h:176:21: fatal error: GL/gl.h: No such file or directory
compilation terminated.
make: *** [rain.o] Error 1
Run Code Online (Sandbox Code Playgroud)

有人会碰巧知道为什么在我学校的计算机上找不到这个文件吗?我需要做什么才能下载它或将它放在正确的位置?

compiling opengl

64
推荐指数
2
解决办法
14万
查看次数

cmake 因“CMake 错误:您的 CXX 编译器:未找到“CMAKE_CXX_COMPILER-NOTFOUND”而失败。”

jonquil@jonquil-Satellite-L755D:~/Downloads/akonadi-googledata-1.2.0/build$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error at /usr/share/cmake-2.8/Modules/FindKDE4.cmake:98 (MESSAGE):
  ERROR: cmake/modules/FindKDE4Internal.cmake not found in
  /home/jonquil/.kde/share/apps;/usr/share/kubuntu-default-settings/kde4-profile/default/share/apps;/usr/share/kde4/apps
Call Stack (most …
Run Code Online (Sandbox Code Playgroud)

compiling

59
推荐指数
3
解决办法
18万
查看次数

将软件包安装到本地目录?

我想安装软件包,类似于apt-get install <foo>但:

  1. 没有sudo,并且
  2. 进入本地目录

本练习的目的是在我的持续集成服务器中隔离独立构建。

如果需要的话,我不介意从源代码编译,但显然我更喜欢最简单的方法。我apt-get source --compile <foo>这里提到的那样尝试过,但我无法让它适用于像 autoconf 这样的包。我收到以下错误:

dpkg-checkbuilddeps: Unmet build dependencies: help2man

我在本地目录中编译了 help2man,但我不知道如何通知 apt-get。有任何想法吗?

更新:我在https://askubuntu.com/a/350/23678 上找到了一个几乎有效的答案。问题在于它需要 sudo。问题是我不知道如何解决依赖关系。我必须说,看起来吸引人。是否有不需要 sudo 的等效命令?chrootapt-get sourcechroot

apt compiling

54
推荐指数
3
解决办法
12万
查看次数

“致命错误:openssl/opensslv.h:没有这样的文件或目录”编译mitmproxy

我正在尝试通过 pip 安装 mitmproxy 包,如下所示:

$ sudo pip install mitmproxy
Run Code Online (Sandbox Code Playgroud)

它以以下错误消息终止:

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o

build/temp.linux-x86_64-2.7/_openssl.c:391:30: fatal error: openssl/opensslv.h: No such file or directory

compilation terminated.

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
  Can't roll back cryptography; was not uninstalled
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-jvLTVf/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-DrY4DI-record/install-record.txt --single-version-externally-managed --compile failed with error code …
Run Code Online (Sandbox Code Playgroud)

compiling gcc pip

54
推荐指数
2
解决办法
17万
查看次数

在 $PATH 中找不到可接受的 C 编译器

我想安装一个名为speech_tools-2.1-release.tar.gz. ./configure在这个包中运行命令后,它向我显示一条消息:

Configure: error: no acceptable C compiler found in $PATH  
See 'config.log' for more details  
Run Code Online (Sandbox Code Playgroud)

我该怎么办?

compiling c install-from-source

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