I need to compile program which uses headers from boost library. So I found two instructions:
sudo apt-get install libboost-all-dev
and
sudo apt-get install boost-devel
What difference between libboost-all-dev and boost-devel? Maybe I must to install it with another one?
I don't know the boost related specifics.
To get more information about debian/ubuntu package, try:
apt-cache show liboost-all-dev
Related
Im trying to install google's tensor flow API and i'm following their instructions on this link to no avail.
after typing the following command:
sudo apt-get install python-pip python-dev
i get:
sudo: apt-get: command not found
I'm new to Linux and i was told there are tow types, red-hat and a nameless parallel, which answers respectively to either wget or apt-get. I was also told i need to adjust the commands. (wget does works)
is this true? What is the accurate difference between wget and apt-get? how do i adjust the commands to my situation?
i'm working with:
SUSE Linux Enterprise server 11 (x86_64)
release 11
Suse Linux has not installed apt-get by default. you should go with zypper:
zypper install python-devel python-pip
apt-get is a packagemanagment system while wget is only good for filetransfer
apt-get is a package manager for Debian distros while SUSE Linux is equipped with zypper.
You can use:
zypper install python-devel python-pip
You can also compile python without using package manager like zypper. Wget is used to download things and is not a package manager. Thus when you will compile, you'll need the package. So you'll use wget.
I have a question regarding the installation of the boost libraries. Is there a package that I can use the sudo apt-get install to install this package. I searched all of the questions in this forum and using the commands sudo apt-get install libboost1.40-dev I cannot install theh package with this. Also, I can download it from boost.org but I do not know the correct path to install it too. I would prefer to install it using the sudo apt-get install commands if possible. I am using Ubuntu 9.04.
Thanks.
If you want to run with the latest version, you can do the bjam install as mentioned by Ralf, but I suggest you build a 'pseudo' package so you can
uninstall it safely
prevent/notice conflicts with official/existing boost packages.
Here is how to do that:
mkdir -pv /tmp/boostinst
cd /tmp/boostinst/
wget -c 'http://sourceforge.net/projects/boost/files/boost/1.66.0/boost_1_66_0.tar.bz2/download'
tar xf download
cd boost_1_66_0/
./bootstrap.sh --help
./bootstrap.sh --show-libraries
./bootstrap.sh
checkinstall ./b2 install
On new boost version there is other way:
sudo apt-get update
wget -c 'http://sourceforge.net/projects/boost/files/boost/1.50.0/boost_1_50_0.tar.bz2/download'
tar xf download
cd boost_1_50_0
./bootstrap.sh
./b2 install
You can use command aptitude search libboost to see list of the availiable boost libraries. The last version of boost is 1.42 - maybe that's why you can't find version 1.40.
If aptitude search command don't give you sufficient results, try sudo aptitude update and then run aptitude search again.
On my version of Ubuntu (10.04) it's libboost1.40-all-dev
On your version you've probably got an older version of boost, you should just be able to tab-complete to see which version you can install.
In any case what I usually do under Ubuntu is
sudo apt-get install bjam
Extract the downloaded boost archive to your hard-drive and then cd into the root and
sudo bjam install
This way you can get the newest version of boost, and not the slightly outdated one that is available for your Ubuntu version.
This is a link which explain step by step on how to install it (give it some time read!)
http://www.boost.org/doc/libs/1_41_0/more/getting_started/unix-variants.html
but your inline shell command might be the simple and easy way for doing it
I'm trying to write a rather trivial program using open gl on linux, but at a compile time it says:
Compile thumb : egl <= cuberenderer.c
In file included from
/path/include/egl.h:36,
from /path/cuberenderer.c:7:
/path/include/eglplatform.h:89:22:
error: X11/Xlib.h: No such file or
directory
/path/include/eglplatform.h:90:23:
error: X11/Xutil.h: No such file or
directory
I'm totally new to GL and have no idea what's wrong.
A quick search using...
apt search Xlib.h
Turns up the package libx11-dev but you shouldn't need this for pure OpenGL programming. What tutorial are you using?
You can add Xlib.h to your system by running the following...
sudo apt install libx11-dev
Presume he's using the tutorial from http://www.arcsynthesis.org/gltut/ along with premake4.3 :-)
sudo apt-get install libx11-dev ................. for X11/Xlib.h
sudo apt-get install mesa-common-dev........ for GL/glx.h
sudo apt-get install libglu1-mesa-dev ..... for GL/glu.h
sudo apt-get install libxrandr-dev ........... for X11/extensions/Xrandr.h
sudo apt-get install libxi-dev ................... for X11/extensions/XInput.h
After which I could build glsdk_0.4.4 and examples without further issue.
Why not try find /usr/include/X11 -name Xlib.h
If there is a hit, you have Xlib.h
If not install it using sudo apt-get install libx11-dev
and you are good to go :)
I want to install Go. I prepared system for support language. But sadly, I can't find Bison and libc6-dev following this command.
sudo apt-get install bison ed gawk gcc libc6-dev make
Then I still can't find the suitable Mercurial for Ubuntu 8.10, which is followed this command.
apt-get install python-setuptools python-dev build-essential
Therefore everyone please guide what I should do in order to install Go completely. My OS is Ubuntu version 8.10. Notice you can post the direct link for me to get packets/files.
Mercurial can typically be installed with
sudo apt-get install mercurial
The package is in universe, which you may not have enabled. The full guide, if you need it, is available here:
https://help.ubuntu.com/community/Mercurial
After installing setuptools et al., the go installation instructions say that you should install mercurial with easy-install, i.e. sudo easy_install mercurial. Are you having trouble with easy_install?
In order to install go with Homebrew run the following command on the terminal:
$ brew install golang
To check the version of go run the following command:
$ go version
To see the location run:
$ which go
To uninstall go :
$ sudo apt-get remove golang-go
I've looked all over and build essentials are all I see that was replaced by Development tools. When I type the command I receive "no such command".
What is the alternative to this?
apt-get build-dep package-i-want-to-build to get everything you need to build package - often the easiest way to get the dev tools is to pick a sufficiently complicated package like pidgin and run this
or
apt-get install build-essential to just get a compiler
Ubuntu doesn't use yum. You still want to use the apt instructions.
Debian, Ubuntu, Mint, etc. have APT package manager, not YUM. In these OSes you generally need to do following to install basic development tools, like C and C++ compilers, binutils, etc:
sudo apt install build-essential