What's the command to find out version of gcc is used inside a conda virtual environment?diff between x86_64-linux-gnu-gcc and plain old gcc?C compiler cannot create excecutablesBuilding AppRTCDemo failed in LINK md5sum_bin_hostHow I can install regex package for python 3.4 without errors?g++ gcc include files not foundFailing to install mclust R package on Ubuntu 16.04
Is "Ram married his daughter" ambiguous?
GPLv3 forces us to make code available, but to who?
Why Vegetable Stock is bitter, but Chicken Stock not?
Airport Security - advanced check, 4th amendment breach
What is the difference between increasing volume and increasing gain?
Why is there such a singular place for bird watching?
Does the US Armed Forces refuse to recruit anyone with an IQ less than 83?
Does publication of the phone call ruin the basis for impeachment?
Is "weekend warrior" derogatory?
Could the Queen overturn the UK Supreme Court ruling regarding prorogation of Parliament?
Where does the image of a data connector as a sharp metal spike originate from?
Parent asking for money after I moved out
The answer is a girl's name (my future granddaughter) - can anyone help?
Booting Ubuntu from USB drive on MSI motherboard -- EVERYTHING fails
Why does the Pilatus PC-24 have such a large "Wing Support"?
Anonymous reviewer disclosed his identity. Should I thank him by name?
Sending mail to the Professor for PhD, after seeing his tweet
Is there a way to stop undigested food from leaving the body?
Confusion in block diagram of open loop and close loop control system?
What does a textbook look like while you are writing it?
How to refresh wired service getRecord manually?
How to level a picture frame hung on a single nail?
Has Boris Johnson ever referred to any of his opponents as "traitors"?
Rover vs pathfinder vs lander?
What's the command to find out version of gcc is used inside a conda virtual environment?
diff between x86_64-linux-gnu-gcc and plain old gcc?C compiler cannot create excecutablesBuilding AppRTCDemo failed in LINK md5sum_bin_hostHow I can install regex package for python 3.4 without errors?g++ gcc include files not foundFailing to install mclust R package on Ubuntu 16.04
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I have a program to be compiled in which I need to have gcc.
However, when a python 2.7 virtual conda enviornment being installed, it needs gcc. So I believe I don't have to install gcc package seperately inside the enviornment. Is this true? And how do I actually see this?
Furthermore, gcc has already been installed in the system itself. I do not want the program to use this system gcc when it's compiling but to use the gcc version which is inside the enviornment. How do I actually test this? Thanks in advance!
This discussion might be useful.
according to this post
"If you download python binaries, it's already compiled and doesn't use your gcc"
So to reprase my question, can we use the gcc inside the virtual to compile the program? or do I have to install gcc inside the env?
(yourenvname) ~$gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.2.0-8ubuntu3.2' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu3.2)
(yourenvname) ~$python
Python 2.7.16 |Anaconda, Inc.| (default, Mar 14 2019, 21:00:58)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
python gcc python-2.7 anaconda conda
|
show 1 more comment
I have a program to be compiled in which I need to have gcc.
However, when a python 2.7 virtual conda enviornment being installed, it needs gcc. So I believe I don't have to install gcc package seperately inside the enviornment. Is this true? And how do I actually see this?
Furthermore, gcc has already been installed in the system itself. I do not want the program to use this system gcc when it's compiling but to use the gcc version which is inside the enviornment. How do I actually test this? Thanks in advance!
This discussion might be useful.
according to this post
"If you download python binaries, it's already compiled and doesn't use your gcc"
So to reprase my question, can we use the gcc inside the virtual to compile the program? or do I have to install gcc inside the env?
(yourenvname) ~$gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.2.0-8ubuntu3.2' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu3.2)
(yourenvname) ~$python
Python 2.7.16 |Anaconda, Inc.| (default, Mar 14 2019, 21:00:58)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
python gcc python-2.7 anaconda conda
1
os.system("gcc --version")???
– xenoid
Apr 16 at 6:50
Hi xenoid: This command raises an error. (yourenvname) ~$import os (yourenvname) ~$os.system("gcc --version") bash: syntax error near unexpected token"gcc --version"'I have checked the gcc version inside and outside the env(yourenvname) ~$which gcchome/jen/miniconda2/yes/envs/yourenvname/bin/gcc~$which gcc/usr/bin/gcc
– Jenny
Apr 16 at 8:03
I think as I have edited in the main question, python only uses gcc to compile it and after that we cannot use it inside the env to compile another program. Could someone confirm this?
– Jenny
Apr 16 at 8:08
I forgot to open python in my first comment>>> import os >>> os.system("gcc --version") gcc (Debian 4.9.2-10+deb8u2) 4.9.2 0
– Jenny
Apr 16 at 9:42
So this should answer your question?
– xenoid
Apr 16 at 9:47
|
show 1 more comment
I have a program to be compiled in which I need to have gcc.
However, when a python 2.7 virtual conda enviornment being installed, it needs gcc. So I believe I don't have to install gcc package seperately inside the enviornment. Is this true? And how do I actually see this?
Furthermore, gcc has already been installed in the system itself. I do not want the program to use this system gcc when it's compiling but to use the gcc version which is inside the enviornment. How do I actually test this? Thanks in advance!
This discussion might be useful.
according to this post
"If you download python binaries, it's already compiled and doesn't use your gcc"
So to reprase my question, can we use the gcc inside the virtual to compile the program? or do I have to install gcc inside the env?
(yourenvname) ~$gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.2.0-8ubuntu3.2' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu3.2)
(yourenvname) ~$python
Python 2.7.16 |Anaconda, Inc.| (default, Mar 14 2019, 21:00:58)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
python gcc python-2.7 anaconda conda
I have a program to be compiled in which I need to have gcc.
However, when a python 2.7 virtual conda enviornment being installed, it needs gcc. So I believe I don't have to install gcc package seperately inside the enviornment. Is this true? And how do I actually see this?
Furthermore, gcc has already been installed in the system itself. I do not want the program to use this system gcc when it's compiling but to use the gcc version which is inside the enviornment. How do I actually test this? Thanks in advance!
This discussion might be useful.
according to this post
"If you download python binaries, it's already compiled and doesn't use your gcc"
So to reprase my question, can we use the gcc inside the virtual to compile the program? or do I have to install gcc inside the env?
(yourenvname) ~$gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.2.0-8ubuntu3.2' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu3.2)
(yourenvname) ~$python
Python 2.7.16 |Anaconda, Inc.| (default, Mar 14 2019, 21:00:58)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
python gcc python-2.7 anaconda conda
python gcc python-2.7 anaconda conda
edited Apr 16 at 8:46
Jenny
asked Apr 16 at 6:14
JennyJenny
31614 bronze badges
31614 bronze badges
1
os.system("gcc --version")???
– xenoid
Apr 16 at 6:50
Hi xenoid: This command raises an error. (yourenvname) ~$import os (yourenvname) ~$os.system("gcc --version") bash: syntax error near unexpected token"gcc --version"'I have checked the gcc version inside and outside the env(yourenvname) ~$which gcchome/jen/miniconda2/yes/envs/yourenvname/bin/gcc~$which gcc/usr/bin/gcc
– Jenny
Apr 16 at 8:03
I think as I have edited in the main question, python only uses gcc to compile it and after that we cannot use it inside the env to compile another program. Could someone confirm this?
– Jenny
Apr 16 at 8:08
I forgot to open python in my first comment>>> import os >>> os.system("gcc --version") gcc (Debian 4.9.2-10+deb8u2) 4.9.2 0
– Jenny
Apr 16 at 9:42
So this should answer your question?
– xenoid
Apr 16 at 9:47
|
show 1 more comment
1
os.system("gcc --version")???
– xenoid
Apr 16 at 6:50
Hi xenoid: This command raises an error. (yourenvname) ~$import os (yourenvname) ~$os.system("gcc --version") bash: syntax error near unexpected token"gcc --version"'I have checked the gcc version inside and outside the env(yourenvname) ~$which gcchome/jen/miniconda2/yes/envs/yourenvname/bin/gcc~$which gcc/usr/bin/gcc
– Jenny
Apr 16 at 8:03
I think as I have edited in the main question, python only uses gcc to compile it and after that we cannot use it inside the env to compile another program. Could someone confirm this?
– Jenny
Apr 16 at 8:08
I forgot to open python in my first comment>>> import os >>> os.system("gcc --version") gcc (Debian 4.9.2-10+deb8u2) 4.9.2 0
– Jenny
Apr 16 at 9:42
So this should answer your question?
– xenoid
Apr 16 at 9:47
1
1
os.system("gcc --version")???– xenoid
Apr 16 at 6:50
os.system("gcc --version")???– xenoid
Apr 16 at 6:50
Hi xenoid: This command raises an error. (yourenvname) ~$import os (yourenvname) ~$os.system("gcc --version") bash: syntax error near unexpected token
"gcc --version"' I have checked the gcc version inside and outside the env (yourenvname) ~$which gcc home/jen/miniconda2/yes/envs/yourenvname/bin/gcc ~$which gcc /usr/bin/gcc– Jenny
Apr 16 at 8:03
Hi xenoid: This command raises an error. (yourenvname) ~$import os (yourenvname) ~$os.system("gcc --version") bash: syntax error near unexpected token
"gcc --version"' I have checked the gcc version inside and outside the env (yourenvname) ~$which gcc home/jen/miniconda2/yes/envs/yourenvname/bin/gcc ~$which gcc /usr/bin/gcc– Jenny
Apr 16 at 8:03
I think as I have edited in the main question, python only uses gcc to compile it and after that we cannot use it inside the env to compile another program. Could someone confirm this?
– Jenny
Apr 16 at 8:08
I think as I have edited in the main question, python only uses gcc to compile it and after that we cannot use it inside the env to compile another program. Could someone confirm this?
– Jenny
Apr 16 at 8:08
I forgot to open python in my first comment
>>> import os >>> os.system("gcc --version") gcc (Debian 4.9.2-10+deb8u2) 4.9.2 0– Jenny
Apr 16 at 9:42
I forgot to open python in my first comment
>>> import os >>> os.system("gcc --version") gcc (Debian 4.9.2-10+deb8u2) 4.9.2 0– Jenny
Apr 16 at 9:42
So this should answer your question?
– xenoid
Apr 16 at 9:47
So this should answer your question?
– xenoid
Apr 16 at 9:47
|
show 1 more comment
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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/4.0/"u003ecc by-sa 4.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%2faskubuntu.com%2fquestions%2f1134266%2fwhats-the-command-to-find-out-version-of-gcc-is-used-inside-a-conda-virtual-env%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f1134266%2fwhats-the-command-to-find-out-version-of-gcc-is-used-inside-a-conda-virtual-env%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
os.system("gcc --version")???– xenoid
Apr 16 at 6:50
Hi xenoid: This command raises an error. (yourenvname) ~$import os (yourenvname) ~$os.system("gcc --version") bash: syntax error near unexpected token
"gcc --version"'I have checked the gcc version inside and outside the env(yourenvname) ~$which gcchome/jen/miniconda2/yes/envs/yourenvname/bin/gcc~$which gcc/usr/bin/gcc– Jenny
Apr 16 at 8:03
I think as I have edited in the main question, python only uses gcc to compile it and after that we cannot use it inside the env to compile another program. Could someone confirm this?
– Jenny
Apr 16 at 8:08
I forgot to open python in my first comment
>>> import os >>> os.system("gcc --version") gcc (Debian 4.9.2-10+deb8u2) 4.9.2 0– Jenny
Apr 16 at 9:42
So this should answer your question?
– xenoid
Apr 16 at 9:47