archlinux

Unexpected error reading GML graph

∥☆過路亽.° 提交于 2019-12-04 06:31:41
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 last): File "<stdin>", line 1, in <module> File "<string>", line 2, in read_gml File "/usr/lib/python3

How to uninstall n and all node versions installed by n

此生再无相见时 提交于 2019-12-04 01:51:48
I have installed some Node.js versions with the tool n . I have uninstalled all Node.js versions using: sudo n prune except the current (activated) version. If I try to unsinstall the current version: sudo n rm 6.10.2 I get the following error.: Error: cannot remove currently active version (node/6.10.2) . I can not figure out, how to set the systems (Arch Linux) default Node.js version, which is already installed and was used to install n . If uninstall n using: sudo npm uninstall -g n it leaves the current version on my computer. ls /usr/local/n/versions/node/ 6.10.2/ Do I need to manually

Linux学习----ArchLinux安装

女生的网名这么多〃 提交于 2019-12-04 01:19:35
archLinux 安装步骤 验证启动模式 # ls /sys/firmware/efi/efivars 如果目录不存在系统则是以BIOS或CSM模式启动 连接网络 # ip link 检查网络连接 # wifi-menu 连接wifi # pppoe-setup # systemctl start adsl # ping archlinux.org 检查网络连接 更新系统时间 # timedatectl set-ntp true 建立硬盘分区 # fdisk -l 查看硬盘分区 # fdisk /dev/sda 进行硬盘分区,n---添加一个分区,w---保存并退出,q---直接退出 分区示例如图: 格式化分区 # mkfs.ext4 /dev/sdX1 如果您创建了交换分区(例如 /dev/sda3),使用 mkswap 将其初始化: # mkswap /dev/sdX2 # swapon /dev/sdX2 详情见 https://wiki.archlinux.org/index.php/File_systems_(简体中文)#创建文件系统 选择镜像 # nano /etc/pacman.d/mirrorlist 找到China源并将该源移动到最前面,具体怎么操作见 http://www.vpser.net/manage/nano.html 安装必须的软件包

Ctrl+S (horizontal split) not working with Command-T in vim

只愿长相守 提交于 2019-12-03 17:04:56
问题 I can't get the horizontal split to work. Ctrl+enter does nothing, Ctrl+S does nothing. I've been googeling this for a bit and the only solutions I've found so far are related to OSX. On both Arch Linux and Ubuntu, having same problem (but also the same config). I'm not using Janus or anything like it, just a very basic config set t_Co=256 set tabstop=2 set expandtab set shiftwidth=2 set fileencoding=utf-8 set encoding=utf-8 set termencoding=utf-8 set showcmd filetype plugin indent on "color

win7 ,archlinux安装

守給你的承諾、 提交于 2019-12-03 14:13:39
经过2天的折腾,我终于在win7上装上了archlinux。遇到了不少的麻烦,但最总能够解决也还是挺开心的 我是把win7的E盘那来装win7的。 1,先用软件将E盘格式化成ext3或者ext4 .软件可以用Acronis Disk Director Suite,我就是用的这个,挺简单的!(刚开始我下了魔法分区,EASEUS Partition Master 5.8.1 Home Edition但是这两个都不行,后来才发现不支持。) 2,然后安装archlinux,按照新手指南上的一步一步去做就行啦。附上网址( http://wiki.archlinux.org/index.php/ArchLinux_新手指南_(简体中文) ) 总结,1使用软件前要知道兼容性,是否支持,不然要耗费很多时间。 2,要检查一下,光盘是否完整,用HashTab 就可以啦。如果不完整到最后很麻烦! 来源: oschina 链接: https://my.oschina.net/u/69525/blog/5504

unixodbc driver manager cannot open specified library on install

那年仲夏 提交于 2019-12-03 13:00:39
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 following are my .ini files... odbc.ini [SUBS2A] Description = ODBC Driver for Progress Driver = /usr/dlc

need help setting up ruby on rails javascript runtime environment

流过昼夜 提交于 2019-12-03 12:17:05
I'm having trouble setting up ruby on rails on my machine. I've been following the book "Agile Web Development with Rails" and up until now everything has been going fine. The problem I'm having is that when I type rails server I get the following error: /home/myname/.gem/ruby/1.9.1/gems/execjs-1.3.0/lib/execjs/runtimes.rb:50:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable) from /home/myname/.gem/ruby/1.9.1/gems/execjs-1.3.0/lib/execjs.rb:5:in `<module:ExecJS>' from /home/myname/.gem

Python always returning Network is unreachable because of old ipv6 configuration

落花浮王杯 提交于 2019-12-03 08:29:00
I currently get a Network is unreachable error to any request I'm making with python. No matter if im using the urllib library or the requests library. After some more research its likely that its being caused by an incorrect setup ipv6 tunnel, which seems to be still active: $ ip -6 addr show $ ip -6 route default dev wlan0 metric 1 Some context: I'm running Archlinux and updated the system today, although there didnt seem to be any special updates today related to python. I'm also running this under a virtualenv, but other virtualenvs and using my Python outside the virtualenv also have the

Ctrl+S (horizontal split) not working with Command-T in vim

混江龙づ霸主 提交于 2019-12-03 07:01:32
I can't get the horizontal split to work. Ctrl+enter does nothing, Ctrl+S does nothing. I've been googeling this for a bit and the only solutions I've found so far are related to OSX. On both Arch Linux and Ubuntu, having same problem (but also the same config). I'm not using Janus or anything like it, just a very basic config set t_Co=256 set tabstop=2 set expandtab set shiftwidth=2 set fileencoding=utf-8 set encoding=utf-8 set termencoding=utf-8 set showcmd filetype plugin indent on "color molokai syntax enable autocmd! BufNewFile * silent! 0r ~/.vim/skel/tmpl.%:e set laststatus=2 " Always

Arch Linux - apt-get update equivalent command?

…衆ロ難τιáo~ 提交于 2019-12-03 06:37:11
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 "pacman -Sy ". I am just confused! Any ideas? The equivalent of apt-get update in Arch Linux is pacman