archlinux

Linux CLion can't resolve namespace member

我是研究僧i 提交于 2019-12-23 01:02:29
问题 #include <iostream> #include <stdlib.h> int main() { std::srand( time(0) ); return 0; } Error message This code compiles and run fine. But error messsage doesn't disappear and it annoys me. Maybe someone solved this problem. My system info. Linux desktop 4.6.4-1-ARCH #1 SMP PREEMPT Mon Jul 11 19:12:32 CEST 2016 x86_64 GNU/Linux g++ (GCC) 6.1.1 20160707 P.S. The problem appears with included cstdlib. I think the problem in the IDE. 回答1: Solved using C++ 11 < random > 回答2: See https://youtrack

Linux CLion can't resolve namespace member

冷暖自知 提交于 2019-12-23 01:01:11
问题 #include <iostream> #include <stdlib.h> int main() { std::srand( time(0) ); return 0; } Error message This code compiles and run fine. But error messsage doesn't disappear and it annoys me. Maybe someone solved this problem. My system info. Linux desktop 4.6.4-1-ARCH #1 SMP PREEMPT Mon Jul 11 19:12:32 CEST 2016 x86_64 GNU/Linux g++ (GCC) 6.1.1 20160707 P.S. The problem appears with included cstdlib. I think the problem in the IDE. 回答1: Solved using C++ 11 < random > 回答2: See https://youtrack

how to investigate python2 segfault on imp.load_module

廉价感情. 提交于 2019-12-22 12:08:11
问题 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)..

No OpenGL 3 headers in Arch Linux

最后都变了- 提交于 2019-12-22 05:54:43
问题 I’m trying to compile a very simple “Hello world” OpenGL 3.3 program using FreeGLUT. In all the tutorials I found, they include an header “gl3.h”. The problem is, I don’t have such header file. $ ls -l /usr/include/GL/ total 2164 -rw-r--r-- 1 root root 8797 20 janv. 17:44 freeglut_ext.h -rw-r--r-- 1 root root 681 20 janv. 17:44 freeglut.h -rw-r--r-- 1 root root 26181 20 janv. 17:44 freeglut_std.h -rw-r--r-- 1 root root 837247 27 janv. 12:55 glew.h -rw-r--r-- 1 root root 656589 21 mars 18:07

Unable to hit breakpoints in MonoDevelop

不问归期 提交于 2019-12-22 02:04:45
问题 On my archlinux system I did a fresh installation of: mono 3.0.7 monodevelop 4.0.8 monodevelop-debugger-gdb 4.0 When I debug an application the debugger doesn't stop on the breakpoints, even not on the System.Diagnostics.Debugger.Break (); code. And an error windows is displayed with the following message : Could not connect to the debugger Does anyone know how to fix it? 回答1: As a workaround untick the "Run on external console" checkbox in your running project settings. You can find this

在archlinux中安装chrome

久未见 提交于 2019-12-21 20:46:07
1 pacman中安装yaourt 工具 参考https://wiki.archlinux.org/index.php/Yaourt The easiest way to install Yaourt is to add the yaourt repository to your /etc/pacman.conf: [archlinuxfr] Server = http://repo.archlinux.fr/$arch Sync and install: # pacman -Syu yaourt 2 在yaourt中查找google-chrome-beta 这个很简单yaourt -Ss chrome 会列出所有相关的package,可以看到在AUR里有google-chrome-beta 3 根据提示下载PKGBUILD,自动安装 他会下载google-chrome-beta_current_i386.deb然后生成pacman可识别的package,安装即可 4 中文字体的安装 # pacman -S wqy-bitmapfont wqy-zenhei ttf-dejavu ttf-arphic-ukai ttf-arphic-uming ttf-fireflysung libfxt-lcd 来源: https://www.cnblogs.com/goodloop

Haskell: Missing C library on Arch Linux works on Ubuntu

扶醉桌前 提交于 2019-12-21 19:28:40
问题 I recently switched my PC at work from Ubuntu to Arch Linux . And I am now getting the following error (I am using stack to build my project): setup-Simple-Cabal-1.22.4.0-ghc-7.10.2: Missing dependency on a foreign library: * Missing C library: HSrts-ghc7.10.2 This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version). If the library is already installed but in a non-standard location then you can use the flags --extra

unixodbc driver manager cannot open specified library on install

半腔热情 提交于 2019-12-21 04:23:18
问题 I'm using ArchLinux and I am trying to install OpenEdge progress drivers so I can access it via PHP. I've installed the unixodbc package and the drivers, but when I test the connection via isql or PHP, I get the same error... # isql -3 SUBS2A [01000][unixODBC][Driver Manager]Can't open lib '/usr/dlc/odbc/lib/pgoe1023.so' : file not found [ISQL]ERROR: Could not SQLConnect The messed up thing is that "/usr/dlc/odbc/lib/pgoe1023.so" presently exists, I even symlinked it from "/usr/dlc". The

Arch Linux - apt-get update equivalent command?

最后都变了- 提交于 2019-12-20 20:14:07
问题 What is the command for Arch Linux to update the packages before installing a new package? For instance, I know that in Ubuntu, I do: $ sudo apt-get update $ sudo apt-get <pkg-name> What about in Arch? I came across a couple of version, but they don't seem agree with each others. I can't see the consistency there. eg 1. (it looks tedious to me): $ sudo pacman -Syy $ sudo pacman -Su eg. 2: $ sudo pacman -Sy eg. 3: always use "-Sy" with a "u" i.e. "pacman -Syu" then "pacman -S ", and never

安装archlinux的linux命令记录

旧时模样 提交于 2019-12-20 07:28:31
磁盘的分区:cfdisk 格式化分区:mkfs.ext4,mkswap,swapon 查看所有分区:lsblk /dev/sda 先挂载 / 分区:mount /dev/sda1 /mnt archlinux的镜像文件路径:/etc/pacman.d/mirrorlist mirrorlist 文件也会被 pacstrap 复制到新系统,所以最好在安装的时候设置 让本地的包数据库和远程的软件仓库同步:pacman -Syy //此时磁盘的sda1中还没安装上系统 安装基本系统:pacstrap -i /mnt base 生成fstab:genfstab -U -p /mnt >> /mnt/etc/fstab //只有安装完基本系统之后才能生成fstab chroot到新系统:arch-chroot /mnt /bin/bash 修改locale.gen文件:nano /etc/locale.gen //移除需要的编码前面的注释,一般为 en_US.UTF-8 UTF-8 生成locale讯息:locale-gen 创建locale.conf:echo LANG=en_US.UTF-8 > /etc/locale.conf 设置时区:ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 设置时间标准:hwclock -