我正在尝试编译一个包含<iostream>头的简单c++代码。令人惊讶的是,我正面临着我以前从未遇到过的错误。如果删除了<iostream>头,一切都会正常工作。
代码:
#include <iostream>
int main(){
return 0;
}
编译错误:
$ g++ temp.cpp
In file included from /usr/lib/gcc/x86_64-linux-gnu/7/include/stdint.h:9:0,
from /usr/include/c++/7/cstdint:4
我不能执行任何安装,显然也没有升级。
例如,我想安装ukuu。
错误消息如下:
sudo apt install ukuu
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
aptitude aptitude-common aria2 libcwidget3v5
Suggested packages:
aptitude-doc-en |
这个问题是在这里提出的,(错误地)结束为一个副本,与一个旧的CMAKE问题的链接。可能收尾的人没有正确阅读这个问题。这与普通的CMake配置没有任何关系,除非您希望在管理技术源代码中配置CMake使用。
事实上,运行的快照失败了。运行它时--调试为您提供了一个快照/多通道文件系统的根控制台,whoami说是root,但是您只看到了周围的快照(例如,没有看到您的家)。不管怎样,错误上说
CMake Error: The current CMakeCache.txt directory /root/parts/xxxxx/build/build/linux/release/CMakeCache.
当我跑的时候
mkdir ../../bin/Release_Linux/Resources
我犯了个错误
$ mkdir ../../bin/Release_Linux/Resources
mkdir: cannot create directory ‘../../bin/Release_Linux/Resources’: No such file or directory
或者只是
mkdir Release_Linux/Resources
mkdir: cannot create directory ‘Release_Linux/Resources’: No such file or d
在从gcc-7.1更新到gcc-7.2之后,我收到了很多关于标准库头文件未声明包含的错误。例如
$ bazel build //test:my_test
ERROR: /home/haining/my_project/BUILD:39:1: undeclared inclusion(s) in rule '//test:my_test':
this rule is missing dependency declarations for the following files included by 'test/test_range.cpp':
'/h
我在一个serverless-framework项目中同时使用sharp包和serverless-bundle。使用这个custom.bundle.packagerOptions.scripts脚本:rm -rf node_modules/sharp && npm install --arch=x64 --platform=linux --target=10.15.0 sharp,我可以很好地运行和部署代码。
当我尝试对触及sharp包的代码运行测试时,我得到以下错误:'linux-x64' binaries cannot be used on the '
我刚从这里下载了Sage的tarball:http://mirrors.mit.edu/sage/linux/64bit/index.html
然后我用bunzip2解压缩它,它创建了一个文件夹/SageMath,所以我把它cd到其中。然后我运行sudo make,它告诉我我不能把它作为根,
configure: error: You cannot build Sage as root, switch to an unpriviledged user
所以我只运行make,它就会抱怨
./configure: line 2107: config.log: Permission denied
.
出于测试目的,我创建了以下目录。
user@linux:~$ mkdir dir0{1..3}
user@linux:~$ ls -l
total 12K
drwxr-xr-x 2 user user 4.0K Mei 31 10:45 dir01
drwxr-xr-x 2 user user 4.0K Mei 31 10:45 dir02
drwxr-xr-x 2 user user 4.0K Mei 31 10:45 dir03
user@linux:~$
然后,我用find -exec删除了它
user@linux:~$ find -type d -exec rmdir {}
我正在尝试使用以下方法安装MySQL:
sudo apt install mysql-server
在这个过程的最后,我得到了以下信息:
E: Sub-process /usr/bin/dpkg returned an error code (1)
整个投入/产出:
ubuntu@ubuntu:~$ sudo apt install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages