Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Boost C++ could not be installed in LEAP 15.1

  1. #1

    Default Boost C++ could not be installed in LEAP 15.1

    Hi,
    I tried to install 'boost' and 'boost-base' (C++ library) using YaST and also on the command line with zypper, but both failed. I followed instructions from (https://software.opensuse.org/downlo...A15.1%3AUpdate).

    Here is the output from command line execution:

    -------------------------------------------------------------------------------------------------------------------------------------------------------
    :
    :
    URI : http://download.opensuse.org/update/leap/15.1/oss/
    Enabled : Yes
    GPG Check : Yes
    Autorefresh : No
    Priority : 99 (default priority)

    ocalhost:~ # zypper refresh
    Repository 'Online updates for openSUSE Leap:15.1 (standard)' is up to date.
    Repository 'Debug Repository' is up to date.
    Repository 'Update Repository (Debug)' is up to date.
    Repository 'Non-OSS Repository' is up to date.
    Repository 'Main Repository' is up to date.
    Repository 'Source Repository' is up to date.
    Repository 'Main Update Repository' is up to date.
    Repository 'Update Repository (Non-Oss)' is up to date.
    Repository 'Microsoft Visual Studio Code' is up to date.
    All repositories have been refreshed.
    localhost:~ # zypper install boost
    Loading repository data...
    Reading installed packages...
    'boost' not found in package names. Trying capabilities.
    No provider of 'boost' found.

    Resolving package dependencies...

    Nothing to do.
    localhost:~ # zypper install boost-base
    Loading repository data...
    Reading installed packages...
    'boost-base' not found in package names. Trying capabilities.
    No provider of 'boost-base' found.
    Resolving package dependencies...

    Nothing to do.
    -------------------------------------------------------------------------------------------------------------------------------------------------------
    Any help to get boost installed is appreciated.

  2. #2
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,628

    Default Re: Boost C++ could not be installed in LEAP 15.1

    Quote Originally Posted by anatomist.noelectrons View Post
    Hi,
    I tried to install 'boost' and 'boost-base' (C++ library) using YaST and also on the command line with zypper, but both failed. I followed instructions from (https://software.opensuse.org/downlo...A15.1%3AUpdate).

    Here is the output from command line execution:

    Code:
    -------------------------------------------------------------------------------------------------------------------------------------------------------
    :
    :
    URI         : http://download.opensuse.org/update/leap/15.1/oss/
    Enabled     : Yes
    GPG Check   : Yes
    Autorefresh : No
    Priority    : 99 (default priority)
    
    ocalhost:~ # zypper refresh
    Repository 'Online updates for openSUSE Leap:15.1 (standard)' is up to date.                                                                   
    Repository 'Debug Repository' is up to date.                                                                                                   
    Repository 'Update Repository (Debug)' is up to date.                                                                                          
    Repository 'Non-OSS Repository' is up to date.                                                                                                 
    Repository 'Main Repository' is up to date.                                                                                                    
    Repository 'Source Repository' is up to date.                                                                                                  
    Repository 'Main Update Repository' is up to date.                                                                                             
    Repository 'Update Repository (Non-Oss)' is up to date.                                                                                        
    Repository 'Microsoft Visual Studio Code' is up to date.                                                                                       
    All repositories have been refreshed.
    localhost:~ # zypper install boost
    Loading repository data...
    Reading installed packages...
    'boost' not found in package names. Trying capabilities.
    No provider of 'boost' found.
    Resolving package dependencies...
    
    Nothing to do.
    localhost:~ # zypper install boost-base
    Loading repository data...
    Reading installed packages...
    'boost-base' not found in package names. Trying capabilities.
    No provider of 'boost-base' found.
    Resolving package dependencies...
    
    Nothing to do.
    -------------------------------------------------------------------------------------------------------------------------------------------------------
    Any help to get boost installed is appreciated.
    Search software.opensuse.org for boost version needed and add to list of repos:
    Code:
    erlangen:~ # zypper repos boost
    Alias          : boost
    Name           : boost
    URI            : http://download.opensuse.org/reposit...SE_Tumbleweed/
    Enabled        : Yes
    GPG Check      : (r ) Yes
    Priority       : 100 (lowered priority)
    Autorefresh    : On
    Keep Packages  : Off
    Type           : rpm-md
    GPG Key URI    : http://download.opensuse.org/reposit...repomd.xml.key
    Path Prefix    : 
    Parent Service : 
    Keywords       : ---
    Repo Info Path : /etc/zypp/repos.d/home_drhax9908_branches_home_snagview_gearmand155.repo
    MD Cache Path  : /var/cache/zypp/raw/boost
    erlangen:~ #
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), AMD Ryzen 5 3400G (2020), openSUSE Tumbleweed, KDE Plasma 5

  3. #3
    Join Date
    Sep 2012
    Posts
    5,646

    Default Re: Boost C++ could not be installed in LEAP 15.1

    Quote Originally Posted by anatomist.noelectrons View Post
    Any help to get boost installed is appreciated.
    "boost" or "boost-base" are names of source packages. They are used to build binary packages, not to be used directly. Some of these binary packages are likely already installed. Check "zypper se boost" and pay attention to Type column.

    If you really want to install source package, use "zypper install --type srcpackage", but I suspect that is not what you need. Explain in more details what you are trying to do.

    Quote Originally Posted by karlmistelberger View Post
    You recommend user to use Tumbleweed home​ repository for Leap 15.1 and that for something that is already part of Leap 15.1. Why am I not surprised ...

  4. #4
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,628

    Default Re: Boost C++ could not be installed in LEAP 15.1

    Different software requires different versions:
    Code:
    S | Name                           | Type    | Version     | Arch   | Repository
    --+--------------------------------+---------+-------------+--------+-----------------------
    i | boost-license1_68_0            | package | 1.68.0-2.14 | noarch | boost
    i | boost-license1_71_0            | package | 1.71.0-9.4  | noarch | Haupt-Repository (OSS)
    i | libboost_date_time1_68_0       | package | 1.68.0-2.14 | x86_64 | boost
    i | libboost_date_time1_71_0       | package | 1.71.0-9.4  | x86_64 | Haupt-Repository (OSS)
    i | libboost_filesystem1_68_0      | package | 1.68.0-2.14 | x86_64 | boost
    i | libboost_filesystem1_71_0      | package | 1.71.0-9.4  | x86_64 | Haupt-Repository (OSS)
    i | libboost_iostreams1_68_0       | package | 1.68.0-2.14 | x86_64 | boost
    i | libboost_iostreams1_71_0       | package | 1.71.0-9.4  | x86_64 | Haupt-Repository (OSS)
    i | libboost_locale1_71_0          | package | 1.71.0-9.4  | x86_64 | Haupt-Repository (OSS)
    i | libboost_program_options1_68_0 | package | 1.68.0-2.14 | x86_64 | boost
    i | libboost_program_options1_71_0 | package | 1.71.0-9.4  | x86_64 | Haupt-Repository (OSS)
    i | libboost_regex1_68_0           | package | 1.68.0-2.14 | x86_64 | boost
    i | libboost_regex1_71_0           | package | 1.71.0-9.4  | x86_64 | Haupt-Repository (OSS)
    i | libboost_signals1_68_0         | package | 1.68.0-2.14 | x86_64 | boost
    i | libboost_system1_68_0          | package | 1.68.0-2.14 | x86_64 | boost
    i | libboost_thread1_68_0          | package | 1.68.0-2.14 | x86_64 | boost
    i | libboost_thread1_71_0          | package | 1.71.0-9.4  | x86_64 | Haupt-Repository (OSS)
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), AMD Ryzen 5 3400G (2020), openSUSE Tumbleweed, KDE Plasma 5

  5. #5

    Default Re: Boost C++ could not be installed in LEAP 15.1

    Thanks for your reply.

    Quote Originally Posted by arvidjaar View Post
    "boost" or "boost-base" are names of source packages. They are used to build binary packages, not to be used directly. Some of these binary packages are likely already installed. Check "zypper se boost" and pay attention to Type column.

    If you really want to install source package, use "zypper install --type srcpackage", but I suspect that is not what you need. Explain in more details what you are trying to do.
    I need Boost C++ headers for one of my C++ projects, and I don't mind any additional things that come with Boost. So, I searched in Google with "OpenSUSE Leap 15.1 boost c++" and the first link lead me to [https://software.opensuse.org/package/boost] which has two options "Direct Install" and "Expert Download" both of which fail to install boost. Similar thing happens with 'boost-base'.

    This looks like a problem with OpenSUSE links or packaging or something that leads one to believe there is a package called 'boost' which can be installed with YaST or Zypper, but not so. This has wasted lot of time for me to look around my system to find why I was not able install them. I finally figured out the right package within boost by 'zypper se boost' and reading package descriptions to figure out what is needed to compile my project.

    However, I still don't understand why the link exists for something that cannot be installed. I don't know how to report this problem as I am very new to OpenSUSE forums and also not an active community participant. I appreciate all the replies so far and the main issue is resolved for me as of now.

  6. #6
    Join Date
    Sep 2012
    Posts
    5,646

    Default Re: Boost C++ could not be installed in LEAP 15.1

    Quote Originally Posted by anatomist.noelectrons View Post
    I need Boost C++ headers for one of my C++ projects
    You need libboost*-devel packages. Which exactly depends on which headers you need. If in doubt, you can simply do
    Code:
    zypper in 'libboost*-devel'
    which installs everything.

  7. #7
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,628

    Default Re: Boost C++ could not be installed in LEAP 15.1

    Quote Originally Posted by arvidjaar View Post
    You recommend user to use Tumbleweed home​ repository for Leap 15.1 and that for something that is already part of Leap 15.1. Why am I not surprised ...
    Searching in software.opensuse.org reveals that boost packages have distinct versions for Tumbleweed, Leap 15.1, 15.2, SLE-15 and more. You need to select the version matching your system.
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), AMD Ryzen 5 3400G (2020), openSUSE Tumbleweed, KDE Plasma 5

  8. #8
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    12,296
    Blog Entries
    2

    Default Re: Boost C++ could not be installed in LEAP 15.1

    Quote Originally Posted by arvidjaar View Post
    You need libboost*-devel packages. Which exactly depends on which headers you need. If in doubt, you can simply do
    Code:
    zypper in 'libboost*-devel'
    which installs everything.
    +1.

    Also,
    Some recommendations...
    Install the C Development pattern (for the newcomer, use YaST Software Manager, Patterns view)
    It should install all the likely base development libraries you'll need, and I'd guess nearly 100% that libboost will be installed... It's such a commonly needed library.

    As @arvidjaar describes, you should know that libraries used to build/compile have a "-devel" appended to the package name. Regular "ready to run" libraries used to simply run things (often pre-compiled code) won't be designated that way.

    I'd also recommend that for Development related questions including setup like this and anything thereafter, you should post in the Development forums instead of this Forum which is mainly frequented by Users looking for answers.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  9. #9
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,628

    Default Re: Boost C++ could not be installed in LEAP 15.1

    Quote Originally Posted by tsu2 View Post
    Install the C Development pattern (for the newcomer, use YaST Software Manager, Patterns view)
    As a newbie I installed iteratively required packages by trial and error, which is tedious. But patterns are a great feature:

    Code:
    erlangen:~ # zypper search --type pattern --installed-only --details 
    Loading repository data...
    Reading installed packages...
    
    S  | Name          | Type    | Version      | Arch   | Repository
    ---+---------------+---------+--------------+--------+-----------------------
    i  | apparmor      | pattern | 20200505-3.1 | x86_64 | Haupt-Repository (OSS)
    i+ | base          | pattern | 20200505-3.1 | x86_64 | Haupt-Repository (OSS)
    i+ | enhanced_base | pattern | 20200505-3.1 | x86_64 | Haupt-Repository (OSS)
    i  | fonts         | pattern | 20170319-5.5 | x86_64 | Haupt-Repository (OSS)
    i  | games         | pattern | 20170319-2.5 | x86_64 | Haupt-Repository (OSS)
    i+ | kde           | pattern | 20181130-3.2 | noarch | Haupt-Repository (OSS)
    i  | kde_pim       | pattern | 20181130-3.2 | noarch | Haupt-Repository (OSS)
    i  | kde_plasma    | pattern | 20181130-3.2 | noarch | Haupt-Repository (OSS)
    i+ | lamp_server   | pattern | 20200325-1.1 | x86_64 | Haupt-Repository (OSS)
    i  | minimal_base  | pattern | 20200505-3.1 | x86_64 | Haupt-Repository (OSS)
    i  | multimedia    | pattern | 20170319-8.2 | x86_64 | Haupt-Repository (OSS)
    i  | office        | pattern | 20170506-3.5 | x86_64 | Haupt-Repository (OSS)
    i  | sw_management | pattern | 20200505-3.1 | x86_64 | Haupt-Repository (OSS)
    i+ | x11           | pattern | 20200505-3.1 | x86_64 | Haupt-Repository (OSS)
    i+ | yast2_basis   | pattern | 20190411-1.4 | x86_64 | Haupt-Repository (OSS)
    erlangen:~ #
    Code:
    erlangen:~ # zypper install --type pattern lamp_server
    Loading repository data...
    Reading installed packages...
    'pattern:lamp_server' is already installed.
    No update candidate for 'pattern:lamp_server-20200325-1.1.x86_64'. The highest available version is already installed.
    Resolving package dependencies...
    
    Nothing to do.
    erlangen:~ #
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), AMD Ryzen 5 3400G (2020), openSUSE Tumbleweed, KDE Plasma 5

  10. #10

    Default Re: Boost C++ could not be installed in LEAP 15.1

    Quote Originally Posted by anatomist.noelectrons View Post
    I need Boost C++ headers for one of my C++ projects, and I don't mind any additional things that come with Boost. So, I searched in Google with "OpenSUSE Leap 15.1 boost c++" and the first link lead me to [https://software.opensuse.org/package/boost] which has two options "Direct Install" and "Expert Download" both of which fail to install boost. Similar thing happens with 'boost-base'.

    This looks like a problem with OpenSUSE links or packaging or something that leads one to believe there is a package called 'boost' which can be installed with YaST or Zypper, but not so. This has wasted lot of time for me to look around my system to find why I was not able install them. I finally figured out the right package within boost by 'zypper se boost' and reading package descriptions to figure out what is needed to compile my project.

    However, I still don't understand why the link exists for something that cannot be installed. I don't know how to report this problem as I am very new to OpenSUSE forums and also not an active community participant. I appreciate all the replies so far and the main issue is resolved for me as of now.
    https://software.opensuse.org/search...ct=ALL&q=boost
    https://software.opensuse.org/search...LL&q=boost+mpi
    https://software.opensuse.org/search...LL&q=boost+hpc

    etc. ...

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •