标签: compiling

在 Ubuntu 18.04 上安装 gcc 5

gcc 7.3.0在 Ubuntu 18.04 上。但是我正在开发一个需要低于版本 6 的 gcc 的项目。当我尝试使用 安装 gcc 5.4 时sudo apt install gcc-5.4,出现此错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package gcc-5.4
E: Couldn't find any package by glob 'gcc-5.4'
E: Couldn't find any package by regex 'gcc-5.4'  
Run Code Online (Sandbox Code Playgroud)

安装 gcc 5.4 的合适方法是什么?

compiling gcc 18.04

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

如何编译 gedit LaTeX 插件?

因为我想使用存储库中的 Gedit 3.2 不幸不可用的 Gedit LaTeX 插件,所以我想自己编译它。您可以在http://git.gnome.org/browse/gedit-latex上获得的最新版本确实支持 GNOME 3 的 Gedit。

在文档中它说:

由于读取设置的限制,插件当前必须安装在与 gedit 相同的前缀中。例如,如果您使用发行版中的 gedit 3,则需要执行

./configure --prefix=/usr make sudo make install

如果您使用的是 64 位发行版,则还需要传递 --libdir=/usr/lib64./configure脚本。

这就是为什么我cd进入包含代码的目录,并尝试运行./configure --prefix=/usr --libdir=/usr/lib64. 不幸的是,这不起作用,并给出错误消息:

bash: ./configure: No such file or directory
Run Code Online (Sandbox Code Playgroud)

检查文件夹后,确实没有文件configure,而只有configure.ac. 我可以做什么来编译这个插件?

gedit latex compiling

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

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

安装无法通过 apt 获得的 Apache、Php、Mysql 最新版本

我需要安装他们网站上可用的最新版本的 apache、php 和 mysql,但问题是 apt 存储库还没有这些更新版本。

我想要的版本:Apache 2.4.4、PHP 5.4.16 和 MySQL 5.6.12。

可通过 apt 获得的版本:Apache 2.2.22、PHP 5.4.15、MySQL 5.5.31。

Ubuntu 不支持上述版本的软件包。请,我需要帮助!谢谢!

PS Tasksel 还没有这些版本的软件包。

mysql php compiling apache2

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

from source 和 apt-get 的安装区别?

从源 ( ./configure && make && make install)安装和使用安装有什么区别apt-get

我能想到这些:

  • apt-get 版本通常更稳定,选择更少,而从源安装时我们可以选择特定版本。
  • apt-get 可以自动解决依赖关系,可以轻松更新/卸载软件,并具有其他一些易于管理的优点。
  • apt-get 安装路径遵循一致的模式,并有一些其他约定,方便SA。

但还有更多吗?

  • apt-get对于某些软件,如php和,从源安装可以获得比通过安装更好的性能mysql吗?
  • 其他一些区别?

总之,在什么情况下我应该选择从源安装而不是apt-get为了获得该软件的特定版本?

谢谢。

package-management apt compiling install-from-source

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

尝试从源代码安装 openssl-1.0.1g 时出现错误 255

installing man1/cms.1
cms.pod around line 457: Expected text after =item, not a number
cms.pod around line 461: Expected text after =item, not a number
cms.pod around line 465: Expected text after =item, not a number
cms.pod around line 470: Expected text after =item, not a number
cms.pod around line 474: Expected text after =item, not a number
POD document had syntax errors at /usr/bin/pod2man line 71.
make: *** [install_docs] Error 255
Run Code Online (Sandbox Code Playgroud)

尝试在 ubuntu 14.04 上从源代码构建时出现此错误。

-谢谢!

compiling install-from-source openssl

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

对符号“exp@@GLIBC_2.2.5”的未定义引用

类似的问题已被问到here,但没有得到答复。

我有一个Levenberg-Marquardt(从某处下载)的实现,我正在尝试编译它,但出现以下错误。

gauravloj@vertex:~/Documents/source_code/non-rigid_registration/Gauss_newton/levmar-2.6$ make
[ 87%] Built target levmar
Linking C executable lmdemo
/usr/bin/ld: CMakeFiles/lmdemo.dir/lmdemo.c.o: undefined reference to symbol 'exp@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [lmdemo] Error 1
make[1]: *** [CMakeFiles/lmdemo.dir/all] Error 2
make: *** [all] Error 2
Run Code Online (Sandbox Code Playgroud)

在许多站点,给出的解决方案是添加一些标志(例如这里这里)。但他们都没有为我工作。

是 Makefile,是 CMakeLists.txt,是 CMakeCache.txt。

compiling make ld cmake

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

nvcc 致命:不支持的 GPU 架构“compute_20”

在运行命令时make pycaffe,我遇到了以下错误:

NVCC src/caffe/solvers/adadelta_solver.cu nvcc fatal   : Unsupported
gpu architecture 'compute_20' Makefile:594: recipe for target
'.build_release/cuda/src/caffe/solvers/adadelta_solver.o' failed make:
*** [.build_release/cuda/src/caffe/solvers/adadelta_solver.o] Error 1

System Information
------------------

OS: ubuntu: 16.10

CUDA 8.0

cuDNN: 6.0 

CUDA_ARCH: CUDA_ARCH := 

         -gencode arch=compute_20,code=sm_20 \
        -gencode arch=compute_20,code=sm_21 \
        -gencode arch=compute_30,code=sm_30 \
        -gencode arch=compute_35,code=sm_35 \
        -gencode arch=compute_50,code=sm_50 \
        -gencode arch=compute_52,code=sm_52 \
        -gencode arch=compute_60,code=sm_60 \
        -gencode arch=compute_61,code=sm_61 \
        -gencode arch=compute_61,code=compute_61
Run Code Online (Sandbox Code Playgroud)

谁能帮我?

nvidia compiling cuda

11
推荐指数
2
解决办法
4万
查看次数

如何在 Ubuntu 终端中编译、运行和反编译 C# 代码?

我有一个 C# 代码,需要使用终端编译、执行和反编译。

我怎么能这样做?

mono command-line compiling c#

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

无法在 Ubuntu 20.04 上编译 FFmpeg

我正在关注FFmpeg 的这个编译指南。编译所有必需的依赖项后,我在最后一节中收到以下错误。

ERROR: gnutls not found using pkg-config
Run Code Online (Sandbox Code Playgroud)

当我运行如下配置命令时会发生此错误:

PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
  --prefix="$HOME/ffmpeg_build" \
  --pkg-config-flags="--static" \
  --extra-cflags="-I$HOME/ffmpeg_build/include" \
  --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
  --extra-libs="-lpthread -lm" \
  --bindir="$HOME/bin" \
  --enable-gpl \
  --enable-gnutls \
  --enable-libaom \
  --enable-libass \
  --enable-libfdk-aac \
  --enable-libfreetype \
  --enable-libmp3lame \
  --enable-libopus \
  --enable-libvorbis \
  --enable-libvpx \
  --enable-libx264 \
  --enable-libx265 \
  --enable-nonfree
Run Code Online (Sandbox Code Playgroud)

我正在全新安装的 Ubuntu 20.04 上编译 FFmpeg。

compiling ffmpeg pkg-config gnutls 20.04

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