LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-20-2014, 10:43 AM   #1
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Rep: Reputation: 0
Upgrading boost 1.41 to 1.48 (at least)


I trying to upgrade my boost file. I have version 1.41.

When I type sudo yum upgrade boost

It says setting up upgrade process and then stops.

If I type sudo yum install boost

It says that version 1.41 is installed and is the latest version. This not true.

The latest version of boost for Centos/ Red Hat is higher. I am not sure which, but I need at least 1.48 and that available on Red Hat rpm format.


So what do? Uninstall boost version 1.41 and all of its dependencies and install 1.48 (at least).
and all of its depdencies.


Or just install boost 1.48 rpm version and let the system take care of upgrading dependencies if it needs to do so.


Any help appreciated.



R,

jyunker
 
Old 10-20-2014, 04:18 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
well a few things
like............

What version of RHEL are you using ???
RHEL5 ?
RHEL6 ?
RHRL7 ?

also redhat by default dose not use "sudo"
that had to be manually set up
are you in the sudoers list ?
( ask your system admin )

and boost WHAT
there are many versions ?
Code:
yum search boost
---- stuff ---
============================== N/S Matched: boost ==============================
libodb-boost.i686 : Boost ODB runtime library from Code Synthesis
boost-date-time.i686 : Runtime component of boost date-time library
boost-devel.i686 : The Boost C++ headers and shared development libraries
boost-doc.i686 : HTML documentation for the Boost C++ libraries
boost-filesystem.i686 : Runtime component of boost filesystem library
boost-graph.i686 : Runtime component of boost graph library
boost-graph-mpich2.i686 : Runtime component of parallel boost graph library
boost-graph-openmpi.i686 : Runtime component of parallel boost graph library
boost-iostreams.i686 : Runtime component of boost iostreams library
boost-math.i686 : Stub that used to contain boost math library
boost-mpich2.i686 : Runtime component of Boost.MPI library
boost-mpich2-devel.i686 : Shared library symlinks for Boost.MPI
boost-mpich2-python.i686 : Python runtime component of Boost.MPI library
boost-openmpi.i686 : Runtime component of Boost.MPI library
boost-openmpi-devel.i686 : Shared library symlinks for Boost.MPI
boost-openmpi-python.i686 : Python runtime component of Boost.MPI library
boost-program-options.i686 : Runtime component of boost program_options library
boost-python.i686 : Runtime component of boost python library
boost-regex.i686 : Runtime component of boost regular expression library
boost-serialization.i686 : Runtime component of boost serialization library
boost-signals.i686 : Runtime component of boost signals and slots library
boost-static.i686 : The Boost C++ static development libraries
boost-system.i686 : Runtime component of boost system support library
boost-test.i686 : Runtime component of boost test library
boost-thread.i686 : Runtime component of boost thread library
boost-wave.i686 : Runtime component of boost C99/C++ preprocessing library
libodb-boost-devel.i686 : Development files for libodb-boost
boost.i686 : The free peer-reviewed portable C++ source libraries
and for 6.5 this is the output of
Code:
yum info boost
Loaded plugins: priorities, refresh-packagekit, security
Repository sl is listed more than once in the configuration
Repository sl-security is listed more than once in the configuration
Repository sl-source is listed more than once in the configuration
113 packages excluded due to repository priority protections
Available Packages
Name        : boost
Arch        : i686
Version     : 1.41.0
Release     : 15.el6_4
Size        : 17 k
Repo        : sl-security
Summary     : The free peer-reviewed portable C++ source libraries
URL         : http://sodium.resophonic.com/boost-cmake/1.41.0.cmake0/
License     : Boost
Description : Boost provides free peer-reviewed portable C++ source libraries.
            : The emphasis is on libraries which work well with the C++ Standard
            : Library, in the hopes of establishing "existing practice" for
            : extensions and providing reference implementations so that the
            : Boost libraries are suitable for eventual standardization. (Some
            : of the libraries have already been proposed for inclusion in the
            : C++ Standards Committee's upcoming C++ Standard Library Technical
            : Report.)
1.41 IS the current for the current RHEL 6.5
 
Old 10-20-2014, 04:42 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
1.41 is the current for RHEL 6.5
1.53 is the current for RHEL 7

If you're stuck at 1.41, then that tells me you're using RHEL 6.5, and 1.41 is it. If you want a newer version, then you either need to wait for RHEL 6 to move to a newer version, or you need to switch to RHEL 7. Or you can try to custom compile boost yourself and manually deal with any dependency issues that might arise.

Last edited by suicidaleggroll; 10-20-2014 at 04:46 PM.
 
Old 10-20-2014, 05:26 PM   #4
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Original Poster
Rep: Reputation: 0
I am using Centos 6,5, 64 bit. The way I fixed this is to remove all boost files earlier than boost-1.48.Then install
boost-1.48 by tar.gz. It worked. It took a long time.

I am using the instruction to install PandA here: http://panda.dei.polimi.it/?page_id=88

I have both gcc 4.4.7 and gcc 4.7 installed. I just do not know how to enable 4.7.

The command shown on the link still leaves gcc 4.4.7 as the compiler.

Code:
scl enable devtoolset-1.1 bash
[root@james bin]# gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I have gcc 4.7 devtoolset installed.

Code:
rpm -qa | grep gcc
devtoolset-1.1-gcc-4.7.2-5.el6.x86_64
gcc-4.4.7-4.el6.x86_64
gcc-gfortran-4.4.7-4.el6.x86_64
libgcc-4.4.7-4.el6.i686
gcc-c++-4.4.7-4.el6.x86_64
libgcc-4.4.7-4.el6.x86_64
devtoolset-1.1-gcc-gfortran-4.7.2-5.el6.x86_64
devtoolset-1.1-gcc-c++-4.7.2-5.el6.x86_64
How do I enable gcc 4.7?

Thanks in advance.


R,

jyunker
 
Old 10-20-2014, 06:24 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Yikes, that looks like it's going to make a mess of your system's configuration. Usually when a piece of software has a nasty set of requirements that jack with default program and library versions, I make a VM for it. Let it make a mess of the VM's configuration, since that's the only thing the VM is there for, but leave the real system alone.

I'm not sure what this PandA program actually does, so I can't say for sure if this is a viable option for it, but it's definitely something you should look into.
 
Old 10-20-2014, 07:24 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
there are many ways to flip gcc 4.4 to 4.7
you can have many different versions installed
i have
gcc 34
gcc 4.1
gcc 4.3
and gcc 4.8

sometimes it is easier to use an older compiler that rewrite the code to bring it up to the current specs

---------

The new way is to use "Alternatives" that is explained in all the redhat documentation

it would be a good idea to bookmark the redhat docs
https://access.redhat.com/documentat...erprise_Linux/

you can ALSO build and install boost 1.48 FROM source if 1.41 is installed
you just need to be EXTREAMLY careful and use a "third party" build directory and point the software to that
-- "a pain in the rear end " i do this for JPL's / NASA's" Vision Workbench "

but
as to flipping from one version of gcc to a different one

you can EXPORT the vairable
Code:
export CC=gcc47 
--- and a BUNCH of other possibility's  
cc,CC,gcc,g++,
or like i do --- old school
-- Alternatives was made to REPLACE THIS --
use a script to make the links and reset them
Warning:
this is MINE!!! Yours WILL BE DIFFERENT !!!!
you will need to edit it FOR YOUR SYSTEM !!!!!

Code:
#!/bin/bash

rm /usr/bin/cpp
ln -s /usr/bin/cpp-4.8 /usr/bin/cpp
echo ln -s cpp-4.8 cpp

rm /usr/bin/cc
ln -s /usr/bin/gcc-4.8 /usr/bin/cc
echo ln -s gcc-4.8 cc

rm /usr/bin/gcc
ln -s /usr/bin/gcc-4.8 /usr/bin/gcc
echo ln -s gcc-4.8 gcc

rm /usr/bin/c++
ln -s /usr/bin/g++-4.8 /usr/bin/c++
echo ln -s g++-4.8 c++

rm /usr/bin/g++
ln -s /usr/bin/g++-4.8 /usr/bin/g++
echo ln -s g++-4.8 g++

rm /usr/bin/gcov
ln -s /usr/bin/gcov-4.8 /usr/bin/gcov
echo ln -s g++-4.8 g++

rm /usr/bin/gfortran
ln -s /usr/bin/gfortran-4.8 /usr/bin/gfortran
echo ln -s gfortran-4.8 gfortran
 
Old 10-22-2014, 12:37 PM   #7
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Original Poster
Rep: Reputation: 0
Whered des the gcc file for gcc 4.7.2 go when gcc 4.72 is installe?

I beleive thta my error can be solved from what I found here:

http://unix.stackexchange.com/questi...sing-gcc-4-7-2

I also installed and removed OpenFOAM. I think that I must modify binutils and then modify cmake and then reinstall gcc 4.7.2.

For now where does this gcc 4.7.2 executable go when it is installed?

Thanks.

R,


jyunker
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] leaf in boost v3(1.46.1) fsshl Programming 0 07-20-2011 01:38 PM
Could NOT find Boost Wed Slackware 13 07-28-2010 03:47 PM
Upgrading to Badger! Can't login anymore after upgrading? BellaSha87 Ubuntu 1 12-03-2005 01:09 PM
Problems with boost nathacof Programming 10 11-04-2005 01:56 PM
g++ and boost problem mixx Programming 1 07-20-2005 01:53 PM


All times are GMT -5. The time now is 06:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration