我一直在尝试编译 VNote,但找不到或找到任何合适的方法来安装 qmake。如何安装最新版本?
SriHarsha
Asked:
2020-09-28 21:33:06 +0800 CST
我目前使用的是 Ubuntu 18.04,我需要 MATLAB 的 gcc 4.8。所以我尝试使用安装 gcc-4.8
$ sudo apt-get install gcc-4.8
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_4.15.0-117.118_amd64.deb 404 Not Found [IP: 2403:8940:3:1::f 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
所以我运行了命令
sudo apt-get update
我没有显示任何错误,但运行 gcc version 命令给出了这个
$ gcc -v
Command 'gcc' not found, but can be installed with:
sudo apt install gcc
以前我曾经有 7.5,但现在没有了。
CiaranWelsh
Asked:
2020-07-03 00:54:09 +0800 CST
Jos
Asked:
2020-03-24 17:34:57 +0800 CST
我已经下载了 Scout-app。但我无法让它工作。文件 Scout-app 具有正确的权限,并且是可执行的。我如何让它工作?
thiagoveloso
Asked:
2019-05-25 19:32:21 +0800 CST
我有一台带有 Ubuntu Server 18.04 的小型服务器。我在这台机器上安装了 GCC 和 MPICH 编译器:
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.4.0-1ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04)
和
mpicc -v
mpicc for MPICH version 3.3a2
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.4.0-1ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04)
但是我需要安装一个更新的 GNU 编译器,这很容易实现:
sudo apt-get install gcc-8
但在这种情况下,我需要 MPICH 编译器(mpicc、mpic++ 等)来使用 GCC- 8而不是 GCC- 7。
我怎样才能做到这一点?
user854605
Asked:
2018-08-25 12:01:53 +0800 CST
最近我在 Linux 中使用终端编写了更多代码,以更深入地了解编程。现在我正在尝试使用以下命令自动化编译过程:
find . -type f -mmin -1 -name "*.c" | gcc -o output.o -xc -
它基本上应该找到带有结尾的最新修改文件"*.c"
并编译它。但是我总是收到以下错误:
<stdin>:1:1: error: expected identifier or ‘(’ before ‘.’ token
任何人都可以帮助我并解释我做错了什么或告诉我一个替代方案吗?
非常感谢您,祝您有愉快的一天!
einpoklum
Asked:
2018-06-10 03:09:33 +0800 CST
Haroldo Payares Salgado
Asked:
2018-02-25 08:14:12 +0800 CST
当我检查cpp版本时,它向我显示了这条消息:
cpp -v
Using built-in specs.
COLLECT_GCC=cpp
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
7.3.0-1ubuntu1~16.04.york1' --with-bugurl=file:///usr/share/doc/gcc-
7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++
--prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-
prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-
libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify
--enable-libmpx --enable-plugin --with-system-zlib --with-target-system-
zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-
arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-
multilib --with-tune=generic --enable-offload-targets=nvptx-none
--without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.3.0 (Ubuntu 7.3.0-1ubuntu1~16.04.york1)
COLLECT_GCC_OPTIONS='-E' '-v' '-mtune=generic' '-march=x86-64'
/usr/lib/gcc/x86_64-linux-gnu/7/cc1 -E -quiet -v -imultiarch x86_64-linux-
gnu - -mtune=generic -march=x86-64 -fstack-protector-strong -Wformat -
Wformat-security
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/7/include"
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/7/include-
fixed"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/7/../../..
/../x86_64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/include/x86_64-linux-gnu
/usr/include
End of search list.
此消息是错误还是警告?,我能做些什么来解决它?
Zachary Fields
Asked:
2018-02-21 14:19:57 +0800 CST
edtwardy
Asked:
2018-02-12 17:22:32 +0800 CST