ubuntu-11.04

Ubuntu 11.04: Installing GCC 4.4.6

纵饮孤独 提交于 2019-12-10 23:51:37
问题 I am trying to install GCC 4.4.6 on Ubuntu 11.04 64 bit and having some trouble. As the package does not ship with this distribution I try to build it from source. It needs GMP and MPFR which I installed from the package system. I am using distinct source, build and install directories as advised. Target=build=host. Except --prefix I do not give any configure options: gcc-4.4.6/configure --prefix=[absolute_path]/install/gcc-4.4.6 These environment variables are also used: CXX=/usr/bin/g++-4.4

How to use Octave libraries with C++

邮差的信 提交于 2019-12-10 18:05:38
问题 This is my first question here, so sorry in forward if it is not well formulated or stupid. I am trying to use the octave libraries with C++ I am using Qt creator on Ubuntu (linux noob) #include "octave/oct.h" int main(int argc, char *argv[]) { QApplication a(argc, argv); Matrix matrix(3,4); return a.exec(); } At first I got some undefined references errors. I figured out the program is missing libraries, so I looked for the library "liboctave.so". I found it in usr/lib/octave-3.2.4. To be

Installing pyinterval in ubuntu

一曲冷凌霜 提交于 2019-12-10 16:54:59
问题 I am trying to install the python library pyinterval. It requires the crlibm C headers which I have installed without error, but seem to be at the root of the problem. When I run: $ sudo easy_install pyinterval I get the following: Searching for pyinterval Reading http://pypi.python.org/simple/pyinterval/ Reading http://pyinterval.googlecode.com/ Best match: pyinterval 1.0b21 Downloading http://pypi.python.org/packages/source/p/pyinterval/pyinterval-1.0b21.tar.gz#md5

Different php versions showing in terminal and browser in ubuntu 11.10

做~自己de王妃 提交于 2019-12-10 15:56:44
问题 when i use php -v in terminal showing PHP 5.3.6-13ubuntu3.9 with Suhosin-Patch (cli) (built: Sep 12 2012 19:02:11) Copyright (c) 1997-2011 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies But when i print phpinfo in file and execute that script in browser I got "PHP Version 5.2.17". My main problem is soap is not showing in browser but soap is showing in terminal. How to resolve this problem in ubuntu 11.10. Thanks in Advance. 回答1: They use the different php.ini

How to enable global menu bar for Emacs on Ubuntu (Unity 11.04)

孤人 提交于 2019-12-09 17:44:28
问题 I use latest Ubuntu 11.04 which has Unity desktop. I am learning to use Emacs 23. As you know, Unity has top panel. I want to enable global menu bar for Emacs so that I could save valuable screen space. (I use small screen laptop) How to enable global menu bar? Your help will be much appreciated. Thank you. 回答1: appmenu-gtk (which provides the global menu bar) specifically blacklisted emacs since it does not play nicely together so unfortunately you probably can't use it with emacs. 回答2: Use

Disable or remove apc

好久不见. 提交于 2019-12-09 13:35:15
问题 I installed APC on my ubuntu 11.04 linux and I want to make some performance benchmarks to see what's the speed improvement over PHP without APC but I don't know how to disable/remove the APC. I tried to empty my apc.ini files but it didn't worked. Still after I load a page for the first time, the page will be stored in the cached and the second time I load the page, it loads much faster. Here's a PHP file that I use to measure the time. <?php function getTime() { $a = explode (' ',microtime(

OpenCV, Ubuntu 11.04

為{幸葍}努か 提交于 2019-12-08 03:40:06
问题 I've been trying to install OpenCV 2.2 on Ubuntu 11.04. As far as I can gather from here: linux/videodev.h : no such file or directory - OpenCV on ubuntu 11.04, the installation fails because video4linux is no longer in the kernel. If I follow the guide linked to in the above thread (http://tech.groups.yahoo.com/group/OpenCV/message/79758), the make-command passes the initial error described in the above thread, but fails at a later point. I get the error: Linking CXX executable ../../bin

MongoDB is not installed properly on Ubuntu 11.04 in Amazon EC2

佐手、 提交于 2019-12-07 09:59:33
I'm trying to install MongoDB on my Ubuntu 11.04 AMI in Amazon EC2. I allowed 27017 port in security option. The problem is that I can use "mongo OTHER IP ADDRESS" to access to other mongoDB. But simply "mongo" does not simply give me access to localhost mongoDB. mongoDB shell shows like it is about to work but it stops at MongoDB shell version: 1.8.3 connecting to: test If it is truly connected, it should give me ">" but it doesn't and freezes. I couldn't find answer on freezing problem by googling myself. Also any tips on running mongoDB as daemon or running in background? Be sure to use 0.0

Facing error installing mysql2 gem

坚强是说给别人听的谎言 提交于 2019-12-06 13:35:29
Rails ask me to succeed with gem install mysql2 and on trying I got the following error.So what is mostly problem with such error? Detail of error is below: Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/local/bin/ruby --with

How to setup a OpenGL developement environment without Mesa

人盡茶涼 提交于 2019-12-06 09:40:34
According to what i read here: http://www.linuxquestions.org/questions/linux-software-2/opengl-vs-mesa-whats-the-diff-351037/ Mesa is software rendering, while driver OpenGL is hardware rendering. Every tutorial i came accross only show how to install Mesa. How can i set up a true (hardware accelerated) openGL? Does installing driver install the header? If so, which header? If i have a program compilled with mesa, do i have to recompile it to take the advantage of hardware accelerated? If installing the driver install the required library and header, what happen to mesa? From the last post on