Thread: Missing library on Ubuntu system.

  1. #1
    Registered User
    Join Date
    Mar 2010
    Location
    Denmark
    Posts
    233

    Missing library on Ubuntu system.

    My other machine here has run Windows 7, but I wanted to try Ubuntu. I know little about it yet. Installed okay and I, eventually, downloaded and installed BOINC. When I found the appropriate place and tried to start it up, ie. the run_manager command, it failed with this error.

    ./boincmgr: error while loading shared libraries: libwx_gtk2u_html-2.8.so.0: cannot open shared object file: No such file or directory

    Now, I expect I can find this library on the net, but where should it go, in Windows parlance, which directory should I put it in?

  2. #2
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    You should not download libraries from random places on the internet.
    Get it from the repository.
    The command to do so will be something like:

    Code:
     sudo apt-get install libwxgtk
    I do not have Ubuntu installed now, so the package name may be slightly different.
    Look it up if libwxgtk fails.

  3. #3
    Make Fortran great again
    Join Date
    Sep 2009
    Posts
    1,413
    BOINC and its manager are in the Ubuntu repositories, so are all the dependencies. Just use them.

  4. #4
    Ticked and off
    Join Date
    Oct 2011
    Location
    La-la land
    Posts
    1,728
    manasij7479 and Epy are absolutely right. The BOINC metapackage (pulling in the necessary sub-packages) in Ubuntu is boinc, with boinc-dev being the development package. To install, use
    Code:
    sudo apt-get install boinc boinc-dev
    Now, the file you are asking, is part of libwxgtk as manasij7479 said; the package name in Ubuntu is libwxgtk2.8-0 , so you can install it using
    Code:
    sudo apt-get install libwxgtk2.8-0
    -- but you shouldn't need to, because if you install BOINC and the development package from Ubuntu repositories, all required stuff will be pulled in automatically.

    (I'm typing this answer on Ubuntu 14.04.2 LTS on x86-64.)

  5. #5
    Registered User
    Join Date
    Nov 2008
    Location
    Phoenix
    Posts
    70
    Quote Originally Posted by Fossaw View Post
    Now, I expect I can find this library on the net, but where should it go, in Windows parlance, which directory should I put it in?
    As someone who has always been a Windows user and just switched to Linux (Ubuntu 14.04) less than a year ago as my everyday OS (I still like Windows too, nothing wrong with it), I wanted to add further to what's already been said in an effort to make the paradigms between the two OSes more clear. I had been hindered over the years from switching to Linux because of the difficulty in getting simple explanations for how things work and analogies between Windows and Linux to make the transition smoother. I hope to provide one small such explanation and analogy so that you might not be as dissuaded as I had historically been.

    On Windows, when you hear about a program, you google it and download setup.exe or installer.exe or some other such thing. You follow the wizard and everything goes where it should go and gets set up as it should be; the program itself, it's libraries, documentation, etc.

    In the world of Linux distributions (vanilla Linux is different), programs are generally installed through "package" management systems. A package is typically the kind of file you see with a .deb or .rpm extension. .deb as in Debian, and .rpm as it RPM Package Manager or RedHat Package Manager. So if you had, for example, codeblocks_13.12-3_amd64.deb, this would be the package that would let you install the Code::Blocks IDE and most of what you need to make it run. In the Windows world, this is almost the same as setup.exe. In a Linux distro, you generally rarely work with the package (.deb file) directly, you use the package management system. So, on Ubuntu, you would do this:

    Code:
    apt-cache search codeblocks
    Which would return a list looking like this:

    Code:
    codeblocks-common - common files for Code::Blocks IDE
    codeblocks-contrib - contrib plugins for Code::Blocks IDE
    libpath-dispatcher-perl - flexible and extensible dispatcher module
    codeblocks - Code::Blocks integrated development environment (IDE)
    codeblocks-contrib-dbg - dummy transitional package for Code::Blocks debugging symbols
    codeblocks-dbg - Code::Blocks debugging libraries
    codeblocks-dev - Code::Blocks development files (SDK)
    libcodeblocks0 - Code::Blocks shared library
    Aptitude is the major package management system for Debian based distributions, such as Ubuntu. There are a bunch of utilities used on the command line to do different things with Aptitude instead of using Aptitude directly. apt-cache lets you search the package repository for programs/libraries you are interested in. Running the above command will output a list of packages that relate to Code::Blocks. Each line has the package name and a description of that package.

    So if you typed:

    Code:
    sudo apt-get install codeblocks
    it would do everything necessary to get an installed and fully functional Code::Blocks running, which should include any other libraries and things you would need to make it run - things that may be missing from the plain .deb file.

    So in Ubuntu (and other distros in general, with their own and different package management systems), that's how you install new programs - you don't go finding them online to download. You use

    Code:
    apt-cache search [package-name]
    to search for programs and libraries, and

    Code:
    apt-cache policy [package-name]
    to see if you already have a package installed, and if so, what version it is, and you use

    Code:
    apt-get install [package-name]
    to install a package. apt-get will usually require you to use sudo.

    So in your case, to use boinc, what you would do instead of downloading it from a website, is

    Code:
    sudo apt-get install boinc
    That way, everything you need, including the missing libraries, should be installed.

    Of course, you could always use one of the built in GUI based package management systems that come with Ubuntu, but I've always done it from the command line. The GUIs should do the same thing, without all the command line stuff that may annoy you.

  6. #6
    Registered User
    Join Date
    Mar 2010
    Location
    Denmark
    Posts
    233
    Okay, I'll have a go with this and see how I get on.

    I had asked on one of the Ubuntu boards before asking here, but the "help" I received was a stream of ridicule by a bunch of kiddies.

  7. #7
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Quote Originally Posted by Fossaw View Post
    Okay, I'll have a go with this and see how I get on.

    I had asked on one of the Ubuntu boards before asking here, but the "help" I received was a stream of ridicule by a bunch of kiddies.
    Ubuntu forum posts are pretty much at the level of "restart and see if it works" nowadays.
    If you are serious about using Linux, I would suggest maybe, Kubuntu instead of Ubuntu.

    The interface doesn't aim to be different just to be different and the community(both Kubuntu and KDE) is great.

  8. #8
    Registered User
    Join Date
    Mar 2010
    Location
    Denmark
    Posts
    233
    BOINC is up and running, in fact, the Linux app seems to be running a few percent faster than the Windows, but too early for a definitive. It has completed a couple of Ebola virus jobs now. I don't know yet if I am serious about switching to Linux. I wanted to see how things went, as I had some time, and the later Windows versions, ie. post XP, are somewhat annoying, thought I'd have a look. Command line stuff doesn't bother me. I started programming in Fortran-66 typing on a Lear Siegler ADM-3A dumb terminal connected to an SEL 32/77 mini in 1978!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. library/linking question - linux(ubuntu) specific
    By Stonehambey in forum Tech Board
    Replies: 2
    Last Post: 12-10-2008, 09:54 AM
  2. Missing library?
    By mhenderson in forum C++ Programming
    Replies: 11
    Last Post: 01-09-2007, 01:32 PM
  3. MSHTML library missing
    By maxorator in forum Windows Programming
    Replies: 3
    Last Post: 08-30-2006, 11:27 PM
  4. Missing library
    By ajdspud in forum C++ Programming
    Replies: 9
    Last Post: 12-01-2005, 10:34 AM
  5. library missing?
    By Unregistered in forum C Programming
    Replies: 5
    Last Post: 12-08-2001, 03:46 PM

Tags for this Thread