ubuntu-12.04

Python.h missing from Ubuntu 12.04

不羁的心 提交于 2019-11-26 19:21:51
问题 I am very new to python.I installed an openflow controller on my Linux PC (Ubunutu 12.04) called RYU using: sudo pip install ryu I was trying to run a python file using ryu-manager as shown below. sudo ryu-manager simple_switch.py Traceback (most recent call last): File "/usr/local/bin/ryu-manager", line 19, in <module> import gevent ImportError: No module named gevent Then I tried to install gevent using: sudo pip install gevent gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall

convert_tz returns null

自作多情 提交于 2019-11-26 16:07:19
I know this sounds stupid, but when I use SELECT CONVERT_TZ('2004-01-01 12:00:00','UTC','Asia/Jakarta') AS time it outputs NULL. I'm using MySQL Workbench in Ubuntu 12.04 64 bit, and it works in my other laptop/os (also using MySQL Workbench). This will happen if you haven't loaded the time zone table into mysql. mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql I found this thread after spending some time trying to figure out why after running the command in the accepted answer (which is the same on MySQL's dev site) the command was unable to convert between timezones such as

Can&#39;t install any package with node npm

会有一股神秘感。 提交于 2019-11-26 15:34:20
问题 I'm trying to install some node packages through npm, but it won't go. I've already tried to install/unistall/update node, but nothing seems to work. I'm using ubuntu 12.04 - Here is how i'm trying to install packages: npm install underscore npm http GET http://registry.npmjs.org/underscore npm http 404 http://registry.npmjs.org/underscore npm ERR! registry error parsing json npm ERR! SyntaxError: Unexpected token < npm ERR! <html> npm ERR! <head> npm ERR! <meta http-equiv="Content-Type"

Install sbt on ubuntu [closed]

久未见 提交于 2019-11-26 15:23:46
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I have installed sbt on Ubuntu. :~/bin/sbt/bin$ ls classes sbt sbt-launch.jar target jansi.jar sbt.bat sbt-launch-lib.bash win-sbt However, whenever I try to launch sbt (from the same directory where sbt is located) it does not work: No command 'sbt' found, did you mean: Command 'skt' from package 'latex

libz.so.1: cannot open shared object file

青春壹個敷衍的年華 提交于 2019-11-26 12:23:34
问题 I am facing an issue on ubuntu 12.04 as : /usr/lib/ndk/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory I tried sudo apt-get install lib32z1 But it says Reading package lists... Done Building dependency tree Reading state information... Done lib32z1 is already the newest version. 0

Extension mysqli is missing, phpmyadmin doesn&#39;t work

痞子三分冷 提交于 2019-11-26 02:55:54
问题 I have a problem with phpmyadmin on ubuntu 12.04. I have already installed apache2, php5, mysql and phpmyadmin. The phpinfo(); script, don\'t show nothing about mysqli or mysql extension. When I try start phpmyadmin this error appear: ---- **phpMyAdmin - Error** ------- **The mysqli extension is missing. Please check your PHP configuration.** ---- In the php.ini file, I uncommented extension=mysql.so line, but doesn\'t work... Anyone have another posible solution? 回答1: Latest phpMyAdmin

How to install python3 version of package via pip on Ubuntu?

血红的双手。 提交于 2019-11-26 01:26:07
问题 I have both python2.7 and python3.2 installed in Ubuntu 12.04 . The symbolic link python links to python2.7 . When I type: sudo pip install package-name It will default install python2 version of package-name . Some package supports both python2 and python3 . How to install python3 version of package-name via pip ? 回答1: You may want to build a virtualenv of python3, then install packages of python3 after activating the virtualenv. So your system won't be messed up :) This could be something

CronJob not running

我怕爱的太早我们不能终老 提交于 2019-11-26 01:24:52
问题 I have setup cronjob for root user in ubuntu environment as follows by typing crontab -e 34 11 * * * sh /srv/www/live/CronJobs/daily.sh 0 08 * * 2 sh /srv/www/live/CronJobs/weekly.sh 0 08 1 * * sh /srv/www/live/CronJobs/monthly.sh But the cronjon do not run. I have tried checking if the cronjob is running using pgrep cron and that gives process id 3033.The shell scrip is calls python file and is used to send email. Running the python file is ok. There\'s no error in it but the cron doesn\'t