ubuntu-10.04

Rails - capistrano and chmod

我们两清 提交于 2019-12-05 20:26:28
I want to use chmod via capistrano to add permission for folder. For example, i want to do that: chmod 777 -R /vol/www/apps/ror_tutorial/current/log/ So, i want to do that via capistrano's task. I tried that: desc "Fix permission" task :fix_permissions, :roles => [ :app, :db, :web ] do run "#{try_sudo} chmod 777 -R #{current_path}/log" end after "deploy:update_code", :fix_permissions But it doesn't work. Permissions of the folder are same: $ ls -alh /vol/www/apps/ror_tutorial/current/log/ total 1008K drwxrwxrwx 2 root root 4.0K 2012-02-03 20:22 . drwxrwxr-x 7 root root 4.0K 2012-01-25 20:50 ..

rubygems 1.3.7 TypeError (in 'merge') during installation on Ubuntu

≡放荡痞女 提交于 2019-12-05 14:14:25
While installing ruby-1.9.2-p0 with rvm on an updated Ubunutu x86_64, I keep getting an error in `merge': can't convert String into Hash (TypeError). All apt packages in rvm notes and those found in the rubygems manual have been installed. I believe the error is resulting when RVM is attempting to install rubygems. I also get the same error installing ruby gems with the system ruby. I think this is a dependency problem. I have compiled on Ubuntu before on both i386 and x86_64 before and never run into this issue. What am I missing/doing wrong? Via system ruby: $ ruby -v ruby 1.8.7 (2010-01-10

pip not working

人走茶凉 提交于 2019-12-05 00:51:31
I am trying to install python-shapely with pip in Ubuntu 10.04. I got "Unknown or unsupported command 'install'" while I tried, user@desktop:~$ pip install Shapely I tried installing pip and got the following error: user@desktop:~$ sudo apt-get install python-pip Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: python-pip 0 upgraded, 1 newly installed, 0 to remove and 396 not upgraded. Need to get 0B/49.8kB of archives. After this operation, 270kB of additional disk space will be used. (Reading database ...

assertionerror with python3 and virtualenv

蹲街弑〆低调 提交于 2019-12-04 19:43:12
In ubuntu lucid,I have python2.6 by default.I wanted to install python 3.3.1 . I extracted from Python-3.3.1.tar.bz2 into my home folder sothat /home/me/Python-3.3.1 contains all the files.Then as per the Readme I did ./configure make make test sudo make install This created an executable named python in /home/me/Python-3.3.1 folder. Also, nowI have several python3* files in the /usr/local/bin directory. Among them , python3 is a link to executable, python3.3 is an executable, python3.3m is an executable. I wanted to create a virtualenv for python3 and tried the following sudo virtualenv

PostgreSQL 9.1 installation and database encoding

老子叫甜甜 提交于 2019-12-04 09:50:33
问题 I just did my first install of PostgreSQL 9.1 on Ubuntu 10.04. note: I have done it a few times on Windows with an installer without issues. After a bit of effort, I got it set up to connect remotely via pgAdminIII. However, I was really surprised after connecting to the db, that I got a warning about the encoding. The "postgres" database itself was created with "SQL_ASCII" encoding. Every time that I've installed on windows, it created the postgres DB with "UTF8" - which seems like it would

Can I incorporate system libraries (e.g. libxml2) I compile against into a gem (e.g. nokogiri) that I can deploy to Heroku?

这一生的挚爱 提交于 2019-12-04 04:10:26
Nokogiri has a problem with translating to and from UTF-8 characters that turns out to come from libxml2, specifically version 2.7.6, which is the highest supported version on Ubuntu 10.04 LTS. The bug is fixed in version 2.7.7 and up, but since our app is hosted on Heroku (bamboo-ree-1.8.7 stack, based on Ubuntu 10.04), we have to use version 2.7.6, and continue to experience the bug, unless: Someone can/has hacked nokogiri to get around the problem Canonical bumps the supported libxml2 version for Ubuntu 10.04 (and/or Heroku updates libxml2 in their stack) I can come up with a way for

extract text from xml documents in python

此生再无相见时 提交于 2019-12-04 02:35:53
问题 This is the sample xml document : <bookstore> <book category="COOKING"> <title lang="english">Everyday Italian</title> <author>Giada De Laurentiis</author> <year>2005</year> <price>300.00</price> </book> <book category="CHILDREN"> <title lang="english">Harry Potter</title> <author>J K. Rowling </author> <year>2005</year> <price>625.00</price> </book> </bookstore> I want to extract the text without specifying the elements how can i do this , because i have 10 such documents. I want so because

how to install php amqp in ubuntu

痞子三分冷 提交于 2019-12-04 02:33:25
I am try to install amqp for php (Integrating PHP with RabbitMQ) using this http://code.google.com/p/php-amqp/ . after run phpize && ./configure --with-amqp && make && sudo make install it give error like this Cannot find config.m4. Make sure that you run '/usr/bin/phpize' in the top level source directory of the module Please help me, my environment is ubuntu You need to download the code for the PHP library from here: http://code.google.com/p/php-amqp/downloads/list Then cd into that folder and run the command they tell you to run. UPDATE: That page is actually an old page, they haven't

How does parent process get the termination status through wait from a child process which calls _exit

半城伤御伤魂 提交于 2019-12-04 01:52:42
问题 I have read the following statement. The status argument given to _exit() defines the termination status of the process, which is available to the parent of this process when it calls wait(). A process is always successfully terminated by _exit() (i.e., _exit() never returns ). Question If _ exit doesn't return, how does the parent process can get the termination status from the child process through the wait ? 回答1: Whenever a process exits (whether or not by calling _exit(int Exit_Status) )

Extract gnutls library files of tar.xz and tar.lz for ubuntu 10.04 LTS

我的未来我决定 提交于 2019-12-03 23:21:59
I am very new to linux platform and I want to extract gnutls for ubuntu. If I do, $ls then, it will show these files below. gnutls-3.2.1.tar.lz gnutls-3.2.1.tar.lz.sig gnutls-3.2.1.tar.xz gnutls-3.2.1.tar.xz.sig When I give command, $ tar -xvf gnutls-3.2.1.tar.xz I get output, tar: xz: Cannot exec: No such file or directory tar: Error is not recoverable: exiting now tar: Child returned status 2 tar: Exiting with failure status due to previous errors I want to extract these files. Why there are two types of formats given? - xz and lz Why there are signature files? - .sig How to verify it? I