How To Update Boost When Yum Has the Outdated Version - boost

I am trying to install the latest version of Gearman. However, it keeps giving me the error:
Checking for Boost Headers version >=
1.37... no
When I check my Boost version (yum list installed | grep boost), all the versions are 1.33. The latest Boost version is 1.46, but it seems CentOS does not have this version in their repositories.
Is there any way to get around yum to update Boost to the latest version?

You could try and build it from source or add a repo that has the latest boost distro to your yum repos.

Download and install earlier versions of Boost from this page: http://www.boost.org/users/history/
Or follow "Ben's" instructions here:
http://ben-tech.blogspot.com/2013/06/build-boost-for-impala-in-centos-63.html

What I did with this is to issue a
rpm -ql boost-devel and rpm -ql boost146-devel
mv /usr/include/boost146/boost /usr/include/boost`
cd /usr/lib/boost/
mv * /usr/lib/
Note: just replace the filenames if yours is different

Related

Installing latest version of gmsh

How can I install latest version of gmsh, which is gmsh 3.0.7 on ubuntu 16.04LTS please?
Using sudo apt install gmsh it only installs gmsh 2.10.1.
I also did update and upgrade my system but still only version 2.10.1.
Any suggestion please?
Cheers
First, I prefix this by saying I'm nothing like an expert, but this worked for me:
Uninstall the repository version:
sudo apt-get remove gmsh
Download a zipped copy of the latest stable release for linux from the gmsh website:
http://gmsh.info/#Download
Unzip gmsh:
tar -xvzf gmsh-3.0.6-Linux64.tgz (or whatever version you've downloaded)
This makes a folder gmsh-3.0.6-Linux64 containing gmsh which is portable. Put it somewhere you can find it. I put it in my home directory.
Navigate to the bin folder:
cd ~/gmsh-3.0.6-Linux64/bin
From the bin folder you can start gmsh by typing:
./gmsh
I made it generally available at the command line by editing my .bashrc, adding this line:
export PATH="$PATH:/home/bob/gmsh-3.0.6-Linux64/bin"
You will need to make the path appropriate for your location.
Hope this works.
if it can help someone here, I recently compiled GMSH from source without difficulty, simply with the typical combination of cmake and make; their GitLab repository explains these few steps to follow
https://gitlab.onelab.info/gmsh/gmsh
Although this may vary, pay attention to few libraries which weren't present on my fresh Ubuntu installation (libpng, libjpeg, and FLTK libraries), cmake properly highlighted these missing libraries. FLTK is needed for the UI.
Ubuntu 20.04 LTS has gmsh version 4.4.1 in the official repositories. So installation is again simply this:
sudo apt install gmsh

Updating Boost library in ubuntu

My machine is an ubuntu 14.04 with ROS.
when I do :
$ dpkg -s libboost-dev | grep 'Version'
Version: 1.54.0.1ubuntu1
Now that I need to work with later versions (mainly 1.62)of Boost, I followed the answer found here, Boost 1.62 is installed but getting the boost version as above returns the same old 1.54.0.
Do I need to do anything else, so my system will point to the new 1.62 version ?
So the result to be is this :
$ dpkg -s libboost-dev | grep 'Version'
Version: 1.62.0.1ubuntu1
Thanks.
If you're installing a newer version of Boost outside dpkg, then dpkg obviously won't be aware of the new version (hence why running dpkg libboost-dev still points to the old version).
If Boost compiled/installed with no problems, then you just need to link the Boost libraries at compile time for whatever binary you're working on.

Install / upgrade gradle on Mac OS X

How do I install/upgrade gradle for Mac?
As mentioned in this tutorial, it's as simple as:
To install
brew install gradle
To upgrade
brew upgrade gradle
(using Homebrew of course)
Also see (finally) updated docs.
Another alternative is to use sdkman. An advantage of sdkman over brew is that many versions of gradle are supported. (brew only supports the latest version and 2.14.) To install sdkman execute:
curl -s "https://get.sdkman.io" | bash
Then follow the instructions. Go here for more installation information. Once sdkman is installed use the command:
sdk install gradle
Or to install a specific version:
sdk install gradle 2.2
Or use to use a specific installed version:
sdk use gradle 2.2
To see which versions are installed and available:
sdk list gradle
For more information go here.
And using ports:
port install gradle
Ports , tested on El Capitan
I had downloaded it from http://gradle.org/gradle-download/. I use Homebrew, but I missed installing gradle using it.
To save some MBs by downloading it over again using Homebrew, I symlinked the gradle binary from the downloaded (and extracted) zip archive in the /usr/local/bin/. This is the same place where Homebrew symlinks all other binaries.
cd /usr/local/bin/
ln -s ~/Downloads/gradle-2.12/bin/gradle
Now check whether it works or not:
gradle -v
Two Method
using homebrew auto install:
Steps:
brew install gradle
Pros and cons
Pros: easy
Cons: (probably) not latest version
manually install (for latest version):
Pros and cons
Pros: use your expected any (or latest) version
Cons: need self to do it
Steps
download latest version binary (gradle-6.0.1) from Gradle | Releases
unzip it (gradle-6.0.1-all.zip) and added gradle path into environment variable PATH
normally is edit and add following config into your startup script( ~/.bashrc or ~/.zshrc etc.):
export GRADLE_HOME=/path_to_your_gradle/gradle-6.0.1
export PATH=$GRADLE_HOME/bin:$PATH
some other basic note
Q: How to make PATH take effect immediately?
A: use source:
source ~/.bashrc
it will make/execute your .bashrc, so make PATH become your expected latest values, which include your added gradle path.
Q: How to check PATH is really take effect/working now?
A: use echo to see your added path in indeed in your PATH
➜ ~ echo $PATH
xxx:/Users/crifan/dev/dev_tool/java/gradle/gradle-6.0.1/bin:xxx
you can see we added /Users/crifan/dev/dev_tool/java/gradle/gradle-6.0.1/bin into your PATH
Q: How to verify gradle is installed correctly on my Mac ?
A: use which to make sure can find gradle
➜ ~ which gradle
/Users/crifan/dev/dev_tool/java/gradle/gradle-6.0.1/bin/gradle
AND to check and see gradle version
➜ ~ gradle --version
------------------------------------------------------------
Gradle 6.0.1
------------------------------------------------------------
Build time: 2019-11-18 20:25:01 UTC
Revision: fad121066a68c4701acd362daf4287a7c309a0f5
Kotlin: 1.3.50
Groovy: 2.5.8
Ant: Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM: 1.8.0_112 (Oracle Corporation 25.112-b16)
OS: Mac OS X 10.14.6 x86_64
this means the (latest) gradle is correctly installed on your mac ^_^.
for more detail please refer my (Chinese) post 【已解决】mac中安装maven

Cannot install older version of ImageMagick via Homebrew

I need to install ImageMagick 6.5.8 (or earlier might do), but even when I checkout an earlier commit, it installs the latest version (6.6.9-4). I did this:
$ git checkout -b im-6.5.6 ff414bb
(then confirmed that the working tree shows the correct version of imagemagick.rb, with #url = a .tar of version 6.5.6-5)
$ brew install imagemagick
(and it says Checking out tag 6.6.9-4 and then proceeds to install that version)
Any help would be appreciated. Thx.
Hope you managed to find a solution, if not.
Heres one that worked for me on another related issue.
brew install https://github.com/adamv/homebrew-alt/raw/master/versions/imagemagick-ruby186.rb
This will install ImageMagic 6.5.9-8

Installing gcc 4.4.3 on Ubuntu 9.04

I have Ubuntu 9.04 and need to install gcc 4.4.3. Does anyone know how would I do that?
I can't do it with any other versions except maybe gcc 4.4.x.
Currently ubuntu 9.04 has only 4.3.3 available but that is not sufficient for me.
Thank you in advance!
try sudo apt-get install gcc=4.4.3
I'm not sure if that's the exact version, but that's how you specify which version you want.
You can build gcc 4.4.3 from source - http://gcc.gnu.org/install/
Or you can install from jaunty repository - http://packages.ubuntu.com/ru/jaunty/gcc
Add in your /etc/apt/sources.list - deb http://cz.archive.ubuntu.com/ubuntu jaunty main
Then
sudo apt-get update
sudo apt-get install gcc
GCC is not that hard to compile, even if you do the entire bootstrap compile.
You can try:
Updating Ubuntu: come on, it's free, don't keep the old stuff lingering around...
installing the .deb packages from a later Ubuntu release. I would advise against using the full repository, but it might be you need to go dependency hunting (for the right version of glibc, libstdc++ etc.)

Resources