ubuntu-10.04

Strange characters present in gcc compilation output message on console

♀尐吖头ヾ 提交于 2020-01-14 09:33:13
问题 When I build a C code using gcc, Makefile as below on a Ubuntu 10.04-x32 bit system, under bash shell. The gcc output message has some unwanted characters in the output message(see below: â). test@dualboot-desktop:~/test/opencv$ make cc -L/usr/local/lib -I/usr/local/include/opencv2 -lopencv_imgproc -lopencv_highgui -lopencv_video -lopencv_calib3d test1.c -o test_opencv test1.c: In function âmainâ: test1.c:13: error: too few arguments to function âcvLoadImageâ test1.c:21: error: expected â;â

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

…衆ロ難τιáo~ 提交于 2020-01-12 13:47:43
问题 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

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

给你一囗甜甜゛ 提交于 2020-01-12 13:45:07
问题 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

How do I disable suphp on ubuntu 10.04 server

£可爱£侵袭症+ 提交于 2020-01-05 07:42:26
问题 I have put together a small ubuntu 10.04 server with apache2 and php for use only for testing purposes. I am finding suphp keeps getting in my way. Doubtless this is a useful tool for security etc, but right now, as this is only a local testing ground I would like to disable it to prevent it continually throwing errors relating to file ownership etc. So, as the title says: How do I disable suphp on ubuntu server 10.04. Thanks 回答1: a2dismod suphp -> to disable su php mod 回答2: instead of

How to randomize a list and iterate through the randomized list (bash)

橙三吉。 提交于 2020-01-04 07:26:21
问题 I have written a little bash script that reads commands (one per line), in a text file. At the moment, the script (shown below), is executing the commands in a sequential order (i.e. in the same order entered in the file). I would like help to modify the script below, so that it reads the commands into an array, then randomizes that array (i.e. list) before iterating though the randomized list. This is what I have so far: while read -r -a array do python make_move.py "${array[@]}" done < game

python “ImportError: cannot import name urandom”

Deadly 提交于 2020-01-03 22:57:12
问题 Somehow my python is broken and emits the error: jseidel@EDP15:/etc/default$ python -c 'import random' Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python2.6/random.py", line 47, in <module> from os import urandom as _urandom ImportError: cannot import name urandom This is NOT the virtualenv error that is so commonly documented here and elsewhere: I don't use python directly, I have never setup a virtualenv explicitly, and there is no virtualenv

How to import a .sql file

爷,独闯天下 提交于 2020-01-02 05:14:05
问题 I'm running MySQL on Ubuntu 10.4 LTS and unfortunately I've been experiencing serious problems when it comes to importing a sql file. What I actually do: 1) I move to the directory containing the sql file which is called: bk.sql 2) Then I type : mysql -u root -p (and then I enter the root password and everything goes smoothly) 3) I use this command to do the import operation (assuming that password =123m Database name = Mydb sql file = bk.sql) mysql -u root -p 123m Mydb < bk.sql; What I get

pip not working

徘徊边缘 提交于 2020-01-02 00:40:28
问题 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

pip not working

醉酒当歌 提交于 2020-01-02 00:40:09
问题 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

Rails VERY slow in development using Ubuntu VVM

左心房为你撑大大i 提交于 2020-01-01 19:00:15
问题 I have the following config Ubuntu server 10.04 running on a VirtualBox VM (RAM and cpu usage are low) ruby 1.9.3 rails 3.2.12 webrick If I do any of the things below the system seems to wait for about 15 seconds before executing the command - rake taks - rails s - navigating to a new page in the app Things I have looked at - this is before the sprockets section, and does the same with rake, so at the moment I am not looking at things such as dev-tweaks - I have changed the webrick config.rb