How to install all the boost development libraries?

1

I am having trouble installing boost library completely it fails/skips several things that seem to be key for me to continue on to compiling a program with it. Here is what I get when I install boost,

gcc.compile.c++ bin.v2/libs/iostreams/build/gcc-4.6/release/threading-multi/bzip2.o libs/iostreams/src/bzip2.cpp:20:56: fatal error: bzlib.h: No such file or directory compilation terminated. "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_IOSTREAMS_DYN_LINK=1 -DBOOST_IOSTREAMS_USE_DEPRECATED -DNDEBUG -I"." -c -o "bin.v2/libs/iostreams/build/gcc-4.6/release/threading-multi/bzip2.o" "libs/iostreams/src/bzip2.cpp" ...failed gcc.compile.c++ bin.v2/libs/iostreams/build/gcc-4.6/release/threading-multi/bzip2.o... ...skipped libboost_iostreams.so.1.50.0 for lack of bzip2.o... ...skipped

libboost_iostreams.so.1.50.0 for lack of libboost_iostreams.so.1.50.0... ...skipped

libboost_iostreams.so for lack of...

0 0
2

Get the version of Boost that you require. This is for 1.55 but feel free to change or manually download yourself:

wget -O boost_1_55_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz/download tar xzvf boost_1_55_0.tar.gz cd boost_1_55_0/

Get the required libraries, main ones are icu for boost::regex support:

sudo apt-get update sudo apt-get install build-essential g++ python-dev autotools-dev libicu-dev build-essential libbz2-dev

Boost's bootstrap setup:

./bootstrap.sh --prefix=/usr/local

If we want MPI then we need to set the flag in the user-config.jam file:

user_configFile=`find $PWD -name user-config.jam` echo "using mpi ;" >> $user_configFile

Find the maximum number of physical cores:

n=`cat /proc/cpuinfo | grep "cpu cores" | uniq | awk '{print $NF}'`

Install boost in parallel:

sudo ./b2 --with=all -j $n install

Assumes you have /usr/local/lib setup already. if not, you can add it to your LD LIBRARY...

0 0
3

The easiest way to create a working Boost installation is to compile Boost from sources yourself. This is particularly important as many high performance resources, even if they have Boost installed, usually only provide you with an older version of Boost. We suggest you download the most recent release of the Boost libraries from here: Boost Downloads. Unpack the downloaded archive into a directory of your choosing. We will refer to this directory a $BOOST.

Building and installing the Boost binaries is simple, regardless what platform you are on the basic instructions are as follows (with possible additional platform-dependent command line arguments):

cd $BOOST bootstrap --prefix= ./b2 -j ./b2 install

where: is the directory the built binaries will be installed to, and is the number of cores to use to build the Boost binaries.

After the above sequence of commands has been...

0 0
4

Hi Astekinane, Maybe this below URL's can solve your problem. http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/1752ea81-2602-4c67-908e-8fcfb9178ed5/ elvis hsieh

Can you elaborate a bit more on how to add paths to the headers and libraries? I don't use an IDE. I usually use MinGW to compile in command line and I have added the paths to my include and lib folder in the PATH via system environmental variables.

Windows usually looks for dll's in the current executable directory and in the system32 folder. Drop your file in any of those directories. That should make the trick.

I'm not really sure I understand your question, however during compile time you can add include directories by using the -I flag (uppercase i) and library directories by using the -L flag. For example, if you have some .h files in a directory named "include" you would type: gcc...

0 0
5
How to install stringi library from archive and install the local icu52l.zip

location: linuxexchange.com - date: January 1, 1970
We're bumbling through making some R code work in a production environment and as part of that we're installing some R packages as follows: # Default directories and mirrors WORKING_DIR = 1.2.10... no *** The sdl-config script installed by SDL could not be found *** If SDL was installed in PREFIX, make sure PREFIX/bin is in *** your path, or set the SDL_CONFIG environment variable to the *** full path to sdl-config. I don't understand, it expects a script for installing whose presence there is the result of an installation... I don't know what to try anymore... I've spent a lot o

How to install SDL2 library in Fedora 20

location: linuxexchange.com - date: January 1, 1970
There is a question about the SDL package (SDL 1.2) in Fedora in StackOverflow. But I can't found any about SDL2 in Fedora, and I am having troubles to install the...

0 0
6
10.10 desktop.
Trying to install e4rat that was on LifeHacker on Friday and have zero idea what I am doing.
I have the e4rat extracted to a directory in /usr/local/src
The README says that there are dependencies including boost library components. I am fine installing the whole boost library but sudo apt-get install libboost* did not work.

Code:

sudo apt-get install libboost-thread-dev got part of it

When I went to execute the command

Code:

cmake . -DCMAKE_BUILD_TYPE=release I got the following:

Code:

CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:910 (message): Unable to find the requested Boost libraries. Boost version: 1.42.0 Boost include path: /usr/include The following Boost libraries could not be found: boost_system boost_filesystem boost_regex No Boost libraries were found. You may need to set Boost_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of ...
0 0
7
I have recently upgraded from Boost 1.54 to 1.57. But when I look in my lib directory where all my boost library files are located, I do not see libboost_log.so I ran ./bootstrap.sh --show-libraries to see what should get installed and I received the following: pdl#pdl-VirtualBox:~/Downloads/boost_1_57_0$ ./bootstrap.sh --show-libraries Building Boost.Build engine with toolset gcc... tools/build/src/engine/bin.linuxx86_64/b2 The following Boost libraries have portions that require a separate build and installation step. Any library not listed here can be used by including the headers only. The Boost libraries requiring separate building and installation are: - atomic - chrono - container - context - coroutine - date_time - exception - filesystem - graph - graph_parallel - iostreams - locale - log - math - mpi - program_options - python - random - regex - serialization - signals - system - test - thread - timer - wave pdl#pdl-VirtualBox:~/Downloads/boost_1_57_0$ I need to install the...
0 0
8

There are several methods to obtain Boost binaries for Windows build environments.

The boost static libraries follow a naming convention as explained in the Boost - Library Naming . When including boost headers in your MSVC++ projects, the headers (like ) make use of VC's auto linking feature, so you don't need to worry about the actual file names, the linker is automatically instructed to require the correct libraries. All you have to do is make sure the linker can find these files in your project's libs directory.

Download them from Sourceforge

You can try to find the static binaries needed on Boost's Sourceforge page.

Often for very "fresh" releases there are no binaries available yet, so you'll need to fall back compiling the binaries yourself.

Compile the libraries from Boost sources

Download the boost release package from their website, e.g. Boost 1.45, and extract it to a folder. For this guide, I'll assume your boost package has...

0 0
9

How To Install Build And Use The Boost C Libraries In Eclipse Ide On Ubuntu

Full Download How To Install Build And Use The Boost C Libraries In Eclipse Ide On Ubuntu Games With Gameplay Walkthrough Full Guide And Tutorial Video HD. Download How To Install Build And Use The Boost C Libraries In Eclipse Ide On Ubuntu Fo PC Wii U PS4 PS3 Xbox One Xbox 360 With How To Install Build And Use The Boost C Libraries In Eclipse Ide On Ubuntu Cheat Files And Full List Command if Needed

[Download] How To Install Build And Use The Boost C Libraries In Eclipse IDE On Ubuntu

Full Download How To Install Build And Use The Boost C Libraries In Eclipse IDE On Ubuntu VIDEO and Games With Gameplay Walkthrough And Tutorial Video HD. Download How To Install Build And Use The Boost C Libraries In Eclipse IDE On Ubuntu Fo PC Wii U PS4 PS3 Xbox One Xbox 360 With Full List Command And Cheat Files if Needed AND DOWNLOAD THIS VIDEO

DOWNLOAD NOW

[Download] Ubuntu Linux Tutorial...

0 0
10

I downloaded boostjam and put it in with the install files and tried to run it, the following error is displayed:

error: error: no Jamfile in current directory found, and no target references specified.

-------------Problems Reply------------

The more modern package manager homebrew does this with a single

$ brew install boost

If you first install MacPorts, you can install Boost with a single command:

sudo port install boost

Did you download boost archive and unpack it? Why you downloaded bjam? What install files? Bootstrap can compile bjam on your computer. Short story howto install:

Unpack the boost archive to desktop Navigate with terminal to boost directory (its something like /users/zbuffer/desktop/boost_1_46_1) type: ./bootstrap.sh pay attention to error messages if bootstrap may not execute and you need to allow it before: chmod +x bootstrap.sh if bootstrap worked type: ./bjam...
0 0
11

Welcome to Boost.org!

Boost provides free peer-reviewed portable C++ source libraries.

We emphasize libraries that work well with the C++ Standard Library. Boost libraries are intended to be widely useful, and usable across a broad spectrum of applications. The Boost license encourages both commercial and non-commercial use.

We aim to establish "existing practice" and provide reference implementations so that Boost libraries are suitable for eventual standardization. Ten Boost libraries are included in the C++ Standards Committee's Library Technical Report (TR1) and in the new C++11 Standard. C++11 also includes several more Boost libraries in addition to those from TR1. More Boost libraries are proposed for standardization in C++17.

Since 2006 an intimate week long annual conference related to Boost called C++ Now has been held in Aspen,...

0 0
12

If you're using an earlier version of Visual C++, or a compiler from another vendor, you'll need to use Boost.Build to create your own binaries.

5.2.1 Install Boost.Build

Boost.Build is a text-based system for developing, testing, and installing software. First, you'll need to build and install it. To do this:

Go to the directory tools\build\. Run bootstrap.bat Run b2 install --prefix=PREFIX where PREFIX is the directory where you want Boost.Build to be installed Add PREFIX\bin to your PATH environment variable.

5.2.2 Identify Your Toolset

First, find the toolset corresponding to your compiler in the following table (an up-to-date list is always available in the Boost.Build documentation).

If you previously chose a toolset for the purposes of building b2, you should assume it won't work and instead choose newly from the table below.

If you have multiple versions of a particular compiler installed, you can append the version number to...

0 0
13

Linux Notes: This is dependent on the distribution you are using, but most, if not all, of the dependencies should be available in the package repositories for your package manager.

Mac OS X Notes: Install the Xcode app to get the build tools (GCC and Make). Use MacPorts to get the Boost and Mako dependencies. Other dependencies can be downloaded as DMG installers from the web or installed via MacPorts. See the UHD OS X build instructions for more information: Build Instructions (Mac OS X)

Windows Notes: The dependencies can be acquired through installable EXE files. Usually, the Windows installer can be found on the project's website. Some projects do not host Windows installers, and if this is the case, follow the auxiliary download URL for the Windows installer (below).

C++ Compiler

The following compilers are known to work and officially supported:

GCC >= 4.8 Clang >= 3.3 MSVC >= 2015 (14.0); the free version works.

Other compilers (or lower...

0 0
14

I'm having a lot of trouble installing Boost for use with Eclipse C++ (compiler MinGW).

I first tried downloading the zip at https://sourceforge.net/projects/boost/files/boost/1.61.0/. After it downloaded, I brought it to my second drive, extracted the files there, cd there, and then ran ./bootstrap.bat gcc, which appeared to run successfully.

Then, I ran b2 install --prefix="D:\boostfiles" toolset=gcc and it took about 30 minutes to create a lot of files starting with bin.v2 and ending with rst.

However, #include still gives an error. Is there somewhere the files are supposed to be?

For reference, my file structure includes the original boost_1_61_0 extracted folder, a folder that boost was installed to called boostfiles, and a folder called PFiles that includes both eclipse and MinGW.

Please keep it simple, I'm pretty new....

0 0
15

I was able to install xgboost for Python in Windows yesterday by following this link. But when I tried to import using Anaconda, it failed. I recognized this is due to the fact that Anaconda has a different Python distribution. I then searched again and found this great article which made it!

The trick is after installing successfully for regular Python, to have it work for Anaconda, you just need to pull up the Anaconda prompt and cd into this folder "code\xgboost\python-package", then run:

python setup.py install

And voila! The article says you need to add the path, but for me it worked directly. Good luck!

Also copied below the original contents in case the link is not available...

Once the last command completes the build is done. We can now install the Python module. What follows depends on the Python distribution you are using. For Anaconda, I will simply use the Anaconda prompt, and type the following in it (after the prompt, in my case...

0 0
16
33 minutes to read Contributors

The tables on this page list the IDs that you can use to install Visual Studio by using the command line or that you can specify as a dependency in a VSIX manifest. Note that we will add additional components as we release updates to Visual Studio.

Also note the following about the page:

Each workload has its own section, followed by the workload ID and a table of the components that are available for the workload. By default, the Required components will be installed when you install the workload. If you choose to, you can also install the Recommended and Optional components. We've also added a section that lists the additional components that are not affiliated with any workload.

When you set dependencies in your VSIX manifest, you must specify Component IDs only. Use the tables on this page to determine our minimum component dependencies. In some scenarios, this might mean that you specify only one component from a...

0 0
17

My MinGW distribution ("distro") is x64-native and currently contains GCC 7.3.0 and Boost 1.66.0.

mingw-15.4.exe (76.4 MB) : This is a self-extracting archive. It's incredibly easy to install; see How To Install below.

My build scripts are available on GitHub, and they're also stored within the distro itself.

* With jpegtran.

** With pcregrep and pcre2grep.

*** Only sort, uniq, and wc.

I recommend that anyone who is learning Standard C++ and who uses Windows for a primary development environment should use two compilers: the most modern version of Microsoft Visual C++ (currently 2017) and the most modern version of GCC, the GNU Compiler Collection. Using two compilers that conform closely to the Standard subjects your code to more strenuous trials than using a single compiler would.

MinGW is a port of GCC to Windows. It is free of charge and simple to use (well, as simple as toolchains ever get). It produces standalone Windows...

0 0