ubuntu-11.04

Installing Percona/MySQL unattended on Ubuntu

吃可爱长大的小学妹 提交于 2019-11-30 12:01:45
问题 I can install MYSQL on Ubuntu without prompts with the code below: dbpass="mydbpassword" export DEBIAN_FRONTEND=noninteractive echo mysql-server-5.1 mysql-server/root_password password $dbpass | debconf-set-selections echo mysql-server-5.1 mysql-server/root_password_again password $dbpass | debconf-set-selections apt-get -y install mysql-server The part with the debconf-set-selections I got somewhere online (could be here can't remember) and it has worked ok for me thus far. I'm not that much

Enable PHP support for postgresql in Ubuntu 11.04 server

早过忘川 提交于 2019-11-30 11:02:53
I've installed Apache2 with php5 support and everything works there. I've installed PostgreSQL and am able to connect to it using the terminal and execute SQL statements. PROBLEM: I can't get a working connection between my php scripts and the PostgreSQL database. I have installed the php5-pgsql packaged from the repositories, but the connection just won't work. I get the following error message: PHP Fatal Error: Call to undefined function pg_connect() in /var/www/[myfile].php on line [X] How do I enable support for PostgreSQL connections in PHP5 in ubuntu 11.04? EDIT: Checked phpinfo() and

Installing Percona/MySQL unattended on Ubuntu

混江龙づ霸主 提交于 2019-11-30 01:54:50
I can install MYSQL on Ubuntu without prompts with the code below: dbpass="mydbpassword" export DEBIAN_FRONTEND=noninteractive echo mysql-server-5.1 mysql-server/root_password password $dbpass | debconf-set-selections echo mysql-server-5.1 mysql-server/root_password_again password $dbpass | debconf-set-selections apt-get -y install mysql-server The part with the debconf-set-selections I got somewhere online (could be here can't remember) and it has worked ok for me thus far. I'm not that much of an expert to understand how it works but it does. However, I want to do the same thing for Percona.

C++ boost libraries shared_memory_object undefined reference to 'shm_open'

╄→гoц情女王★ 提交于 2019-11-30 00:49:42
问题 I tried to compile the following code on ubuntu 11.04: #include <boost/interprocess/shared_memory_object.hpp> #include <iostream> int main() { boost::interprocess::shared_memory_object shdmem(boost::interprocess::open_or_create, "Highscore", boost::interprocess::read_write); shdmem.truncate(1024); std::cout << shdmem.get_name() << std::endl; boost::interprocess::offset_t size; if (shdmem.get_size(size)) std::cout << size << std::endl; } only to get the following errors: /tmp/cc786obC.o: In

linux/videodev.h : no such file or directory - OpenCV on ubuntu 11.04

青春壹個敷衍的年華 提交于 2019-11-29 20:23:31
I tried to install OpenCV2.2 on Ubuntu 11.04. But OpenCV compilation fails stating an error related to linux/videodev.h file. File available in /user/includes/linux is named videodev2.h. /home/user/OpenCV-2.2.0/modules/highgui/src/cap_v4l.cpp:217:28: fatal error: linux/videodev.h: No such file or directory compilation terminated. make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_v4l.o] Error 1 make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2 make: *** [all] Error 2 Is there a solution for this ? thank you. Alberto sudo apt-get install libv4l-dev

does using “:platforms =>” in your gemfile work?

帅比萌擦擦* 提交于 2019-11-29 03:32:49
I have a Rails app that I'm developing on Windows and deploying to Linux. I suspect I'll just switch entirely over to Linux in the future. Anyway, on Linux I need 'execjs' and 'therubyracer' but I don't need those in Win7. So I put these lines in my gemfile: gem 'therubyracer', :platforms => :ruby gem 'execjs', :platforms => :ruby Ran a bundle install on the Linux VM and the app started up fine. But on Windows I get: Uncaught exception: Could not find execjs-1.2.11 in any of the sources Now, from what I read ( here under PLATFORMS) it tells me that "If a gem should only be used in a particular

Android Emulator is not starting in Ubuntu

那年仲夏 提交于 2019-11-28 23:51:00
I have Ubuntu 11.04 and i downloaded latest eclipse ADT bundle, i also have installed all ia32libs , i dont know why the emulator is not starting, i have tried various device configurations, i have 4 platforms 2.2, 2.3 , 4.0 ,4.2. i have tried various permutation and combination, but virtual device does not show up-none of them. I have also tried various solutions in other SO'questions, they do not solve my problem. i have been stuck in these for weeks , still i have reached no where?Please Help FYI: I also have eclipse Helios, in that it works fine but, i cannot get/download platform above 3

Hadoop: «ERROR : JAVA_HOME is not set»

大城市里の小女人 提交于 2019-11-28 19:07:59
I'm trying to install Hadoop on Ubuntu 11.10. I set the JAVA_HOME variable in the file conf/hadoop-env.sh to: # export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk and then I execute these commands (Standalone Operation): $ mkdir input $ cp conf/*.xml input $ bin/hadoop jar hadoop-examples-*.jar grep input output 'dfs[a-z.]+' $ cat output/* but I have the following error when executing the third command: ERROR : JAVA_HOME is not set Is the JAVA_HOME variable not set correctly? user1489515 Make sure that you have removed the comment tag and changed your JAVA_HOME in the hadoop-env.sh as well as

linux/videodev.h : no such file or directory - OpenCV on ubuntu 11.04

微笑、不失礼 提交于 2019-11-28 16:25:35
问题 I tried to install OpenCV2.2 on Ubuntu 11.04. But OpenCV compilation fails stating an error related to linux/videodev.h file. File available in /user/includes/linux is named videodev2.h. /home/user/OpenCV-2.2.0/modules/highgui/src/cap_v4l.cpp:217:28: fatal error: linux/videodev.h: No such file or directory compilation terminated. make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_v4l.o] Error 1 make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2 make: ***

supervisord stopping child processes

▼魔方 西西 提交于 2019-11-28 16:12:21
问题 One of the problems, I face with supervisord is that when I have a command which in turn spawns another process, supervisord is not able to kill it. For example I have a java process which when runs normally is like $ zkServer.sh start-foreground $ ps -eaf | grep zk user 30404 28280 0 09:21 pts/2 00:00:00 bash zkServer.sh start-foreground user 30413 30404 76 09:21 pts/2 00:00:10 java -Dzookeeper.something..something The supervisord config file looks like: [program:zookeeper] command=zkServer