ubuntu-12.04

virtualenv is not compatible with this system or executable

笑着哭i 提交于 2019-12-05 09:59:08
I am rather new to Linux (Ubuntu) and installing (Python) packages. I'm having trouble with mkvirtualenv and can not solve it: ~$ mkvirtualenv mysite70 New python executable in mysite70/bin/python Traceback (most recent call last): File "/usr/lib/python2.7/site.py", line 562, in <module> main() File "/usr/lib/python2.7/site.py", line 544, in main known_paths = addusersitepackages(known_paths) File "/usr/lib/python2.7/site.py", line 271, in addusersitepackages user_site = getusersitepackages() File "/usr/lib/python2.7/site.py", line 246, in getusersitepackages user_base = getuserbase() # this

Relocate without relocate in subversion?

吃可爱长大的小学妹 提交于 2019-12-05 09:31:33
I need to switch the base URL of my working copy in subversion. According to the manual for 1.7 I should be able to use svn relocate. http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.relocate.html However, on Ubuntu Linux 12.04 I have version 1.6 which doesn't appear to have the relocate command. Is there a way to accomplish this in subversion 1.6 or by some other method? I found the answer I was looking for. It's just a matter of running svn switch --relocate OLD_URL NEW_URL It looks like on subversion 1.7 you can use the new syntax: svn relocate NEW_URL 来源: https://stackoverflow.com

Can't get apache nutch to crawl - permissions and JAVA_HOME suspected

可紊 提交于 2019-12-05 08:11:13
问题 I am trying to run a basic crawl as per the NutchTutorial: bin/nutch crawl urls -dir crawl -depth 3 -topN 5 So I have Nutch all installed and set up with Solr. I set my $JAVA_HOME in my .bashrc to /usr/lib/jvm/java-1.6.0-openjdk-amd64 . I don't see any problems when I run bin/nutch from the nutch home directory, but when I try to run the crawl as above I get the following error: log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: /usr/share/nutch/logs/hadoop.log

XMonad: dmenu not launching/spawning on startup

核能气质少年 提交于 2019-12-05 06:51:26
New to XMonad and loving it so far. I have a fairly vanilla / regular XMonad setup and am having problems with dmenu . When I login and hit mod+p nothing happens. If I then open a terminal and hit xmonad --restart then mod+p , dmenu will be working. There must be something wrong with my xmonad.hs ? I tried a no-customization setup of XMonad and things were working normally (i.e. dmenu was working after login). My questions: Is there something wrong with my xmonad.hs ? Why won't dmenu work unless I xmonad --restart ? Could something fail in xmonad.start that would prevent dmenu from loading

Linux: Send mail after a process id finishes or is killed

℡╲_俬逩灬. 提交于 2019-12-05 06:37:08
问题 I want to be notified on my email after another user's process kills or finishes. I can identify another user's process by its process id or the name of the process appearing in "top" command. In order to do the same I wrote the following script: while true; do if ps -ef | grep -q 'process_name'; then sleep 1 else echo "complete" | mail -s "process exiting" abc@gmail.com fi done However, I find that even after another user's process finishes or the other user kills his or her process, still I

How to make Eclipse to find my jdk in Linux?

℡╲_俬逩灬. 提交于 2019-12-05 05:02:41
I've installed Eclipse and jdk manually. My JAVA_HOME is set, and I am able to run the java -version and javac -version commands, but when I try to run Eclipse, it shows the following message: A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: /home/$USER/development/eclipse/jre/bin/java java in your current PATH How can I fix this? Distro: Ubuntu 12.0.4 64 bits. Java: java version "1.6.0_45" Java(TM) SE Runtime Environment (build 1.6.0_45-b06) Java HotSpot(TM) 64

Setup iRedMail Admin Site in Nginx on Ubuntu 12.04

浪子不回头ぞ 提交于 2019-12-05 04:50:04
问题 I had a hell of a time getting this to work and couldn't find a solid answer anywhere so I figured I would post my solution to SO so others may find it useful. I wanted to run all of my SSL sites on a seperate virtual box from my MX server which by iRedMail default is not the case. Getting phpMyAdmin and roundcube going on the new server with nginx was easy and will not be covered here, what was not easy was getting the admin panel running under nginx with uwsgi. The end result of this is one

Install Ruby on Rails using rvm on Ubuntu 12.04

可紊 提交于 2019-12-05 03:53:40
问题 I am trying to install Ruby on Rails using rvm on ubuntu 12.04. I am following the steps given in https://www.digitalocean.com/community/articles/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts-precise-pangolin-with-rvm , but I am unable to install Rails successfully. When I run gem install rails , it does nothing. Previously, by using the above link, I have successfully installed it several times. But this time, i couldn't. Output of gem install rails -V : HEAD https //rubygems.org/specs.4

Eclipse is saying “Update Android Developer Toolkit”

馋奶兔 提交于 2019-12-05 03:35:49
I've somehow managed to mess up my Eclipse and Android set-up and I'm not sure how to fix it. The symptoms of the problem are as follows: In Preferences > Android, I try to select the location of android-sdk-linux, when select the error appears "This Android SDK requires Android Developer Toolkit version 20.0.0 or above. Current version is 18.0.0.v201203301601-306762. Please update ADT to the latest version." Going to Help > Check for Updates in Eclipse, returns no updates found Going to Help > Install new software and selecting work with ADT Plugin - https://dl-ssl.google.com/android/eclipse/

Shopify + Ubuntu 12.04LTS + Faraday issue = OK to use older OpenSSL?

怎甘沉沦 提交于 2019-12-05 03:22:00
I'm using Ubuntu 12.04LTS Desktop to develop a Shopify App (using the shopify_app gem), and I ran into this problem when processing the callback URL. Faraday::Error::ConnectionFailed (Connection reset by peer - SSL_connect) Looking at the shopify-app-discuss group here and here, it seems that the problem is with Ubuntu 12.04 and its OpenSSL. I tried to install the most up-to-date OpenSSL, but nothing. One alternative that I found was to use a different, older OpenSSL, one that RVM provides. $ rvm remove 1.9.3 (or whatever version of ruby you are using) $ rvm pkg install openssl $ rvm install 1