ubuntu-12.04

What is a robust installation process for Nokogiri (on Ubuntu)?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-30 07:22:18
I tried to install Nokogiri on my Ubuntu 12.04 system, and got an error that said " libxslt is missing ", but the libxslt-dev and libxml2-dev are installed. Is there a robust installation process? How can I check the links to dependent libraries? I used RVM, and the RVM pkg is installed too. ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /home/victor/.rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb checking for libxml/parser.h... yes checking for libxslt/xslt.h... yes checking for libexslt/exslt.h... yes checking for iconv_open() in iconv.h... yes checking for

PIP Could not find any downloads that satisfy the requirement SQLAlchemy

≡放荡痞女 提交于 2019-11-30 06:55:44
问题 Ubuntu 12.04 Apache 2.2.22 pip has stopped working on my ubuntu server and gives the below error when I try to download anything. $ sudo pip install SQLAlchemy Downloading/unpacking SQLAlchemy Cannot fetch index base URL http://pypi.python.org/simple/ Could not find any downloads that satisfy the requirement SQLAlchemy No distributions at all found for SQLAlchemy Storing complete log in /home/user/.pip/pip.log All of the below also do not work $ sudo pip install --upgrade pip $ sudo apt-get

Upgrade GCC 4.6.3 on Ubuntu 12.04 to 4.8.2

坚强是说给别人听的谎言 提交于 2019-11-30 05:26:59
I'm about to update default GCC (version 4.6.3) shipped by Ubuntu 12.04 to 4.8.2, though the compilation requires a standalone C++ compiler admin@ubuntu: /usr/local/gcc_build$ sudo make ends up with configure: error: C++ compiler missing or inoperational make[2]: *** [configure-stage1-libcpp] Error 1 Therefore I turn to the process of g++ installation with a preference to the latest version, which means that I would like to compile from source directly rather than apt-get . But seriously, I can't find the source anyway!(O_o). On the other hand, does the source of GCC also come along with that

How to install CLang using precompiled binaries?

三世轮回 提交于 2019-11-30 01:57:51
How do I install CLang on Ubuntu, using precompiled binaries of CLang that I downloaded? Here's how I downloaded CLang: "LLVM Download Page" -> "Download LLVM 3.2" -> "Clang Binaries for Ubuntu-12.04/x86_64" ( http://llvm.org/releases/3.2/clang+llvm-3.2-x86_64-linux-ubuntu-12.04.tar.gz .) Then, I expanded the archive into a folder on my Ubuntu 12.04 LTS 64-bit machine. The contents of the expanded folder look like this: $ ls clang+llvm-3.2-x86_64-linux-ubuntu-12.04 bin docs include lib share Question: What do I do next? Do I have to copy these into some folders myself, and if so, which ones

Can't start MySQL5.5 on Ubuntu 12.04 - “dpkg: dependency problems”

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 01:45:09
This appears to be a common problem on 12.04. I've tried everthing in this thread including: sudo apt-get clean sudo apt-get autoclean sudo apt-get remove --purge mysql-client-5.5 mysql-client-core-5.5 mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5 sudo apt-get install mysql-server I still get the same old error. Installing/starting MySql5.5 looks like this: apt-get install -f mysql-server Reading package lists... Done Building dependency tree Reading state information... Done mysql-server is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not

wkhtmltopdf patched qt?

倖福魔咒の 提交于 2019-11-30 01:34:21
问题 I'm trying to convert multiple URLs to PDF. However, when I compile wkhtmltopdf or run apt-get install wkhtmltopdf and try, it says: Error: This version of wkhtmltopdf is build against an unpatched version of QT, and does not support more then one input document. If I use the static version, I get Segmentation fault error. How do I build wkhtmltopdf against a patched version of QT, or are there any other solutions besides converting one by one and reuniting? My OS is Ubuntu 12.04 64-bit.

Where is SCALA_HOME on Ubuntu?

给你一囗甜甜゛ 提交于 2019-11-30 01:28:39
I installed Scala on Ubuntu using the following sudo apt-get install scala ~$ which scala /usr/bin/scala ~$ whereis scala scala: /usr/bin/scala /usr/bin/X11/scala /usr/share/man/man1/scala.1.gz ~$ scala -version Scala code runner version 2.9.1 -- Copyright 2002-2011, LAMP/EPFL My question is what should I put in the variable SCALA_HOME? /usr/bin ? Tim Perry Today I installed scala using "apt-get install scala" and confirmed the scala jar files are located in /usr/share/java You should be able to set your SCALA_HOME to /usr/share/java and have it all work. I assume you want to use NetBeans so

How to enable mod_rewrite in LAMP on ubuntu? [closed]

て烟熏妆下的殇ゞ 提交于 2019-11-30 00:25:58
I'm using Ubuntu 12.04 LTS linux on my machine. I've already installed LAMP on it. Now I want to enable the mod_rewrite module. I did google a lot and tried lots of tricks but couldn't be able to enable mod_rewrite. Can anyone help me to enable the mod_rewrite? Thanks in advance. TL;DR version -- do the following in your terminal: sudo a2enmod rewrite && sudo service apache2 restart With explanations -- do the following in your terminal: ls -l /etc/apache2/mods-available/rewrite.load ///if it prints out rewrite.load, it's there and ready to go sudo a2enmod rewrite //enables the mod ls -l /etc

Clang linker issues (from source, to gcc-snapshot)

限于喜欢 提交于 2019-11-29 22:31:36
问题 I cannot seem to get this to work. I configured with the --with-gcc-toolchain= where after the equals I put the directory where gcc was ( /usr/lib/gcc-snapshot/bin ). I also looked into the answers to " clang linker problem" but I do not see how I can get the accepted answer to find the correct location, and the symlink answer would have worked, except that all of the directories that it is searching exist (copying the lib folder from gcc-snapshot to one of the include locations does not seem

nginx not listening to port 80

我是研究僧i 提交于 2019-11-29 20:23:26
I've just installed a Ubuntu 12.04 server and nginx 1.2.7, removed default from sites-enabled and added my own file into sites-available and symlink at sites-enabled . Then restarted nginx. Problem: However going to the URL does not load the site. netstat -nlp | grep nginx and netstat -nlp | grep 80 both returns no results! lsof -i :80 also returns nothing. A dig from another server returns the correct ip address so it shouldn't be a DNS problem. I was able to connect to apache which I have now stopped its service. nginx logs also show nothing. How should I troubleshoot this problem? /etc