Installing GCC on SLES 12

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite
2












I'm having trouble installing gcc on a new SLES 12 box. The goal here is actually to get R Shiny running, but when I try to install any packages I get the below error:



sudo su - -c "R -e "install.packages('Rcpp',repos='https://cran.rstudio.com/')""
make: g++: Command not found


This leads me to believe I need to install gcc.



which gcc:



which: no gcc in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/games)



gcc -version:



If 'gcc' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf gcc



This is where the trouble begins. When I zypper in gcc:



Problem: gcc-4.7-7.1.1.x86_64 requires gcc47, but this requirement cannot be provided
uninstallable providers: gcc47-4.7.2_20130108-2.1.6.i586[oss]
gcc47-4.7.2_20130108-2.1.6.x86_64[oss]



Ok.. zypper in gcc47-4.7.2_20130108-2.1.6.x86_64



Results:



Problem: gcc47-4.7.2_20130108-2.1.6.x86_64 requires glibc-devel, but this requirement cannot be provided
uninstallable providers: glibc-devel-2.17-4.4.1.i586[oss]
glibc-devel-2.17-4.4.1.x86_64[oss]



Right then... zypper in glibc-devel



Results:



Problem: glibc-devel-2.17-4.4.1.x86_64 requires glibc = 2.17, but this requirement cannot be provided
uninstallable providers: glibc-2.17-4.4.1.i586[oss]
glibc-2.17-4.4.1.x86_64[oss]



zypper in glibc



Results:
`'glibc' is already installed.



No update candidate for 'glibc-2.19-17.72.x86_64'. The highest available version is already installed.



So somewhere in this chain of dependencies an RPM needs a lower version of something I already have. I don't want to downgrade the system. Is there some way to get the most up to date GCC that will work with glibc-2.19? Am I doing something wrong here? Am I missing a repo?



SLSE12:~ # cat /etc/os-release
NAME="SLES"
VERSION="12"
VERSION_ID="12"
PRETTY_NAME="SUSE Linux Enterprise Server 12"
ID="sles"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:12"


# zypper lr -u
# | Alias | Name | Enabled | Refresh | URI
--+-----------+-----------+---------+---------+-------------------------------------------------------------------------------
1 | gcc | gcc | Yes | No | http://download.opensuse.org/repositories/devel:/gcc/SLE-12/
2 | oss | oss | Yes | No | http://download.opensuse.org/distribution/12.3/repo/oss/
3 | r-patched | r-patched | Yes | No | http://download.opensuse.org/repositories/devel:/languages:/R:/patched/SLE_12/









share|improve this question























  • If repo " download.opensuse.org/repositories/devel:/gcc/SLE-12 " : There is no gcc47 any more. About "glibc-devel" : System files can be installed only when you have paid / activated your SLES account / license. I.e. SLES12 is a commercial OS. ...
    – Knud Larsen
    Nov 28 '15 at 16:27











  • There is however a gcc48, and R Shiny is likely agnostic to which version to use, so why would I not be able to use that?
    – RedRaven
    Nov 28 '15 at 16:51











  • Just try : # zypper in gcc48-c++ ... or / and # zypper in gcc-c++
    – Knud Larsen
    Nov 28 '15 at 21:07











  • same error, just different package gcc48-c++-4.8.5-161.1.x86_64 requires libstdc++48-devel = 4.8.5-161.1, but this requirement cannot be provided uninstallable providers: libstdc++48-devel-.8.5-161.1.x86_64[devel_gcc] libstdc++48-devel-4.8.5-161.1.x86_64[gcc]
    – RedRaven
    Nov 28 '15 at 21:59














up vote
2
down vote

favorite
2












I'm having trouble installing gcc on a new SLES 12 box. The goal here is actually to get R Shiny running, but when I try to install any packages I get the below error:



sudo su - -c "R -e "install.packages('Rcpp',repos='https://cran.rstudio.com/')""
make: g++: Command not found


This leads me to believe I need to install gcc.



which gcc:



which: no gcc in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/games)



gcc -version:



If 'gcc' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf gcc



This is where the trouble begins. When I zypper in gcc:



Problem: gcc-4.7-7.1.1.x86_64 requires gcc47, but this requirement cannot be provided
uninstallable providers: gcc47-4.7.2_20130108-2.1.6.i586[oss]
gcc47-4.7.2_20130108-2.1.6.x86_64[oss]



Ok.. zypper in gcc47-4.7.2_20130108-2.1.6.x86_64



Results:



Problem: gcc47-4.7.2_20130108-2.1.6.x86_64 requires glibc-devel, but this requirement cannot be provided
uninstallable providers: glibc-devel-2.17-4.4.1.i586[oss]
glibc-devel-2.17-4.4.1.x86_64[oss]



Right then... zypper in glibc-devel



Results:



Problem: glibc-devel-2.17-4.4.1.x86_64 requires glibc = 2.17, but this requirement cannot be provided
uninstallable providers: glibc-2.17-4.4.1.i586[oss]
glibc-2.17-4.4.1.x86_64[oss]



zypper in glibc



Results:
`'glibc' is already installed.



No update candidate for 'glibc-2.19-17.72.x86_64'. The highest available version is already installed.



So somewhere in this chain of dependencies an RPM needs a lower version of something I already have. I don't want to downgrade the system. Is there some way to get the most up to date GCC that will work with glibc-2.19? Am I doing something wrong here? Am I missing a repo?



SLSE12:~ # cat /etc/os-release
NAME="SLES"
VERSION="12"
VERSION_ID="12"
PRETTY_NAME="SUSE Linux Enterprise Server 12"
ID="sles"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:12"


# zypper lr -u
# | Alias | Name | Enabled | Refresh | URI
--+-----------+-----------+---------+---------+-------------------------------------------------------------------------------
1 | gcc | gcc | Yes | No | http://download.opensuse.org/repositories/devel:/gcc/SLE-12/
2 | oss | oss | Yes | No | http://download.opensuse.org/distribution/12.3/repo/oss/
3 | r-patched | r-patched | Yes | No | http://download.opensuse.org/repositories/devel:/languages:/R:/patched/SLE_12/









share|improve this question























  • If repo " download.opensuse.org/repositories/devel:/gcc/SLE-12 " : There is no gcc47 any more. About "glibc-devel" : System files can be installed only when you have paid / activated your SLES account / license. I.e. SLES12 is a commercial OS. ...
    – Knud Larsen
    Nov 28 '15 at 16:27











  • There is however a gcc48, and R Shiny is likely agnostic to which version to use, so why would I not be able to use that?
    – RedRaven
    Nov 28 '15 at 16:51











  • Just try : # zypper in gcc48-c++ ... or / and # zypper in gcc-c++
    – Knud Larsen
    Nov 28 '15 at 21:07











  • same error, just different package gcc48-c++-4.8.5-161.1.x86_64 requires libstdc++48-devel = 4.8.5-161.1, but this requirement cannot be provided uninstallable providers: libstdc++48-devel-.8.5-161.1.x86_64[devel_gcc] libstdc++48-devel-4.8.5-161.1.x86_64[gcc]
    – RedRaven
    Nov 28 '15 at 21:59












up vote
2
down vote

favorite
2









up vote
2
down vote

favorite
2






2





I'm having trouble installing gcc on a new SLES 12 box. The goal here is actually to get R Shiny running, but when I try to install any packages I get the below error:



sudo su - -c "R -e "install.packages('Rcpp',repos='https://cran.rstudio.com/')""
make: g++: Command not found


This leads me to believe I need to install gcc.



which gcc:



which: no gcc in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/games)



gcc -version:



If 'gcc' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf gcc



This is where the trouble begins. When I zypper in gcc:



Problem: gcc-4.7-7.1.1.x86_64 requires gcc47, but this requirement cannot be provided
uninstallable providers: gcc47-4.7.2_20130108-2.1.6.i586[oss]
gcc47-4.7.2_20130108-2.1.6.x86_64[oss]



Ok.. zypper in gcc47-4.7.2_20130108-2.1.6.x86_64



Results:



Problem: gcc47-4.7.2_20130108-2.1.6.x86_64 requires glibc-devel, but this requirement cannot be provided
uninstallable providers: glibc-devel-2.17-4.4.1.i586[oss]
glibc-devel-2.17-4.4.1.x86_64[oss]



Right then... zypper in glibc-devel



Results:



Problem: glibc-devel-2.17-4.4.1.x86_64 requires glibc = 2.17, but this requirement cannot be provided
uninstallable providers: glibc-2.17-4.4.1.i586[oss]
glibc-2.17-4.4.1.x86_64[oss]



zypper in glibc



Results:
`'glibc' is already installed.



No update candidate for 'glibc-2.19-17.72.x86_64'. The highest available version is already installed.



So somewhere in this chain of dependencies an RPM needs a lower version of something I already have. I don't want to downgrade the system. Is there some way to get the most up to date GCC that will work with glibc-2.19? Am I doing something wrong here? Am I missing a repo?



SLSE12:~ # cat /etc/os-release
NAME="SLES"
VERSION="12"
VERSION_ID="12"
PRETTY_NAME="SUSE Linux Enterprise Server 12"
ID="sles"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:12"


# zypper lr -u
# | Alias | Name | Enabled | Refresh | URI
--+-----------+-----------+---------+---------+-------------------------------------------------------------------------------
1 | gcc | gcc | Yes | No | http://download.opensuse.org/repositories/devel:/gcc/SLE-12/
2 | oss | oss | Yes | No | http://download.opensuse.org/distribution/12.3/repo/oss/
3 | r-patched | r-patched | Yes | No | http://download.opensuse.org/repositories/devel:/languages:/R:/patched/SLE_12/









share|improve this question















I'm having trouble installing gcc on a new SLES 12 box. The goal here is actually to get R Shiny running, but when I try to install any packages I get the below error:



sudo su - -c "R -e "install.packages('Rcpp',repos='https://cran.rstudio.com/')""
make: g++: Command not found


This leads me to believe I need to install gcc.



which gcc:



which: no gcc in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/games)



gcc -version:



If 'gcc' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf gcc



This is where the trouble begins. When I zypper in gcc:



Problem: gcc-4.7-7.1.1.x86_64 requires gcc47, but this requirement cannot be provided
uninstallable providers: gcc47-4.7.2_20130108-2.1.6.i586[oss]
gcc47-4.7.2_20130108-2.1.6.x86_64[oss]



Ok.. zypper in gcc47-4.7.2_20130108-2.1.6.x86_64



Results:



Problem: gcc47-4.7.2_20130108-2.1.6.x86_64 requires glibc-devel, but this requirement cannot be provided
uninstallable providers: glibc-devel-2.17-4.4.1.i586[oss]
glibc-devel-2.17-4.4.1.x86_64[oss]



Right then... zypper in glibc-devel



Results:



Problem: glibc-devel-2.17-4.4.1.x86_64 requires glibc = 2.17, but this requirement cannot be provided
uninstallable providers: glibc-2.17-4.4.1.i586[oss]
glibc-2.17-4.4.1.x86_64[oss]



zypper in glibc



Results:
`'glibc' is already installed.



No update candidate for 'glibc-2.19-17.72.x86_64'. The highest available version is already installed.



So somewhere in this chain of dependencies an RPM needs a lower version of something I already have. I don't want to downgrade the system. Is there some way to get the most up to date GCC that will work with glibc-2.19? Am I doing something wrong here? Am I missing a repo?



SLSE12:~ # cat /etc/os-release
NAME="SLES"
VERSION="12"
VERSION_ID="12"
PRETTY_NAME="SUSE Linux Enterprise Server 12"
ID="sles"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:12"


# zypper lr -u
# | Alias | Name | Enabled | Refresh | URI
--+-----------+-----------+---------+---------+-------------------------------------------------------------------------------
1 | gcc | gcc | Yes | No | http://download.opensuse.org/repositories/devel:/gcc/SLE-12/
2 | oss | oss | Yes | No | http://download.opensuse.org/distribution/12.3/repo/oss/
3 | r-patched | r-patched | Yes | No | http://download.opensuse.org/repositories/devel:/languages:/R:/patched/SLE_12/






package-management gcc sles zypper






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 28 '15 at 16:33









Thomas Dickey

51.4k594164




51.4k594164










asked Nov 28 '15 at 15:54









RedRaven

11113




11113











  • If repo " download.opensuse.org/repositories/devel:/gcc/SLE-12 " : There is no gcc47 any more. About "glibc-devel" : System files can be installed only when you have paid / activated your SLES account / license. I.e. SLES12 is a commercial OS. ...
    – Knud Larsen
    Nov 28 '15 at 16:27











  • There is however a gcc48, and R Shiny is likely agnostic to which version to use, so why would I not be able to use that?
    – RedRaven
    Nov 28 '15 at 16:51











  • Just try : # zypper in gcc48-c++ ... or / and # zypper in gcc-c++
    – Knud Larsen
    Nov 28 '15 at 21:07











  • same error, just different package gcc48-c++-4.8.5-161.1.x86_64 requires libstdc++48-devel = 4.8.5-161.1, but this requirement cannot be provided uninstallable providers: libstdc++48-devel-.8.5-161.1.x86_64[devel_gcc] libstdc++48-devel-4.8.5-161.1.x86_64[gcc]
    – RedRaven
    Nov 28 '15 at 21:59
















  • If repo " download.opensuse.org/repositories/devel:/gcc/SLE-12 " : There is no gcc47 any more. About "glibc-devel" : System files can be installed only when you have paid / activated your SLES account / license. I.e. SLES12 is a commercial OS. ...
    – Knud Larsen
    Nov 28 '15 at 16:27











  • There is however a gcc48, and R Shiny is likely agnostic to which version to use, so why would I not be able to use that?
    – RedRaven
    Nov 28 '15 at 16:51











  • Just try : # zypper in gcc48-c++ ... or / and # zypper in gcc-c++
    – Knud Larsen
    Nov 28 '15 at 21:07











  • same error, just different package gcc48-c++-4.8.5-161.1.x86_64 requires libstdc++48-devel = 4.8.5-161.1, but this requirement cannot be provided uninstallable providers: libstdc++48-devel-.8.5-161.1.x86_64[devel_gcc] libstdc++48-devel-4.8.5-161.1.x86_64[gcc]
    – RedRaven
    Nov 28 '15 at 21:59















If repo " download.opensuse.org/repositories/devel:/gcc/SLE-12 " : There is no gcc47 any more. About "glibc-devel" : System files can be installed only when you have paid / activated your SLES account / license. I.e. SLES12 is a commercial OS. ...
– Knud Larsen
Nov 28 '15 at 16:27





If repo " download.opensuse.org/repositories/devel:/gcc/SLE-12 " : There is no gcc47 any more. About "glibc-devel" : System files can be installed only when you have paid / activated your SLES account / license. I.e. SLES12 is a commercial OS. ...
– Knud Larsen
Nov 28 '15 at 16:27













There is however a gcc48, and R Shiny is likely agnostic to which version to use, so why would I not be able to use that?
– RedRaven
Nov 28 '15 at 16:51





There is however a gcc48, and R Shiny is likely agnostic to which version to use, so why would I not be able to use that?
– RedRaven
Nov 28 '15 at 16:51













Just try : # zypper in gcc48-c++ ... or / and # zypper in gcc-c++
– Knud Larsen
Nov 28 '15 at 21:07





Just try : # zypper in gcc48-c++ ... or / and # zypper in gcc-c++
– Knud Larsen
Nov 28 '15 at 21:07













same error, just different package gcc48-c++-4.8.5-161.1.x86_64 requires libstdc++48-devel = 4.8.5-161.1, but this requirement cannot be provided uninstallable providers: libstdc++48-devel-.8.5-161.1.x86_64[devel_gcc] libstdc++48-devel-4.8.5-161.1.x86_64[gcc]
– RedRaven
Nov 28 '15 at 21:59




same error, just different package gcc48-c++-4.8.5-161.1.x86_64 requires libstdc++48-devel = 4.8.5-161.1, but this requirement cannot be provided uninstallable providers: libstdc++48-devel-.8.5-161.1.x86_64[devel_gcc] libstdc++48-devel-4.8.5-161.1.x86_64[gcc]
– RedRaven
Nov 28 '15 at 21:59










1 Answer
1






active

oldest

votes

















up vote
0
down vote













We had the similar problem (needed to install igraph and tidygraph).

After registering the SLES 12 SP3 SDK the repo, which can be downloaded from this link, we installed:

* gcc-c++

* gcc-fortran

From there on we managed to install all the problematic packages.






share|improve this answer








New contributor




Joseph Berry is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

















    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',
    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
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f246085%2finstalling-gcc-on-sles-12%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








    up vote
    0
    down vote













    We had the similar problem (needed to install igraph and tidygraph).

    After registering the SLES 12 SP3 SDK the repo, which can be downloaded from this link, we installed:

    * gcc-c++

    * gcc-fortran

    From there on we managed to install all the problematic packages.






    share|improve this answer








    New contributor




    Joseph Berry is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      0
      down vote













      We had the similar problem (needed to install igraph and tidygraph).

      After registering the SLES 12 SP3 SDK the repo, which can be downloaded from this link, we installed:

      * gcc-c++

      * gcc-fortran

      From there on we managed to install all the problematic packages.






      share|improve this answer








      New contributor




      Joseph Berry is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.



















        up vote
        0
        down vote










        up vote
        0
        down vote









        We had the similar problem (needed to install igraph and tidygraph).

        After registering the SLES 12 SP3 SDK the repo, which can be downloaded from this link, we installed:

        * gcc-c++

        * gcc-fortran

        From there on we managed to install all the problematic packages.






        share|improve this answer








        New contributor




        Joseph Berry is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        We had the similar problem (needed to install igraph and tidygraph).

        After registering the SLES 12 SP3 SDK the repo, which can be downloaded from this link, we installed:

        * gcc-c++

        * gcc-fortran

        From there on we managed to install all the problematic packages.







        share|improve this answer








        New contributor




        Joseph Berry is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        Joseph Berry is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered Nov 18 at 12:59









        Joseph Berry

        1




        1




        New contributor




        Joseph Berry is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Joseph Berry is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Joseph Berry is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f246085%2finstalling-gcc-on-sles-12%23new-answer', 'question_page');

            );

            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






            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay