ubuntu-12.04

How to install Ruby 2 on Ubuntu without RVM

99封情书 提交于 2019-11-27 04:59:11
问题 I want to install ruby 2.0 using sudo apt-get install ruby2.0 But there isn't available package for ruby2.0 I want to install it using apt-get install the same like ruby 1.9.1 Any suggestions? 回答1: sudo apt-get -y update sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev cd /tmp wget http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p451.tar.gz tar -xvzf ruby-2.0.0-p451.tar.gz cd ruby-2.0.0-p451/ ./configure --prefix=/usr/local make sudo make install

MongoDB mongorestore failure: locale::facet::_S_create_c_locale name not valid

蹲街弑〆低调 提交于 2019-11-27 04:58:53
问题 I created a dump with mongodump on computer A (ubuntu 12.04 server). I moved it to computer B (ubuntu 12.04 server) and typed: mongorestore -db db_name --drop db_dump_path It failed and it reported: connected to: 127.0.0.1 terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid Aborted I've successfully accomplished this operation before and this strange behavior has never occurred. What do I need to do to fix this? 回答1: On

can't installing lxml on Ubuntu 12.04

心不动则不痛 提交于 2019-11-27 03:28:07
问题 I've been trying to install lxml using pip install lxml and I get the error below. I've used apt-get install python-dev libxml2 libxml2-dev libxslt-dev before (suggested in other answers) but I still get the same error. I did not use control-c. pip install lxml Downloading/unpacking lxml Downloading lxml-3.2.4.tar.gz (3.3MB): 3.3MB downloaded Running setup.py egg_info for package lxml /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings

compile Ruby 2.0 errors without rvm or rbenv , `readline.c:1886:26: error: 'Function' undeclared (first use in this function)`

戏子无情 提交于 2019-11-27 01:57:42
问题 I want to install gitlab, which don't recommend to use any ruby version manager. But This is my OS Linux dqa-dev 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:08:14 UTC 2014 i686 i686 i686 GNU/Linux linking shared-object psych.so installing default psych libraries make[2]: Leaving directory `/home/poc/ruby-2.0.0-p451/ext/psych' make[2]: Entering directory `/home/poc/ruby-2.0.0-p451/ext/pty' compiling pty.c pty.c: In function 'chfunc': pty.c:143:12: warning: ignoring return value of 'seteuid'

Python/IPython ImportError: no module named site

假装没事ソ 提交于 2019-11-27 01:49:56
问题 I had python 2.7.3 and ipython 1.2 up and running correctly on my Linux system ( ubuntu 12.04 ) but was trying to install an updated version of matplotlab needed for coursework. After running this code line in the terminal user$ sudo easy_install -U distribute user$ export PYTHONHOME=/usr/lib/python2.7/ now every time I try and run python or ipython I get the error message ImportError: no module named site how do I reverse/fix this problem?? I'm so lost. I looked at other similar issues, but

libz.so.1: cannot open shared object file

Deadly 提交于 2019-11-27 00:34:34
I am facing an issue on ubuntu 12.04 as : /usr/lib/ndk/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory I tried sudo apt-get install lib32z1 But it says Reading package lists... Done Building dependency tree Reading state information... Done lib32z1 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 610 not upgraded. Please suggest a solution. After checking

OpenGL & GLSL 3.3 on an HD Graphics 4000 under Ubuntu 12.04

三世轮回 提交于 2019-11-26 22:50:52
问题 I'm running that configuration : Ubuntu 12.04 Intel HD Graphics 4000 glxinfo give me that parameters: OpenGL renderer string: Mesa X11 OpenGL version string: 2.1 Mesa 8.0.4 OpenGL shading language version string: 1.20 OpenGL extensions: My goal was to run OpenGL 3.3 (and so GLSL 3.3). If I'm easy with development issues, I'm lost in hardware and drivers, so does someone knows a way to achieve that with my configuration? 回答1: Unfortunally at this moment it looks like this is not possible,

Installing wxPython on Ubuntu 12.04

杀马特。学长 韩版系。学妹 提交于 2019-11-26 22:49:27
问题 The Issue: I am having trouble installing wxPython on Ubuntu 12.04. I would like to find a simple, straightforward way of doing this. What I've Done So Far: The most relevant instructions that I have been able to find so far can be found here: http://wiki.wxpython.org/InstallingOnUbuntuOrDebian The issue with these instructions is that there is no choice available for Precise 12.04. The most up-to-date distro shown is Natty 11.4. From what I can find, the proper way to do this is to manually

java.lang.Exception: No runnable methods exception in running JUnits

三世轮回 提交于 2019-11-26 22:39:31
问题 I am trying to run the JUnit on my Linux command prompt /opt/junit/ contains the necessary JARS(hamcrest-core-1.3.jar and junit.jar) and class files and I am using the following command to run the JUnit: java -cp hamcrest-core-1.3.jar:junit.jar:. org.junit.runner.JUnitCore TestRunner TestJunit class: import org.junit.Test; import static org.junit.Assert.assertEquals; public class TestJunit { @Test public void testAdd() { String str= "Junit is working fine"; assertEquals("Junit is working fine

error while running “source .vimrc”

末鹿安然 提交于 2019-11-26 21:59:12
问题 i am having a simple vimrc file when i run "source .vimrc" in ubuntu I am getting the following error. $ source .vimrc bash: .vimrc: line 3: syntax error near unexpected token `"syntax"' bash: .vimrc: line 3: `if has("syntax")' Here is my script file set term=builtin_ansi set nu if has("syntax") syntax on endif I do have syntax installed in my vim. vim --version | grep syntax vim: /home/shankaran/src/ns/service/build/dp/lib/libcrypto.so.1.0.0: no version information available (required by