ubuntu-9.10

I easy_install'ed Mercurial, and now I get “No script named 'hg'”

烂漫一生 提交于 2019-12-24 23:53:41
问题 I installed Mercurial on (32-bit) Ubuntu 9.10, using: sudo easy_install mercurial It installed Mercurial 1.7.5. I have since learned that using this way of installing is denounced by the Mercurial Team, although the reasons why it shouldn't work are not clear. When I ran the command hg it responded: Traceback (most recent call last): File "/usr/local/bin/hg", line 5, in <module> pkg_resources.run_script('mercurial==1.7.5', 'hg') File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line

Mysql ERROR 1005 (HY000): Can't create table 'tmp' (errno: 13)

佐手、 提交于 2019-12-18 12:26:16
问题 I'm Running Mysql on ubuntu 9.10, the process of Mysql is running as root, I'm using root account when logging to Mysql, which I gave all privileges, I'm using my own db(not mysql), I can create a table, but when i try to create Temporary table i get this error: ERROR 1005 (HY000): Can't create table 'tmp' (errno: 13) For this query: CREATE TEMPORARY TABLE tmp (id int); I've plenty of space in my hard drive, all permissions are granted(also var/lib/mysql have mysql permissions). Any idea?

Check if key is pressed using python (a daemon in the background)

こ雲淡風輕ζ 提交于 2019-12-17 23:22:42
问题 I've created a python script in which an event needs to be executed each time I press the Super (or WinKey) on my keyboard. How can one achieve this without the python process being "focused" - as it is running in the background waiting for the key to be pressed to execute the event? I've seen a lot of posts around the web showing me how to read input - but they have all required one to have the process "focused" and none have showed me how to capture the Super (or WinKey) using a python

Why is Rails using an old version of Ruby even though I have updated it?

只愿长相守 提交于 2019-12-13 02:51:10
问题 I have an Ubuntu machine with Ruby 1.8 installed. I copied my Rails application to it, and did bundle install . It installed everything fine. The application requires Ruby 1.9, so I downloaded the Ruby source, compiled, and installed it. When I do ruby -v , I get ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux] , but when I do RUBY_VERSION on rails console , I get 1.8.7 . When I try to run my Rails application, it fails. My Rails application is using the older version of Ruby even when

Problem in setting path for android sdk in ubuntu

最后都变了- 提交于 2019-12-12 10:24:07
问题 export PATH=${/home/mohit/}:<android-sdk-linux_86>/tools this is what i am using.. error:-- bash: PATH=${/home/mohit/}:: bad substitution this is the path of sdk mohit@mohit-laptop:~/android-sdk-linux_86$ pwd /home/mohit/android-sdk-linux_86 回答1: Typically you will use export PATH=${PATH}:<added path here> try that, to append to your $PATH variable, or just remove the ${} and set it directly, if you wish to replace it. Also keep in mind, this change is not permanent unless you add this to

RuntimeError: -ERR Unknown Command running redis gem on Ruby

别说谁变了你拦得住时间么 提交于 2019-12-11 11:23:16
问题 The environment: Ubuntu 9.10 (run within VirtualBox) Ruby v1.8.7 Redis gem v2.0.6 On irb, when I try to initialize Redis I get a RuntimeError . Here's a snippet: irb(main):001:0> require 'rubygems' => true irb(main):002:0> require 'redis' WARNING: using the built-in Timeout class which is known to have issues when used for opening connections. Install the SystemTimer gem if you want to make sure the Redis client will not hang. => true irb(main):003:0> r = Redis.new RuntimeError: -ERR unknown

changed sudo path, command continues not being found

孤人 提交于 2019-12-11 06:01:09
问题 I added export PATH="/home/deltrem/Pedro - Arquivos/play/ps1/linux/pSX:$PATH" to /root/.bashrc , but sudo pSX echoes command not found . 回答1: Are you logging in as root? If so, then you have no need for sudo . If not, then the contents of /root/.bashrc won't matter, since the sudo command gets its path from the environment in which it's run. In other words, it copies your user-level path. Instead, edit the path in your user's .bashrc . 回答2: Is pSX a directory, a file, or both (a directory

Making a Ubuntu executable

╄→尐↘猪︶ㄣ 提交于 2019-12-06 23:32:24
问题 i have made a program in C using the gcc compiler. Right now it has no GUI components. I am compiling it with makefile and running it in the terminal. I need to deploy it so that the executable is standalone. I want the executable to have an icon and when clicked start the program in the terminal. Can anyone tell me how to do this? 回答1: The basics (disclaimer: the following was tested with kubuntu, you might need to make some adjustments for your system) Actually there is a standard to do

How to add other languages to TeX

不问归期 提交于 2019-12-06 07:38:23
问题 In MediaWiki if you add in formulas non english text it cuts. For example if you write \text{щfбb} ( щ and б russian (cyrillic) symbols) output will be fb not щfбb . 回答1: First of all if you have MediaWiki version lower than 1.18 then open file includes/Math.php and find (this code for version 1.16): escapeshellarg( $wgTmpDirectory ).' '; escapeshellarg( $this->tex ).' '; and replace with: escapeshellarg( $wgTmpDirectory ).' '; setlocale(LC_CTYPE, "en_US.utf8"); $cmd .= escapeshellarg( $this-

Making a Ubuntu executable

主宰稳场 提交于 2019-12-05 03:27:30
i have made a program in C using the gcc compiler. Right now it has no GUI components. I am compiling it with makefile and running it in the terminal. I need to deploy it so that the executable is standalone. I want the executable to have an icon and when clicked start the program in the terminal. Can anyone tell me how to do this? The basics (disclaimer: the following was tested with kubuntu, you might need to make some adjustments for your system) Actually there is a standard to do that, not just for Ubuntu but for any number of *nix systems. Consult: http://www.freedesktop.org/wiki/Howto