我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 的合适方法是什么?
因为我想使用存储库中的 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. 我可以做什么来编译这个插件?
如何在 Ubuntu 11.10 中安装ktechlab?

我需要安装他们网站上可用的最新版本的 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 还没有这些版本的软件包。
从源 ( ./configure && make && make install)安装和使用安装有什么区别apt-get?
我能想到这些:
apt-get 版本通常更稳定,选择更少,而从源安装时我们可以选择特定版本。apt-get 可以自动解决依赖关系,可以轻松更新/卸载软件,并具有其他一些易于管理的优点。apt-get 安装路径遵循一致的模式,并有一些其他约定,方便SA。但还有更多吗?
apt-get对于某些软件,如php和,从源安装可以获得比通过安装更好的性能mysql吗?总之,在什么情况下我应该选择从源安装而不是apt-get为了获得该软件的特定版本?
谢谢。
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 上从源代码构建时出现此错误。
-谢谢!
类似的问题已被问到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)
在运行命令时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)
谁能帮我?
我有一个 C# 代码,需要使用终端编译、执行和反编译。
我怎么能这样做?
我正在关注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。