archlinux

Expanding the PATH with a list of directories extracted from a text file, the '~' character not expanded to HOME

为君一笑 提交于 2019-12-13 01:42:45
问题 The PATH is expanded by a list of directories extracted from a text file; $ cat ~/.path ~/.local/bin ~/W-space/esp/esp-open-sdk/xtensa-lx106-elf/bin ~/W-space/research/recognition/voxforge/bin ~/W-space/research/recognition/voxforge/bin/julius-4.3.1/bin like so (The following can be found in one of the BASH's startup files): declare -a BATH_ARRAY=($(cat ~/.path)) 2>/dev/null # extend path for BATH in "${BATH_ARRAY[@]}" do case ":${PATH}:" in *:${BATH}:*) ;; *) PATH=${PATH}:$BATH && export

Can't import modules in python: PyQt4 conflicts with SIP

给你一囗甜甜゛ 提交于 2019-12-13 00:37:42
问题 I'm new and my english is not very well, but here I go: I have the newest Arch Linux on my PC and yesterday I tried to install SIP, a Python code generator for wrapping C++ codes. I tried to install SIP and PyQt4 under a virtual enviroment. I got SIP from the AUR, and installed it this way: http://lucacerone.net/2013/08/installing-pyqt4-and-sip-in-a-virtual-environment-ubuntu-1204/#.Uyx-dGd_phF/ I did it this way because on the official SIP-documentation website I didn't figure out where to

Linking error: libQt5Network.so: undefined reference to `EC_curve_nist2nid'

女生的网名这么多〃 提交于 2019-12-12 18:18:41
问题 I'm building my qt application and on a linking stage I'm getting the following problem: /usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/../../../../lib/libQt5Network.so: undefined reference to `EC_curve_nist2nid' collect2: error: ld returned 1 exit status I was not getting this problem before and I have a feeling that it is in some way related to system update (though nor qt nor openssl packages were updated). My system is Arch Linux Qt 5.5.1 openssl 1.0.2.f-1 And btw the symbol is present in

`vagrant up` times out at “Waiting for domain to get an IP address…”

断了今生、忘了曾经 提交于 2019-12-12 14:29:56
问题 This appears to only happen when I'm using the generic/arch box. I've tried several ubuntu boxes and everything works fine. Host OS is Manjaro. It's freezing with output: INFO interface: info: ==> default: Waiting for domain to get an IP address... ==> default: Waiting for domain to get an IP address... INFO retryable: Retryable exception raised: #<Fog::Errors::TimeoutError: The specified wait_for timeout (2 seconds) was exceeded> libvirt/virsh version 3.10.0 vagrant version 2.0.1 OS 4.9.76-1

Upgrading older mongo database after unintentional mongo version upgrade

喜欢而已 提交于 2019-12-12 13:17:05
问题 Is there any way to upgrade a mongo database after the mongodb package was unintentionally upgraded (3.4.9 -> 3.6.1)? According to the mongo docs, as a prerequisite of the upgrade, featureCompatibilityVersion has to be set from the mongo cli tool, which, however, needs a running mongod database daemon, which, however, won't run if mongodb package was already upgraded and the database was not set the featureCompatibilityVersion flag. I'm on ArchLinux, I had mongodb in IgnorePkg but it's

Android Device Monitor not found JDK Path

若如初见. 提交于 2019-12-12 09:35:00
问题 I'm using Arch Linux with Gnome. I open Android Studio by the desktop item. The code editor works fine, the device manager starts correctly and the app run like a charm, but when I try to open the Device Monitor, I get this error: A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Monitor. No Java virtual machine was found after searching the following locations: /home/grams/Android/Sdk/tools/lib/monitor-x86_64/jre/bin/java java in your current

How to uninstall n and all node versions installed by n

て烟熏妆下的殇ゞ 提交于 2019-12-12 08:27:39
问题 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

need help setting up ruby on rails javascript runtime environment

泪湿孤枕 提交于 2019-12-12 07:48:38
问题 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

ember build fails, no such file or directory lstat …funnel-input_base_path-XXX.tmp/0//index.html

雨燕双飞 提交于 2019-12-12 05:38:57
问题 The file it tries to find doesn't exist and neither does the funnel-input_base_path-XXX.tmp folder. It's no use to create one manually as the XXX part is randomly generated. [folatt@ArkOS_Dev genesis]$ ember build (node:22373) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. WARNING: Node v6.2.1 has currently not been tested against Ember CLI and may result in unexpected behaviour. version: 1.13.13

How do i activate cron command once within specific time frame?

北战南征 提交于 2019-12-12 05:22:14
问题 Basic information about my system: I have a music system where people can schedule songs to start and end at a specific time. OS: Arch linux It sets two crons at the moment. One lets say at 1.50 (start time with a command like "play etc") and another set at 3.20 (end time with a command like "end etc"). My setup works perfectly and i can end delete schedules etc etc but i now noticed an issue! If i set the above times and turn the system off (My system is a raspberry pi) and turn back on at