archlinux

zlib build error with GHC

橙三吉。 提交于 2019-12-09 15:03:06
问题 I'm using a VM with the following configuration: Arch Linux (3.0-ARCH kernel) GHC 7.0.3 cabal-install 0.10.2 Cabal library 1.10.1.0 When I try to build zlib using cabal... $ cabal install zlib I get the following output: Resolving dependencies... Downloading zlib-0.5.3.2... Configuring zlib-0.5.3.2... Preprocessing library zlib-0.5.3.2... Stream.hsc:86:21: error: missing binary operator before token "(" Stream.hsc: In function ‘main’: Stream.hsc:86:21: error: missing binary operator before

OpenCL Simple “Hello World!” program compiles correctly but spits out garbage when executed

若如初见. 提交于 2019-12-08 04:16:22
问题 As the title suggests, I have copied verbatim the hello.cl and hello.c files from Fixstar's online OpenCL book, at http://www.fixstars.com/en/opencl/book/OpenCLProgrammingBook/first-opencl-program.html, and cannot get correct output. I compile the program using gcc -lOpenCL hello.c -o hello . I execute normally with ./hello . But my output reads something like ���. I run Arch Linux and have installed OpenCL, the headers, and the NVIDIA implementation. I would like to continue learning OpenCL

error while loading shared libraries: libgdal.so.1 in archlinux

…衆ロ難τιáo~ 提交于 2019-12-07 13:00:07
问题 I (myself a programm novice) get the following error message when starting a script in archlinux, which has been written by a friend: /usr/bin/psxy: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory /usr/bin/psbasemap: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory /usr/bin/ps2raster: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No

how to investigate python2 segfault on imp.load_module

妖精的绣舞 提交于 2019-12-06 11:55:36
I am trying to install and use dolfin on Arch Linux, with Python 2.7.3. What is the best way to find out what is causing segmentation faults such as these? $ python2 -c "import dolfin; print dolfin.__version__" [3] 6491 segmentation fault (core dumped) python2 -c "import dolfin; print dolfin.__version__" I have tried inspecting the core file through gdb: $ sudo systemd-coredumpctl gdb 6491 but they are always truncated: Reading symbols from /usr/bin/python2.7...(no debugging symbols found)...done. BFD: Warning: /var/tmp/coredump-wSi8DV is truncated: expected core file size >= 39694336, found:

Xmonad can't find module XMonad (or any other)

二次信任 提交于 2019-12-06 05:07:02
问题 Whenever xmonad starts, restarts, or is recompiled, I get an xmessage: xmonad.hs:1:8: Could not find module `XMonad' Perhaps you meant Monad (needs flag -package haskell98-2.0.0.2) CgMonad (needs flag -package ghc-7.6.3) DsMonad (needs flag -package ghc-7.6.3) Use -v to see a list of the files searched for This doesn't stop it from starting, but I only see updates to xmonad or xmobar settings on system reboot. My current xmonad.hs is just import XMonad main = xmonad defaultConfig and it still

Why does spark-shell fail with “SymbolTable.exitingPhase…java.lang.NullPointerException”?

北战南征 提交于 2019-12-06 04:27:45
Just installed Apache Spark 2.2.0-4 in my arch linux, as well as Scala 2.12.4 and Apache Hadoop 3.0, and I'm facing the following exception once I execute spark-shell . Exception in thread "main" java.lang.NullPointerException at scala.reflect.internal.SymbolTable.exitingPhase(SymbolTable.scala:256) at scala.tools.nsc.interpreter.IMain$Request.x$20$lzycompute(IMain.scala:896) at scala.tools.nsc.interpreter.IMain$Request.x$20(IMain.scala:895) at scala.tools.nsc.interpreter.IMain$Request.headerPreamble$lzycompute(IMain.scala:895) at scala.tools.nsc.interpreter.IMain$Request.headerPreamble(IMain

Archlinux systemd 开机执行rc.local

北战南征 提交于 2019-12-06 03:46:00
Archlinux 替换initscript 为systemd方式后,许多服务启动方式已经发生变化。原来的/etc/rc.local已经消失,并被建议使用tmpfiles.d方式替换。但是有些操作tmpfiles.d无法替代。 需要手动写一个rc-local.service 文件。 vim /usr/lib/systemd/system/rc-local.service 内容如下: [Unit] Description="/etc/rc.local Compatibility" [Service] Type=forking ExecStart=/etc/rc.local start TimeoutSec=0 StandardInput=tty RemainAfterExit=yes SysVStartPriority=99 [Install] WantedBy=multi-user.target 启用脚本 systemctl enable rc-local.service 创建启动文件rc.local, vim /etc/rc.d/rc.local ln -s /etc/rc.d/rc.local /etc chmod +x /etc/rc.d/rc.local 输入你的开机执行的操作,例如 hdparm -B199 /dev/sda #解决c1门,卡顿,对于机械硬盘有效

Unexpected error reading GML graph

时光毁灭记忆、已成空白 提交于 2019-12-06 02:16:02
问题 I have downloaded the gml file which contains the dolphins social network. Some time ago I did some analysis on that network running python 3.4 and networkx 1.9 on a a Windows7 machine, but now I am running on a Arch linux machine (with the same version of python but with networkx 1.10 ) and found an issue when tried to read the file. This is the code used to read the file: import networkx as nx nx.read_gml("dolphins.gml") And this is the stack trace of the error: Traceback (most recent call

Why is the re module trying to import enum.IntFlag?

不羁的心 提交于 2019-12-06 01:38:48
How is it possible that a core module is importing a non-existent name from another core module? Specifically, the re module importing enum.IntFlag Ways to Reproduce It can be reproduced by launching an interpreter and attempting the import, running a program that depends on enum.IntFlag such as pip , viewing the interpreter settings page in Eclipse, using the text editor, running the interactive console in PyDev, ... Directly importing from enum import IntFlag Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: cannot import name 'IntFlag' Run a dependant

error while loading shared libraries: libgdal.so.1 in archlinux

最后都变了- 提交于 2019-12-06 00:28:57
I (myself a programm novice) get the following error message when starting a script in archlinux, which has been written by a friend: /usr/bin/psxy: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory /usr/bin/psbasemap: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory /usr/bin/ps2raster: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory /usr/bin/psxy: error while loading shared libraries: libgdal.so.1: cannot open