我的操作系统是Arch Linux,程序test.c很简单:
# cat test.c
#include <stdio.h>
int main(void) {
printf("Hello world!\n");
}
Run Code Online (Sandbox Code Playgroud)
不带选项编译-g,使用file命令查看可执行文件信息:
# gcc test.c
# file a.out
a.out: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=c7a538046222b5209d2daafbfc246de341a652d9, not stripped, with debug_info
Run Code Online (Sandbox Code Playgroud)
该file命令输出“ not stripped, with debug_info”,但我在编译期间不使用-g选项。用于gdb调试a.out:
# gdb a.out
GNU gdb (GDB) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU …Run Code Online (Sandbox Code Playgroud) Zen Archlinux我正在尝试在我的内核版本上运行 hashcat 4.15.4-1-zen。我有一个 NVIDIA Geforce 920MX 和一个 Intel i6189DU。我安装了最新的nvidia-dkms驱动程序和opencl-nvidia软件包。我还安装了最新的 Hashcat 版本。
当我运行 hashcat 命令时,我收到此错误:clGetPlatformIDs(): CL_PLATFORM_NOT_FOUND_KHR。我使用一个工具来确定可用的 openCL 平台clinfo,输出仅显示我的 CPU 平台,而不显示我的 GPU,但该hashcat命令仍然输出相同的错误。
有什么帮助吗?
我在基于 arch 的系统上使用 xmonad。但升级后我无法通过编译我的 xmonad.hs 文件
\n\n$ xmonad --recompile
我似乎在 xmonad 的每个模块上都遇到错误,甚至 import XMonad 似乎也不起作用。\n如果有人以某种方式解决了这个问题,请告诉我。
\n\nError detected while loading xmonad configuration file: \n/home/arya/.xmonad/xmonad.hs\n\nxmonad.hs:2:1: error:\n Could not find module \xe2\x80\x98XMonad\xe2\x80\x99\n Use -v to see a list of the files searched for.\n |\n2 | import XMonad\n | ^^^^^^^^^^^^^\n\nxmonad.hs:3:1: error:\n Could not find module \xe2\x80\x98XMonad.Config.Mate\xe2\x80\x99\n Use -v to see a list of the files searched for.\n |\n3 | import XMonad.Config.Mate\n | ^^^^^^^^^^^^^^^^^^^^^^^^^\n\nxmonad.hs:5:1: error:\n Could not find module \xe2\x80\x98XMonad.StackSet\xe2\x80\x99\n …Run Code Online (Sandbox Code Playgroud) 我正在尝试在 Arch Linux 操作系统上使用 Genymotion 和虚拟机启动 Android 模拟器。
VirtualBox 是从社区安装的,Genymotion 是从 AUR 安装的。当我启动我创建的自定义虚拟设备时,它会在 Android 徽标出现之前立即关闭到启动状态。它不显示错误消息。
我已经重新安装了所有内容,从头开始一次又一次地尝试。
当我这样做时:sudo vboxreload从/usr/lib/virtualbox
它说:Loading modules: vboxnetadp vboxnetflt vboxpci vboxdrv
virtualbox-host-dkms未安装。
virtualbox-host-modules-arch已安装。(5.2.14-1)
Use Host GPU虚拟设备设置中的选项未选中。
VirtualBox 屏幕上出现错误消息:
我的 Genymotion 日志来自genymotion-player.log于Genymotion/deployed/custom-phone
2018-07-11T15:32:53+03:00 [Genymotion Player:13067] [warning] "Cannot init install path settings (status=1) /opt/genymotion/genymotion.ini"
2018-07-11T15:32:53+03:00 [Genymotion Player:13067] [debug] Proxy configuration: no proxy used
2018-07-11T15:32:53+03:00 [Genymotion Player:13067] [debug] Host date and time: "11 Jul 2018 15:32:53 +0300"
2018-07-11T15:32:53+03:00 [Genymotion Player:13067] …Run Code Online (Sandbox Code Playgroud) 截至目前,我的 archlinux 系统需要当前版本的 gcc (8.3) 以及 gcc 7.2 和 gcc 5.5(在其他路径中)。
我正在尝试编译源代码,如下所示:
$ ./contrib/download-prerequisites
Run Code Online (Sandbox Code Playgroud)
在构建目录中:
$ ../gcc-5.5.0/configure --prefix=/home/mjonyh/bin/gcc/5.5.0 --disable-multilib --enable-languages=c,c++,fortran
Run Code Online (Sandbox Code Playgroud)
比发现错误
sys/ustat.h: no such file or directory
Run Code Online (Sandbox Code Playgroud)
已安装: binutils gcc-libs libmpc gcc-ada libmpc dejagnu inetutils lib32-gcc-libs doxygen gcc-ada lib32-glibc
更新:我通过手动注释掉gcc-xxx/libsanitizer/sanitizer-common/sanitizer-platform-limits-posix.cc中的 ustat.h解决了该问题(行号 157 和 250)。因为archlinux 弃用了glibc 中的ustat.h。
Manjaro 现在附带最新版本的 Python ( 3.8 )。但是,我当前的项目需要旧版本的 Python ( 3.7 )。有没有办法安装旧版本并在启动程序时使用类似python37或 的方法,以便我可以在两个版本之间切换?python38
在新的MSYS2实例上安装 mingw 时,我遇到了 gcc not found 的问题:
$ g++
bash: g++: command not found
Run Code Online (Sandbox Code Playgroud)
在相对干净的 Windows 10 安装上全新安装 MSYS2:
pacman -Syu
pacman -Su
pacman -S make
pacman -S mingw-w64-x86_64-gcc
Run Code Online (Sandbox Code Playgroud)
看来GCC已经成功安装到该目录了/mingw64/bin
然而我的道路包括
/usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:
Run Code Online (Sandbox Code Playgroud)
因此找不到 gcc。
我尝试添加/mingw64/bin,$PATH但这似乎是对潜在问题的临时解决。
我的具体问题是,是否有任何原因说明为什么 mingw 未安装到目录中/usr/bin/或安装未将其自身添加到路径中,或者有任何简单的原因导致此问题。
提前致谢!
使用flutter doctor我知道 flutter 无法找到 google-chrome 可执行文件。我用的是鱼壳。我在/中设置了环境变量。config/fish 使用set CHROME_EXECUTABLE /usr/bin/google-chrome-stable医生所说的命令,但没有帮助。
如何3.11.0通过pacman在ArchLinux上安装最新的python版本?
ArchLinux wiki说当前版本是3.10,尽管 python 3.11 已经正式发布。
跑步时sudo pacman -Syyu p我受到欢迎warning: python-3.10.8-3 is up to date。
难道我做错了什么?
我是D的新手,想要尝试gtkd.我在arch linux上,安装了dmd2-complete(dmd 2.0.56)和gtkd-svn(针对D2构建的gtkd)软件包.我还验证了D本身是否正常工作(编译并运行了一个基本writefln("hello world");程序).
现在我正试图让gtkd启动并运行,并且很难编译和链接示例中的基本helloworld程序.
import gtk.MainWindow;
import gtk.Label;
import gtk.Main;
void main(string[] args)
{
Main.init(args);
MainWindow win = new MainWindow("Hello World");
win.setDefaultSize(200, 100);
win.add(new Label("Hello World"));
win.showAll();
Main.run();
}
Run Code Online (Sandbox Code Playgroud)
具体来说,我需要将哪些选项传递给dmd才能将其链接起来?几乎所有我能找到的文档都完全跳过了这个.
该gtkd-svn软件包在/ usr/lib中安装了以下内容:
/usr/lib/libgtkd.a
/usr/lib/libgtkdgl.a
/usr/lib/libgtkdsv.a
Run Code Online (Sandbox Code Playgroud) archlinux ×10
linux ×4
gcc ×2
python ×2
android ×1
compilation ×1
d ×1
flutter ×1
flutter-web ×1
gdb ×1
genymotion ×1
gtkd ×1
hashcat ×1
haskell ×1
manjaro ×1
mingw ×1
msys2 ×1
opencl ×1
python-3.7 ×1
python-3.x ×1
virtualbox ×1
xmonad ×1