{"id":1109,"date":"2022-08-30T15:12:32","date_gmt":"2022-08-30T15:12:32","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/problem-about-ubuntu-11-04-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:12:32","modified_gmt":"2022-08-30T15:12:32","slug":"problem-about-ubuntu-11-04-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-ubuntu-11-04-collection-of-common-programming-errors\/","title":{"rendered":"problem about ubuntu-11.04-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/350f30695a2ab75b99d3fce947e856b9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\njcollum<br \/>\nruby ruby-on-rails-3 windows-7 bundler ubuntu-11.04<br \/>\nI have a Rails app that I&#8217;m developing on Windows and deploying to Linux. I suspect I&#8217;ll just switch entirely over to Linux in the future. Anyway, on Linux I need &#8216;execjs&#8217; and &#8216;therubyracer&#8217; but I don&#8217;t need those in Win7. So I put these lines in my gemfile: gem &#8216;therubyracer<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e5fa3880a89e30118d71984f18846dde?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAlec<br \/>\nruby-on-rails ubuntu-11.04<br \/>\nI&#8217;m still relatively new to Rails and Ruby &#8211; and after upgrading to the new version of Ubuntu (11.04), my rails installation is not working correctly. I&#8217;ve tried updating Rails, and updating the versions I have installed using RVM, none of which worked.Here is the terminal output:\/usr\/share\/rails-ruby1.8\/railties\/lib\/rails_generator\/options.rb:32:in `default_opt<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/86e63e366a722ad7c77d34e26bc239a7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nudo<br \/>\nlinux ubuntu php ubuntu-11.04 pear<br \/>\nwhen runningpear upgradethe following error is raised:PHP Fatal error: Call to undefined method PEAR::raiseErro() in \/usr\/share\/php\/PEAR\/REST.php on line 165 PHP Stack trace: PHP 1. {main}() \/usr\/share\/php\/pearc<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/5059a668f25ca8338fe7a96eb1b49756?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nObinwanne Hill<br \/>\nubuntu ubuntu-11.04 pdflib<br \/>\nI&#8217;m trying to compile PDFLib on Ubuntu Natty (11.04) 32-bit. However, I&#8217;m running into a few issues at the &#8216;make&#8217; stage.Just to recap:I downloaded PDFLib from here I Extract the contents and cd into the directory I then do .\/configure and everything goes wellBut when I do make I get what you see below after it runs for a while:..\/..\/libtool &#8211;silent &#8211;mode=link gcc -o libpdf.la -rpath \/usr\/local\/lib -version-info 6:5:0 .\/pdflib.lo ..\/..\/libs\/pdflib\/libpdf_.la ..\/..\/libs\/font\/libfont.la ..\/..\/libs\/pdcore\/libpdcore.la ..\/..\/libs\/png\/libpng.la ..\/..\/libs\/flate\/libz.la ..\/..\/libs\/tiff\/libtiff.la ..\/..\/libs\/jpeg\/libjpeg.la -lm -export-dynamic ..\/..\/libtool &#8211;silent &#8211;mode=link gcc -o libs_libpdf.la .\/pdflib.lo ..\/..\/libs\/pdflib\/libpdf_.la ..\/..\/libs\/font\/libfont.la ..\/..\/libs\/pdcore\/libpdcore.la ..\/..\/libs\/png\/libpng.la ..\/..\/libs\/flate\/libz.la ..\/..\/libs\/tiff\/libtiff.la ..\/..\/libs\/jpeg\/libjpeg<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/MGhY2.png?s=32&amp;g=1\" \/><br \/>\nhakre<br \/>\nphp postgresql apache2 ubuntu-11.04<br \/>\nI&#8217;ve installed Apache2 with php5 support and everything works there. I&#8217;ve installed PostgreSQL and am able to connect to it using the terminal and execute SQL statements.PROBLEM: I can&#8217;t get a working connection between my php scripts and the PostgreSQL database. I have installed the php5-pgsql packaged from the<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/MGhY2.png?s=32&amp;g=1\" \/><br \/>\nhakre<br \/>\nphp linux curl ubuntu-11.04<br \/>\nI have installed PHP with mysqli support and I&#8217;m now looking forward to enable curl. I have build and installed curl (curl-7.26.0) and the PHP version I am using is 5.2.9This is how I installed<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ea72952e3b35988127f84dada7e15b77?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nalvaro<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/00e98dbe99dc2d713e323449af1311e6?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nduttasankha<br \/>\ncompilation cuda installation ubuntu-11.04<br \/>\nI am using ubuntu 11.04 and cuda 4.2. I installed the Toolkit and the SDK. I used https:\/\/help.ubuntu.com\/community\/Cuda website for installation. After that, I am giving the make commands to the sample problems given in GPU SDK using the following commands cd ~\/NVIDIA_GPU_Computing_SDK\/C LINKFLAGS=-L\/usr\/lib\/nvidia-current\/ make cuda-install=\/opt\/cudaBut while doing that I am receiving tons of warnings and errors. From the type of error messages what it seems that the error message starts occuring after the particle example starts compiling. I will paste the error messages below :make[2]: Entering directory `\/home\/duttasankha\/NVIDIA_GPU_Computing_SDK\/C\/src\/particles&#8217; \/usr\/bin\/ld: error: cannot open \/\/usr\/lib\/libGL.so: No such file or directory \/usr\/bin\/ld: obj\/x86_64\/release\/particles.cpp.o: in function reshape(int, int):particles.cpp(.text+0x160): error: undefined reference to &#8216;glMatrixMode&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/particles.cpp.o: in function reshape(int, int):particles.cpp(.text+0x165): error: undefined reference to &#8216;glLoadIdentity&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/particles.cpp.o: in function reshape(int, int):particles.cpp(.text+0x19e): error: undefined reference to &#8216;glMatrixMode&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/particles.cpp.o: in function reshape(int, int):particles.cpp(.text+0x1ab): error: undefined reference to &#8216;glViewport&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/particles.cpp.o: in function initGL(int*, char**):particles.cpp(.text+0x399): error: undefined reference to &#8216;glEnable&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/particles.cpp.o: in function initGL(int*, char**):particles.cpp(.text+0x3b4): error: undefined reference to &#8216;glClearColor&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/particles.cpp.o: in function display():particles.cpp(.text+0x8a5): error: undefined reference to &#8216;glClear&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/particles.cpp.o: in function display():particles.cpp(.text+0x8af): error: undefined reference to &#8216;glMatrixMode&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/particles.cpp.o: in function display():particles.cpp(.text+0x8b4): error: undefined reference to &#8216;glLoadIdentity&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/particles.cpp.o: in function display():particles.cpp(.text+0x92f): error: undefined reference to &#8216;glTranslatef&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/particles.cpp.o: in function display():particles.cpp(.text+0x948): error: undefined reference to &#8216;glRotatef&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/particles.cpp.o: in function display():particles.cpp(.text+0x961): error: undefined reference to &#8216;glRotatef&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/particles.cpp.o: in function display():particles.cpp(.text+0x972): error: undefined reference to &#8216;glGetFloatv&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/particles.cpp.o: in function display():particles.cpp(.text+0x985): error: undefined reference to &#8216;glColor3f&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/particles.cpp.o: in function display():particles.cpp(.text+0x997): error: undefined reference to &#8216;glPushMatrix&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/particles.cpp.o: in function display():particles.cpp(.text+0x9b8): error: undefined reference to &#8216;glTranslatef&#8217; \/usr\/bin\/ld: obj\/x8 6_64\/release\/particles.cpp.o: in function display():particles.cpp(.text+0x9cb): error: undefined reference to &#8216;glColor3f&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/particles.cpp.o: in function display():particles.cpp(.text+0x9ee): error: undefined reference to &#8216;glPopMatrix&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/particles.cpp.o: in function display():particles.cpp(.text+0xb06): error: undefined reference to &#8216;glDisable&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/particles.cpp.o: in function display():particles.cpp(.text+0xb12): error: undefined reference to &#8216;glBlendFunc&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/particles.cpp.o: in function display():particles.cpp(.text+0xb1c): error: undefined reference to &#8216;glEnable&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/particles.cpp.o: in function display():particles.cpp(.text+0xb3b): error: undefined reference to &#8216;glDisable&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/particles.cpp.o: in function display():particles.cpp(.text+0xb45): error: undefined reference to &#8216;glEnable&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/render_particles.cpp.o: in function ParticleRenderer::_ drawPoints():render_particles.cpp(.text+0x41): error: undefined reference to &#8216;glBegin&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/render_particles.cpp.o: in function ParticleRenderer::_drawPoints():render_particles.cpp(.text+0x66): error: undefined reference to &#8216;glVertex3fv&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/render_particles.cpp.o: in function ParticleRenderer::_drawPoints():render_particles.cpp(.text+0x9e): error: undefined reference to &#8216;glVertexPointer&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/render_particles.cpp.o: in function ParticleRenderer::_drawPoints():render_particles.cpp(.text+0xa8): error: undefined reference to &#8216;glEnableClientState&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/render_particles.cpp.o: in function ParticleRenderer::_drawPoints():render_particles.cpp(.text+0xbb): error: undefined reference to &#8216;glDrawArrays&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/render_particles.cpp.o: in function ParticleRenderer::_drawPoints():render_particles.cpp(.text+0xcf): error: undefined reference to &#8216;glDisableClientState&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/render_particles.cpp.o: in function ParticleRenderer::_drawPoints():render_particles.cpp(.text+0xff): error: undefined reference to &#8216;glColorPointer&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/render_particles.cpp.o: in function ParticleRenderer::_drawPoints():render_particles.cpp(.text+0x109): error: undefined reference to &#8216;glEnableClientState&#8217; \/usr\/bin\/ld: obj\/x86_64\/release\/render_particles.cpp.o: in fun<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/febcde7f09d486161ab6b3180c8b85c7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ngouravtiwari21<br \/>\nruby-on-rails ruby ubuntu-11.04<br \/>\ngourav@ubuntu$ bundle install\/home\/gourav\/.rvm\/rubies\/ruby-1.8.7-p352\/lib\/ruby\/1.8\/i686-linux\/digest\/sha1.so:undefined symbol: rb_Digest_SHA1_Init &#8211; \/home\/gourav\/.rvm\/rubies\/<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/87ec0ce8ac23df0e004db289a8677a34?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nOtagoHarbour<br \/>\nc++ templates ubuntu-11.04 netbeans-7.1<br \/>\nI am developing C++ on Netbeans 7.1 on Ubuntu 11.04. I was wondering if someone could tell me why Stack fs(5); is seen as an undefined reference to to `Stack::Stack(int)&#8217;. Why<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/69cd130bff4cd7c9b3b5468df0ca978d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTerry Li<br \/>\nc++ boost compiler-errors shared-memory ubuntu-11.04<br \/>\nI tried to compile the following code on ubuntu 11.04:#include #include int main() { boost::interprocess::shared_memory_object shdmem(boost::interprocess::open_or_create, &#8220;Highscore&#8221;, boost::interprocess::read_write); shdmem.truncate(1024); std::cout<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2013-11-09 23:29:23. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>jcollum ruby ruby-on-rails-3 windows-7 bundler ubuntu-11.04 I have a Rails app that I&#8217;m developing on Windows and deploying to Linux. I suspect I&#8217;ll just switch entirely over to Linux in the future. Anyway, on Linux I need &#8216;execjs&#8217; and &#8216;therubyracer&#8217; but I don&#8217;t need those in Win7. So I put these lines in my gemfile: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1109","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1109"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1109\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}