Upgrading GCC on Debian Wheezy to support C++ 11 features
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
We are currently working with Kontron servers on which we've installed Debian 7.x systems.
I began to develop applications using C++ 11 features. But it's not officially supported by the version of gcc (gcc 4.7.x).
I just realized that it's not that easy to upgrade a version of GCC on a Debian 7.x.
What would be the best solution to upgrade the GCC version to a Debian Wheezy so that it supports C++ 11 features on my Linux dev platform?
What to upgrade on the production server so that the generated binary could execute properly? I guess the libstdc++ has changed a lot.
debian gcc
add a comment |
We are currently working with Kontron servers on which we've installed Debian 7.x systems.
I began to develop applications using C++ 11 features. But it's not officially supported by the version of gcc (gcc 4.7.x).
I just realized that it's not that easy to upgrade a version of GCC on a Debian 7.x.
What would be the best solution to upgrade the GCC version to a Debian Wheezy so that it supports C++ 11 features on my Linux dev platform?
What to upgrade on the production server so that the generated binary could execute properly? I guess the libstdc++ has changed a lot.
debian gcc
1
To upgrade g++ on wheezy, you'll also have to upgrade libstdc++ (and every package that depends on that) and many other libraries. You'll end up with a system that is neither jessie nor wheezy but a custom-built hybrid of the two. This custom distro will receive only a tiny fraction of the testing and integration that jessie receives (i.e. only what you do yourself). You would be much better off just upgrading to jessie. If your goal is to stay with oldstable aka wheezy then by upgrading g++ and libstdc++ etc you have already defeated that goal.
– cas
Nov 13 '15 at 23:45
add a comment |
We are currently working with Kontron servers on which we've installed Debian 7.x systems.
I began to develop applications using C++ 11 features. But it's not officially supported by the version of gcc (gcc 4.7.x).
I just realized that it's not that easy to upgrade a version of GCC on a Debian 7.x.
What would be the best solution to upgrade the GCC version to a Debian Wheezy so that it supports C++ 11 features on my Linux dev platform?
What to upgrade on the production server so that the generated binary could execute properly? I guess the libstdc++ has changed a lot.
debian gcc
We are currently working with Kontron servers on which we've installed Debian 7.x systems.
I began to develop applications using C++ 11 features. But it's not officially supported by the version of gcc (gcc 4.7.x).
I just realized that it's not that easy to upgrade a version of GCC on a Debian 7.x.
What would be the best solution to upgrade the GCC version to a Debian Wheezy so that it supports C++ 11 features on my Linux dev platform?
What to upgrade on the production server so that the generated binary could execute properly? I guess the libstdc++ has changed a lot.
debian gcc
debian gcc
edited Mar 18 at 3:25
Rui F Ribeiro
42.1k1484142
42.1k1484142
asked Nov 13 '15 at 19:45
ZyendZyend
1264
1264
1
To upgrade g++ on wheezy, you'll also have to upgrade libstdc++ (and every package that depends on that) and many other libraries. You'll end up with a system that is neither jessie nor wheezy but a custom-built hybrid of the two. This custom distro will receive only a tiny fraction of the testing and integration that jessie receives (i.e. only what you do yourself). You would be much better off just upgrading to jessie. If your goal is to stay with oldstable aka wheezy then by upgrading g++ and libstdc++ etc you have already defeated that goal.
– cas
Nov 13 '15 at 23:45
add a comment |
1
To upgrade g++ on wheezy, you'll also have to upgrade libstdc++ (and every package that depends on that) and many other libraries. You'll end up with a system that is neither jessie nor wheezy but a custom-built hybrid of the two. This custom distro will receive only a tiny fraction of the testing and integration that jessie receives (i.e. only what you do yourself). You would be much better off just upgrading to jessie. If your goal is to stay with oldstable aka wheezy then by upgrading g++ and libstdc++ etc you have already defeated that goal.
– cas
Nov 13 '15 at 23:45
1
1
To upgrade g++ on wheezy, you'll also have to upgrade libstdc++ (and every package that depends on that) and many other libraries. You'll end up with a system that is neither jessie nor wheezy but a custom-built hybrid of the two. This custom distro will receive only a tiny fraction of the testing and integration that jessie receives (i.e. only what you do yourself). You would be much better off just upgrading to jessie. If your goal is to stay with oldstable aka wheezy then by upgrading g++ and libstdc++ etc you have already defeated that goal.
– cas
Nov 13 '15 at 23:45
To upgrade g++ on wheezy, you'll also have to upgrade libstdc++ (and every package that depends on that) and many other libraries. You'll end up with a system that is neither jessie nor wheezy but a custom-built hybrid of the two. This custom distro will receive only a tiny fraction of the testing and integration that jessie receives (i.e. only what you do yourself). You would be much better off just upgrading to jessie. If your goal is to stay with oldstable aka wheezy then by upgrading g++ and libstdc++ etc you have already defeated that goal.
– cas
Nov 13 '15 at 23:45
add a comment |
1 Answer
1
active
oldest
votes
One option is to compile it from source. I used the following instructions to update g++ on my Ubuntu machine, but should be the same for Debian. (You may use stow so that it is easier to remove later but it is not necessary.)
wget http://gcc.cybermirror.org/releases/gcc-4.9.0/gcc-4.9.0.tar.gz
tar -xvf gcc-4.9.0.tar.gz
cd gcc-4.9.0/
./contrib/download_prerequisites
mkdir objdir
cd objdir
$PWD/../configure --prefix=/usr/local/stow/gcc-4.9.0
make
sudo apt-get install stow
sudo make install
cd /usr/local/stow
sudo stow gcc-4.9.0
For more information you can read up on: https://gcc.gnu.org/wiki/InstallingGCC
I will test that solution tomorrow on my dev machine. What about the deployment on the production server ? Should I update some std libraries ?
– Zyend
Nov 13 '15 at 21:24
let me know how it goes. Off the top of my head you would need to install libgmp-dev, libmpfr-dev and libmpc-dev
– ARG
Nov 13 '15 at 21:43
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f242876%2fupgrading-gcc-on-debian-wheezy-to-support-c-11-features%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
One option is to compile it from source. I used the following instructions to update g++ on my Ubuntu machine, but should be the same for Debian. (You may use stow so that it is easier to remove later but it is not necessary.)
wget http://gcc.cybermirror.org/releases/gcc-4.9.0/gcc-4.9.0.tar.gz
tar -xvf gcc-4.9.0.tar.gz
cd gcc-4.9.0/
./contrib/download_prerequisites
mkdir objdir
cd objdir
$PWD/../configure --prefix=/usr/local/stow/gcc-4.9.0
make
sudo apt-get install stow
sudo make install
cd /usr/local/stow
sudo stow gcc-4.9.0
For more information you can read up on: https://gcc.gnu.org/wiki/InstallingGCC
I will test that solution tomorrow on my dev machine. What about the deployment on the production server ? Should I update some std libraries ?
– Zyend
Nov 13 '15 at 21:24
let me know how it goes. Off the top of my head you would need to install libgmp-dev, libmpfr-dev and libmpc-dev
– ARG
Nov 13 '15 at 21:43
add a comment |
One option is to compile it from source. I used the following instructions to update g++ on my Ubuntu machine, but should be the same for Debian. (You may use stow so that it is easier to remove later but it is not necessary.)
wget http://gcc.cybermirror.org/releases/gcc-4.9.0/gcc-4.9.0.tar.gz
tar -xvf gcc-4.9.0.tar.gz
cd gcc-4.9.0/
./contrib/download_prerequisites
mkdir objdir
cd objdir
$PWD/../configure --prefix=/usr/local/stow/gcc-4.9.0
make
sudo apt-get install stow
sudo make install
cd /usr/local/stow
sudo stow gcc-4.9.0
For more information you can read up on: https://gcc.gnu.org/wiki/InstallingGCC
I will test that solution tomorrow on my dev machine. What about the deployment on the production server ? Should I update some std libraries ?
– Zyend
Nov 13 '15 at 21:24
let me know how it goes. Off the top of my head you would need to install libgmp-dev, libmpfr-dev and libmpc-dev
– ARG
Nov 13 '15 at 21:43
add a comment |
One option is to compile it from source. I used the following instructions to update g++ on my Ubuntu machine, but should be the same for Debian. (You may use stow so that it is easier to remove later but it is not necessary.)
wget http://gcc.cybermirror.org/releases/gcc-4.9.0/gcc-4.9.0.tar.gz
tar -xvf gcc-4.9.0.tar.gz
cd gcc-4.9.0/
./contrib/download_prerequisites
mkdir objdir
cd objdir
$PWD/../configure --prefix=/usr/local/stow/gcc-4.9.0
make
sudo apt-get install stow
sudo make install
cd /usr/local/stow
sudo stow gcc-4.9.0
For more information you can read up on: https://gcc.gnu.org/wiki/InstallingGCC
One option is to compile it from source. I used the following instructions to update g++ on my Ubuntu machine, but should be the same for Debian. (You may use stow so that it is easier to remove later but it is not necessary.)
wget http://gcc.cybermirror.org/releases/gcc-4.9.0/gcc-4.9.0.tar.gz
tar -xvf gcc-4.9.0.tar.gz
cd gcc-4.9.0/
./contrib/download_prerequisites
mkdir objdir
cd objdir
$PWD/../configure --prefix=/usr/local/stow/gcc-4.9.0
make
sudo apt-get install stow
sudo make install
cd /usr/local/stow
sudo stow gcc-4.9.0
For more information you can read up on: https://gcc.gnu.org/wiki/InstallingGCC
answered Nov 13 '15 at 20:48
ARGARG
1,0891012
1,0891012
I will test that solution tomorrow on my dev machine. What about the deployment on the production server ? Should I update some std libraries ?
– Zyend
Nov 13 '15 at 21:24
let me know how it goes. Off the top of my head you would need to install libgmp-dev, libmpfr-dev and libmpc-dev
– ARG
Nov 13 '15 at 21:43
add a comment |
I will test that solution tomorrow on my dev machine. What about the deployment on the production server ? Should I update some std libraries ?
– Zyend
Nov 13 '15 at 21:24
let me know how it goes. Off the top of my head you would need to install libgmp-dev, libmpfr-dev and libmpc-dev
– ARG
Nov 13 '15 at 21:43
I will test that solution tomorrow on my dev machine. What about the deployment on the production server ? Should I update some std libraries ?
– Zyend
Nov 13 '15 at 21:24
I will test that solution tomorrow on my dev machine. What about the deployment on the production server ? Should I update some std libraries ?
– Zyend
Nov 13 '15 at 21:24
let me know how it goes. Off the top of my head you would need to install libgmp-dev, libmpfr-dev and libmpc-dev
– ARG
Nov 13 '15 at 21:43
let me know how it goes. Off the top of my head you would need to install libgmp-dev, libmpfr-dev and libmpc-dev
– ARG
Nov 13 '15 at 21:43
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f242876%2fupgrading-gcc-on-debian-wheezy-to-support-c-11-features%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
To upgrade g++ on wheezy, you'll also have to upgrade libstdc++ (and every package that depends on that) and many other libraries. You'll end up with a system that is neither jessie nor wheezy but a custom-built hybrid of the two. This custom distro will receive only a tiny fraction of the testing and integration that jessie receives (i.e. only what you do yourself). You would be much better off just upgrading to jessie. If your goal is to stay with oldstable aka wheezy then by upgrading g++ and libstdc++ etc you have already defeated that goal.
– cas
Nov 13 '15 at 23:45