ubuntu-12.04

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

拟墨画扇 提交于 2019-11-28 07:44:38
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', declared with attribute warn_unused_result [-Wunused-result] seteuid(getuid()); ^ linking shared

Python/IPython ImportError: no module named site

六月ゝ 毕业季﹏ 提交于 2019-11-28 07:29:11
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 no one else used Linux and I'm not sure what to do. TRY to unset your python path... In Linux/Mac, you

How do I configure Chef Solo to install Nginx on a new Vagrant box?

陌路散爱 提交于 2019-11-28 06:06:15
I'm new to Chef and the documentation (even the home page of their website) makes my head spin. I'm not even sure if I'm using it for the correct purpose. My intent is to setup a Vagrantfile that tells Chef Solo to install some software automatically when I spin up a new box. That is one of Chef Solo's intended uses, am I correct? I'm not really sure if that qualifies as one of "the hardest infrastructure challenges on the planet" , but whatever. My first goal is to get Chef Solo to install nginx for me. In my project, I've cloned the cookbook for nginx : $ git clone https://github.com/opscode

Getting error while running django-cms demo page

守給你的承諾、 提交于 2019-11-28 05:09:15
I tried all of the procedure for installing django-cms, after that when i try to run a demo page i getting the below error. (djvenv2)shan@shan:~/workspace/projects/djvenv$ pip freeze Django==1.6.2 PIL==1.1.7 Pillow==2.4.0 South==0.8.4 argparse==1.2.1 dj-database-url==0.3.0 django-classy-tags==0.5.1 django-cms==3.0 django-mptt==0.6.0 django-sekizai==0.7 djangocms-admin-style==0.2.2 djangocms-installer==0.4.1 html5lib==0.999 six==1.6.1 wsgiref==0.1.2 (djvenv2)shan@shan:~/workspace/projects/djvenv$ djangocms -p . my_demo Database configuration (in URL format) [default sqlite://localhost/project

Package doesn't exist error in intelliJ

可紊 提交于 2019-11-28 04:36:41
I'm trying to use the barbecue barcode printing library. I have successfully added the library to IntelliJ through project structure add library. Then I imported the packages and wrote the methods, which gave me no error. The packages were available in the class. But when I compile it gives me the error: error: package net.sourceforge.barbecue does not exist How can this be? I'm coding in ubuntu, is there any other place to which I have to add the library? Thanks. Tika I tried to "Maven > Reimport" but the only thing that actually fixed it was to close the project, delete the .idea directory,

How to install the fftw3 package of R in ubuntu 12.04?

夙愿已清 提交于 2019-11-28 04:29:47
问题 I am trying to install the fftw3 package through R console >install.packages("fftw") After this command it is asking to select the cran mirror.I have selected the cran mirror then following error occurs: Loading Tcl/Tk interface ... done Warning: unable to access index for repository http://ftp.iitm.ac.in/cran/src/contrib Warning messages: 1: In open.connection(con, "r") : unable to connect to 'cran.r-project.org' on port 80. 2: In getDependencies(pkgs, dependencies, available, lib) : package

How to install a specific version of Node on Ubuntu?

妖精的绣舞 提交于 2019-11-28 03:39:11
I would like to install NodeJS version 0.8.18 on Ubuntu 12.04. I tried to install the newest version and then reverting to 0.8.18 by using nvm , but when I run my code apparently there is some problem with the packages installed and the two versions (latest and 0.8.18). Since I don't know how to solve that problem, I cleaned the machine from the Node installation and thought about installing directly the version I'm interested in (v0.8.18). Pickels Chris Lea has 0.8.23 in his ppa repo. This package let you add a repository to apt-get: (You can also do this manually) sudo apt-get install

How to check which PHP extensions have been enabled/disabled in Ubuntu Linux 12.04 LTS?

自闭症网瘾萝莉.ら 提交于 2019-11-28 03:05:52
I'm using Ubuntu Linux 12.04 LTS on my local machine. I've installed LAMP long ago on my machine. Now I want to enable following PHP extensions: php_zip php_xml php_gd2 For it first I want to check whether these PHP extensions are enabled or not. I searched a lot about how to check the installed/enabled PHP extensions but every time I found how to install these extensions on Ubuntu Linux. So can someone please let me know how should I check the enabled/disabled PHP extensions in Ubuntu Linux 12.04 LTS? Thanks in advance. Checking for installed php modules and packages In addition to running

How to install Ruby 2 on Ubuntu without RVM

会有一股神秘感。 提交于 2019-11-28 02:49:56
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? danmanstx 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 from here How do I install ruby 2.0.0 correctly on Ubuntu 12.04? UPDATE for ruby 2.1.5 sudo apt-get

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

白昼怎懂夜的黑 提交于 2019-11-28 02:48:11
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? On my distro "locale-gen" was not installed and it turned out all I had to do is set the LC_ALL environment