ubuntu-12.04

Error libGL.so: cannot open shared object file using Android emulator

為{幸葍}努か 提交于 2019-12-03 05:33:59
问题 I was trying to run android emulator in Ubuntu 12.04(64-bit). But, I got the following errors. Starting emulator for AVD 'emulatr' Failed to load libGL.so error libGL.so: cannot open shared object file: No such file or directory Failed to load libGL.so error libGL.so: cannot open shared object file: No such file or directory emulator: emulator window was out of view and was recentered After using locate libGL. I found /home/adnan/android-sdk-linux/tools/lib/libGL.so /usr/lib/libGL.so /usr/lib

What is the difference between ServerName and ServerAlias in apache2 configuration?

孤者浪人 提交于 2019-12-03 05:24:41
I am configurating my apache2 server and I wonder whats the difference between ServerName and ServerAlias. Is the ServerName always a name without www as like google.de and the ServerAlias is www.google.de Even if it's like this, I don't get it :) sorry. I am not a professional (now) so thank you for your help! Every help will upvoted immediately. From the Documentation : ServerName : Hostname and port that the server uses to identify itself ServerAlias : Alternate names for a host used when matching requests to name-virtual hosts Most people simply use ServerName to set the 'main' address of

postgres, ubuntu how to restart service on startup? get stuck on clustering after instance reboot

随声附和 提交于 2019-12-03 04:41:14
问题 I have a Postgres db 9.1 running on AWS EC2 , with ubuntu 12.04 . I messed a lot with the instance (i.e installed all kinds of postgres X.X before i settled on 9.1). Now after a month working on that db, I discovered that if I restart my instance postgres doesn't load correctly, its status says "Running clusters". this will last forever until I sudo service postgresql restart from terminal, and then it works again. How do I add this line, to ubuntu startup so that each time it loads, it will

MySQL Job failed to start

試著忘記壹切 提交于 2019-12-03 03:17:56
问题 I'm on Kubuntu 12.04, and after installing mysql via an apt-get (mysql ver: 5.5.35), i'm trying to start mysql service, but I got this error: sudo service mysql start start: Job failed to start So I googled this problem, it says i have to go to the /var/log/mysql/error.log But my error.log file is empty :( Then I checked the permissions : drwxr-s--- 2 mysql adm 4096 Apr 7 11:21 mysql -rw-r----- 1 mysql adm 0 Apr 7 11:21 error.log So I don't know what to do... Why this error ? Why is the error

How to compile avconv with libx264 on Ubuntu 12.04 LTS (Precise Pangolin)?

孤者浪人 提交于 2019-12-03 02:51:36
问题 Is there a step-by-step guide on how to compile avconv in Ubuntu? It seems hard to search for any tutorial with avconv compared to ffmpeg . 回答1: I finally found out how, 1.) Make a directory avconv-source mkdir avconv-source 2.) Download and install the x264 library cd ~/avconv-source git clone git://git.videolan.org/x264.git x264 cd x264 sudo ./configure --enable-static sudo make sudo make install 3.) Download the avconv source cd ~/avconv-source git clone git://git.libav.org/libav.git

cannot locate .npmrc file after installing nodejs and npm on ubuntu 12.04

 ̄綄美尐妖づ 提交于 2019-12-03 02:35:27
I just followed a tutorial to install nodejs and npm on my ubuntu 12.04. https://gist.github.com/dwayne/2983873 now after installing both are working fine. I checked them by node -v npm -v They seem to give me desired result. My question is I am not able to locate .npmrc file. Is n't it weird. I want to know is it created by default when we install npm ? or should I create it myself.? There can be per-user, global and built-in npmrc configs. So don't worry about if there is no .npmrc file in your home directory. userconfig may or may not exist. You can check the documentation on npm

How to install PyQt on Ubuntu 12.04 with python 2.7?

倖福魔咒の 提交于 2019-12-03 02:32:26
There may be some similar questions like this one , but I didn't find any answer for me. I tried some ways to do it like: sudo aptitude install python-qt4-dev python-sip4 python-sip4-dev from: https://groups.google.com/forum/#!topic/mnemosyne-proj-devel/VQQzjhARWoA I tried: sudo aptitude install python-qt4 from: http://www.saltycrane.com/blog/2008/01/how-to-install-pyqt4-on-ubuntu-linux/ Every time after above installations I got error: $python2.7 Python 2.7.3 (default, Aug 1 2012, 05:14:39) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import

Ubuntu 12 - how to install Ruby and Rails correctly [closed]

天大地大妈咪最大 提交于 2019-12-03 02:20:17
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I read a lot of articles regarding installing Ruby 1.9 and Ruby on Rails 3.2.3 on Ubuntu 12 . And I've installed them previously. But

SmartGit Installation and Usage on Ubuntu

*爱你&永不变心* 提交于 2019-12-03 01:28:31
问题 I have downloaded latest SmartGit installation and each time I want to use it I need to run script smartgit.sh from SmartGit bin directory, this process requires the same repository setup every time. What it correct way of installing SmartGit on Ubuntu? Thus I can have normal icon and run the program from state of previous usage, without configuring repositories every time. Thanks. 回答1: What it correct way of installing SmartGit on Ubuntu? Thus I can have normal icon In smartgit/bin folder,

ImportError: No module named datetime

余生颓废 提交于 2019-12-03 01:01:39
When I upgrade my Ubuntu into 14.04 from 12.04, this time I get this error: ImportError: No module named datetime This happened to me when I created a virtualenv and then upgraded from 12.04 to 14.04. I had to delete my virtualenv and recreate it, and after doing that, everything worked again. artisare Just run this command. It worked like a charm! $ cp /usr/bin/python2.7 $(which python2.7) This just happened to me after the 14.10 update, and it seems to be because my virtual environments have old copies of /usr/bin/python2.7 that — unlike the new binary — do not include datetime built-in, and