problem about ubuntu-11.10-Collection of common programming errors

  • Mark
    php unit-testing phpunit ubuntu-11.10
    I get the following error when I try to run phpunit . from within my project’s tests folder:PHP Fatal error: Call to undefined method PHP_CodeCoverage_Filter::getInstance() in /usr/share/php/PHPUnit/Framework.php on line 46I installed PHPUnit via these commands:sudo pear channel-discover sudo pear channel-discover sudo pear install –alldeps phpunit/PHPUnitAs none of the other methods seem to work, including apt-get.I think CodeCoverage changed their singleton pattern at some point in time and hence removed getInstance but I don’t know how to fix this error. How can I either downgrade CodeCoverage or upgrade PHPUnit? I

  • Matt Norris
    build couchdb ubuntu-11.10
    I’m trying CouchDB on Ubuntu 11.10. Several tests were failing, so I followed this article’s advice and tried to install from build-couchdb, but I’m getting some nasty errors trying to start couchdb after a successful build. Does anyone know what this crash report means? Does anyone know why 1.0.1 would be installed, and not the latest build version 1.1.0? Thanks!$ build/bin/couchdbApache CouchDB 1.0.1 (LogLevel=info) is starting.=CRASH REPORT==== 8-Jan-2012::22:19:54 ===crasher:initial call: couch_event_sup:init/1pid: registered_name: []exception exit: {{badmatch,{‘EXIT’,{{badmatch,{error,enoent}},[{couch_log,init,1},{gen_event,server_add_handler,4},{gen_e

  • OtagoHarbour
    c++ opencv netbeans-7 ubuntu-11.10
    I am using NetBeans 7.0.1 to develop C++ applications using OpenCV 2.4.0 on Ubuntu 11.10. When I try to build the application I get the following link error messages.undefined reference to `cvCreateSubdivDelaunay2D(CvRect, CvMemStorage*)’ undefined reference to `cvSubdivDelaunay2DInsert(CvSubdiv2D*, cv::Point_)’I have linked to the following libraries.libopencv_calib3d_pch_dephelp.a libopencv_contrib_pch_dephelp.a libopencv_core_pch_dephelp.a libopencv_features2d_pch_dephelp.a

  • Jepzen
    ruby-on-rails netbeans-6.9 ubuntu-11.10
    2 days ago i succesfully installed Ruby On Rails and started playing with a tutorial. Every was going fine and ws happy. Then today I wanted to continue my tutorial but something did work as usal. First i got this error Acti

  • Byakugan
    ubuntu compiler-errors ubuntu-11.10 ace
    I own Ubuntu 11.10 (GNU/Linux 3.0.0-18-server x86_64) and I am Trying to instal Single ACE 6.1.1 with this manual: has change since version 6.0.7 I think so it makes some errors aft

  • artyomszasa
    c++ ubuntu linker glib ubuntu-11.10
    I have problems clinking simplest program on Ubuntu/Oneiric:#include int main() {Glib::ustring s = “Test string”; }using MakefilePACKAGES=glibmm-2.4 glib-2.0 gtkmm-3.0 gtk+-3.0 CC=g++ CFLAGS=`pkg-config –cflags $(PAC

  • Loki Astari
    c++ qt ubuntu-10.10 libjpeg ubuntu-11.10
    I have a program in c++ that was working and compiling on ubuntu 10.10. However, when i upgraded to 11.10 i started to get this error message:g++ -rdynamic -o ../../../bin/camera Camera.o main.o moc_Camera.o -L/home/myusername/Desktop/project/lib -L/usr/lib/i386-linux-gnu -ljpeg -lcfitsio -lavcodec -lavformat -lswscale -lfftw3 -lfftw3f -lcv -lgdal1.7.0 -lmatrox_fake -lbacktrace -lexceptions -limage -limage_display -lio -ljpeg_image -llog -lmetadata -lpipe -lpipebrowser -lplumber -lplumbing -lqt -lserial -ltime -lwebcam -Wl,-R/home/myusername/Desktop/project/lib -lQtXml -lQtGui -lQtCore -lpthread /home/myusername/Desktop/project/lib/ undefined reference to `jpeg_resync_to_restart’ /home/myusername/Desktop/project/lib/ undefined reference to `company::pipe::PipeBrowser::PipeBrowser()’ /home/myusername/Desktop/project/lib/ undefined reference to `jpeg_std_error’ /home/myusername/Desktop/project/lib/ undefined reference to `jpeg_CreateDecompress’ /home/myusername/Desktop/project/lib/ undefined refer

  • Jack
    c gcc ubuntu-11.10
    I am migrating from Ubuntu 10.04 to Ubuntu 11.10 (oneiric), but I have probrems when I try compile some applications that works fine on Ubuntu 10.04 no changes.I installed the sqlite3 and unac libraries, the same that I use on Ubuntu 10.4. I’ve installed using the followings commands:sudo su apt-get install libunac1-dev apt-get install sqlite3 apt-get install libsql

  • Paul Williams
    c++ ubuntu g++ ubuntu-11.10
    I am writing a simple proof of concept C++ application (available at compiled using twitcurl using the exact instructions at . I can compile and install twitcurl without problem, and I can compile and execute my application on Natty Narwhal. However, compiling my app (via the Makefile) on Oneiric Ocelot gives me the following linking problem:g++ -ltwitcurl twitterClient.cpp -o twitterClient /tmp/ccbxmSF3.o: In function `main’: twitterClient.cpp:(.text+0x1f7): undefined reference to `twitCurl::twitCurl()’ twitterClient.cpp:(.text+0x22e): undefined reference to `twitCurl::setTwitterUsername(std::basic_string&)’ twitterClient.cpp:(.text+0x247): undefined reference to `twitCurl::setTwitterPassword(std::basic_string&)’ twitterClient.cpp:(.text+0x280): undefined reference to `twitCurl::getOAuth()’ twitterClient.cpp:(.text+0x292): undefined reference to `oAuth::setConsumerKey(std::basic_string const&)’ twitterClient.cpp:(.text+0x2e9): undefined reference to `twitCurl::getOAuth()’ twitterClient.cpp:(.text+0x2fb): undefined reference to `oAuth::setConsumerSecret(st

  • Edwin
    ruby rubygems nokogiri ubuntu-11.10
    Real quick, I am aware of a similar question. However, following the top rated answer does not work. I’ve already restarted my system and the terminal, but to no avail.For some reason, Nokogiri does not recognize that I have libxslt1-dev installed, though I explicitly installed it, both with sudo apt-get install libxslt-dev and sudo apt-get install libxslt1-dev.Here’s the output; am I missing anything else?$ gem install nokogiri -v ‘1.5.2’ Building native extensions. This could take a while… ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension.~/.rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb extconf.rb:10: Use RbConfig instead of obsolete and deprecated Config. 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… no checking for iconv_open() in -liconv… yes checking for xmlParseDoc() in -lxml2… yes checking for xsltParseStylesheetDoc() in -lxslt… no —– libxslt is missing. please visit for help with installing dependencies. —– *** extconf.rb failed *** 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:List of optionsGem files will remain installed in ~/.rvm/gems/[email protected]/gems/nokogiri-1.5.2 for inspection. Results logged to ~/.rvm/gems/[email protected]/gems/nokogiri-1.5.2/ext/nokogiri/gem_make.outEDIT: Upon closer inspection, I realize that the installer recognizes that I have libxslt1-dev installed, but it’s failing one of the tests. Did I do something wrong with the installation?EDIT 2: I am trying to install capybara with bundle install, and among its several dependencies, nokogiri and selenium-webdriver cannot find libxslt, and therefore I cannot use capybara.EDIT 3: Here’s the error message from the mkmf.log file; let me know if you need the rest of it.——————–find_library: checking for xsltParseStylesheetDoc() in -lxslt… ——————– no”gcc -o conftest -I${HOME}/.rvm/rubies/ruby-1.9.3-p125/include/ruby-1.9.1/x86_64-linux -I${HOME}/.rvm/rubies/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/backward -I${HOME}/.rvm/rubies/ruby-1.9.3-p125/include/ruby-1.9.1 -I. -I/opt/local/include/libxml2 -I/usr/local/include/libxml2 -I${HOME}/.rvm/rubies/ruby-1.9.3-p125/include/libxml2 -I/opt/local/include -I/usr/local/include -I${HOME}/.rvm/rubies/ruby-1.9.3-p125/include -I/usr/include -I/usr/include/libxml2 -I${HOME}/.rvm/usr/include -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC -g -DXP_UNIX -O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline conftest.c -L. -L${HOME}/.rvm/rubies/ruby-1.9.3-p125/lib -Wl,-R${HOME}/.rvm/rubies/ruby-1.9.3-p125/lib -L/opt/local/lib -Wl,-R/opt/local/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L${HOME}/.rvm/rubies/ruby-1.9.3-p125/lib -Wl,-R${HOME}/.rvm/rubies/ruby-1.9.3-p125/lib -L/usr/lib -Wl,-R/usr/lib -L${HOME}/.rvm/usr/lib -Wl,-R${HOME}/.rvm/usr/lib -L. -rdynamic -Wl,-export-dynamic -lxml2 -liconv -Wl,-R -Wl,${HOME}/.rvm/rubies/ruby-1.9.3-p125/lib -L${HOME}/.rvm/rubies/ruby-1.9.3-p125/lib -lruby -lxslt -lxml2 -liconv -lpthread -lrt -ldl -lcrypt -lm -lc ” conftest.c: In function ‘t’: conftest.c:5:53: error: ‘xsltParseStylesheetDoc’ undeclared (first use in this function) conftest.c:5:53: note: each undeclared identifier is reported only once for each function it appears in conftest.c:5:28: warning: variable ‘p’ set but not used [-Wunused-but-set-variable] checked program was: /* begin */ 1: #include “ruby.h” 2: 3: /*top*/ 4: int main() {return 0;} 5: int t() { void ((*volatile p)()); p = (void ((*)()))xsltParseStylesheetDoc; return 0; } /* end */”gcc -o conftest -I${HOME}/.rvm/rubies/ruby-1.9.3-p125/include/ruby-1.9.1/x86_64-linux -I${HOME}/.rvm/rubies/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/backward -I${HOME}/.rvm/rubies/ruby-1.9.3-p125/include/ruby-1.9.1 -I. -I/opt/local/include/libxml2 -I/usr/local/include/libxml2 -I${HOME}/.rvm/rubies/ruby-1.9.3-p125/include/libxml2 -I/opt/local/include -I/usr/local/include -I${HOME}/.rvm/rubies/ruby-1.9.3-p125/include -I/usr/include -I/usr/include/libxml2 -I${HOME}/.rvm/usr/include -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC -g -DXP_UNIX -O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline conftest.c -L. -L${HOME}/.rvm/rubies/ruby-1.9.3-p125/lib -Wl,-R${HOME}/.rvm/rubies/ruby-1.9.3-p125/lib -L/opt/local/lib -Wl,-R/opt/local/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L${HOME}/.rvm/rubies/ruby-1.9.3-p125/lib -Wl,-R${HOME}/.rvm/rubies/ruby-1.9.3-p125/lib -L/usr/lib -Wl,-R/usr/lib -L${HOME}/.rvm/usr/lib -Wl,-R${HOME}/.rvm/usr/lib -L. -rdynamic -Wl,-export-dynamic -lxml2 -liconv -Wl,-R -Wl,${HOME}/.rvm/rubies/ruby-1.9.3-p125/lib -L${HOME}/.rvm/rubies/ruby-1.9.3-p

  • roofer
    qt opengl qt4 ubuntu-11.10
    I have the same error than here. There’s no solution there and also I’m gonna try to explain it more clearly so hopefully someone has the solution. Also I’ve installed everything from the answer to this question.I’m trying to compile a program that a friend has done in QT (linux). I’ve tryed it on Windows and it runs just fine, the problem is that I can’t run it on Ubuntu 11.10.This is the compiling output at QT:… glwidget.o:glwidget.cpp:function GLWidget::resizeGL(int, int): error: undefined reference to ‘gluOrtho2D’ glwidget.o:glwidget.cpp:function GLWidget::projectScene(): error: undefined reference to ‘gluOrtho2D’ make: Leaving directory… collect2: ld returned 1 exit status make: *** [QTapplication] Error 1 …glu.h and gl.h are #included. QT += opengl is put at the .proI don’t know if it’s problem of Ubuntu 11.10. I’ve read that it has some problems with the linker though I downloaded “binutils-gold” that supposedly fixed it. Also I’ve tryed to add manually the library with right click over the projects’ .pro->Add Librarys, but it won’t let me add nothing at “/usr/include/GL”.Finally, here’s the complete compile output:make: Entering directory `/home/daniel/Escritorio/Practica3-build-desktop-Desktop_Qt_4_8_0_for_GCC__Qt_SDK__Release’ g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../QtSDK/Desktop/Qt/4.8.0/gcc/mkspecs/linux-g++ -I../Practica3 -I../../QtSDK/Desktop/Qt/4.8.0/gcc/includ

  • starter

  • SetJmp
    ubuntu openssl symbol ubuntu-11.10
    Is Canonical renaming symbols in their package version of openssl, and if so for what purpose? When I compile openssl-1.0.0e.tar.gz (downloaded from directly) from scratch I see the necessary symbol, but Python (and I) can’t seem to find it in the packaged version. Read on for more information about how I diagnosed this

  • Ben Lee
    windows-7 ubuntu dual-boot grub2 ubuntu-11.10
    I know a lot of people are having problems similar to this one, but I don’t think this is a duplicate. My situation is a bit different and none of the solutions that are working for other people have worked for me.I have two hard drives, one with just one primary partition (sdb) and one with several partitions (sda). My fdisk -l looks like this:Disk /dev/sdb: 750.2 GB, 750156374016 bytes 16 heads, 63 sectors/track, 1453521 cylinders, total 1465149168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x316f8b1cDevice Boot Start End Blocks Id System /dev/sdb1 * 63 1465145135 732572536+ 7 HPFS/NTFS/exFATDisk /dev/sda: 320.1 GB, 320072933376 bytes 210 heads, 6 sectors/track, 496144 cylinders, total 625142448 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xeb0feb0fDevice Boot Start End Blocks Id System /dev/sda1 * 6 206847899 103423947 7 HPFS/NTFS/exFAT /dev/sda2 206847998 625141759 209146881 5 Extended /dev/sda5 206848000 616753151 204952576 83 Linux /dev/sda6 616755200 625141759 4193280 82 Linux swap / SolarisI have Ubuntu 11.10 installed on sda5 and windows 7 installed on sdb1 (I’m not sure what’s on the primary partition /dev/sda1 — some old operating system I don’t care about). I installed Windows first, then installed Ubuntu. I’m using grub as my boot loader, and I’m able to boot to Ubuntu (and using it now) but at first update-grub2 didn’t even see Windows 7. After searching online, I found a common solution to this was to create an /etc/grub.d/11_Windows init script containing:#! /bin/sh -e echo Adding Windows >&2 cat

Originally posted 2013-11-06 03:14:29.