no acceptable C compiler found in $PATH

40 views
Skip to first unread message

dharmendra pratap singh

unread,
Jun 26, 2014, 5:04:25 AM6/26/14
to davi...@googlegroups.com
Hi Guys,
While installing I got the following error.

configure: error: in `/root/softwares/R-3.1.0':
configure: error: no acceptable C compiler found in $PATH

I have googled out the error, tried installing gcc, but did not found any perfect solution.

looking for some quick response.

Regards
Dharmendra

Michael Hannon

unread,
Jun 26, 2014, 4:56:36 PM6/26/14
to davi...@googlegroups.com
What do you get from the R command:

sessionInfo()

?
> --
> Check out our R resources at
> http://www.noamross.net/davis-r-users-group.html
> ---
> You received this message because you are subscribed to the Google Groups
> "Davis R Users' Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to davis-rug+...@googlegroups.com.
> Visit this group at http://groups.google.com/group/davis-rug.
> For more options, visit https://groups.google.com/d/optout.

Christopher Aden

unread,
Jun 26, 2014, 5:01:24 PM6/26/14
to davi...@googlegroups.com
Michael,
I think the questioner received this error during the process of installing R, so I don't know that sessionInfo() will work. 

Dharmendra,
What OS are you using? Are you looking to compile R from source for a specific reason (ie: using a custom BLAS, using a dev build, etc)? I ask because if your aim is simply to get a working version of R, there are far easier ways than compiling from source.

Michael Hannon

unread,
Jun 26, 2014, 5:04:49 PM6/26/14
to davi...@googlegroups.com
Good point, Christopher. I was trying to elicit the same kind of
information that you asked about, but it didn't occur to me that he
didn't have R at all.

-- Mike

dharmendra pratap singh

unread,
Jun 27, 2014, 4:57:43 AM6/27/14
to davi...@googlegroups.com
Hi Michael, Christopher Aden
Thanks a lot for your response.

Yes I got this problem while installing the R, so I can't run any command on R.

Christopher- I am using rhel6.2. my objective is just to get the R working. please suggest if you have so easier ways for this.

My observation - in my .repo files, it is pointing to ftp://**** , while ftp is not working, thats the reason I am not able to install the dependencies/Tools for this. Also in my machine https(certificate base urls) are not accessible.
if we have some online http based repos, please suggest me here.

Thanks a lot.


Regards
Dharmendra




You received this message because you are subscribed to a topic in the Google Groups "Davis R Users' Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/davis-rug/BgoTdQXXloc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to davis-rug+...@googlegroups.com.

Erica Rettig

unread,
Jun 27, 2014, 11:40:09 AM6/27/14
to davi...@googlegroups.com
The issue is that R can't find gcc (linux looks in $PATH, which is a list of folders, for programs). to fix it, run

sudo yum groupinstall "Development Tools"

just to make sure you've got the dependencies dealt with, find wherever gcc installed to (it should have installed to /usr/bin/gcc or /usr/libexec/gcc but if it did you wouldn't be having this error), then run

sudo ln -s <insert_gcc_with_full_path_here> /usr/bin/gcc

so, if gcc was in /some/directory, the command would be:
sudo ln -s /some/directory/gcc /usr/gin/gcc

This will create a link so that gcc can be found in /usr/bin.
Thanks,
Erica

---
Erica Rettig
PhD Student
Graduate Group in Ecology, UC Davis

Michael Hannon

unread,
Jun 27, 2014, 6:17:37 PM6/27/14
to davi...@googlegroups.com
The yum command that Erica mentions is a very good idea. You may also
want to look at:

https://fedoraproject.org/wiki/EPEL

(Basically, this is a set of packages ported from Fedora to
"Enterprise Linux" [Redhat or clones]. It does include R, albeit not
the very latest version.)

-- Mike

dharmendra pratap singh

unread,
Jun 29, 2014, 3:18:59 PM6/29/14
to davi...@googlegroups.com
Hi Michael, Erica,
Thank a lot for you response.

In my server,I do not have access to any https and ftp based urls juz because of some security issues. I can acces only http based repository.

Is there any protocol/methods by which we can redirect our https based request to http based request. I am realy looking for such solutions.

Erica- As i do not have any access to https based urls so sudo yum groupinstall "Development Tools"  won't work. I tried it earlier.

Thanks a lot for your valuable inputs.


Cheers
Dharmendra

Erica Rettig

unread,
Jun 29, 2014, 5:12:36 PM6/29/14
to davi...@googlegroups.com
This is well outside the scope of this mailing list, but see here: http://linuxsysconfig.com/2013/03/create-a-rhelcentos-local-yum-repo-from-the-os-disk/

Michael Hannon

unread,
Jun 29, 2014, 5:13:38 PM6/29/14
to davi...@googlegroups.com
It might be useful if we had a more-complete picture of your
situation. I take it that the computer that you're using does not
belong to you and that you do not have administrative privileges on
the computer. Is that correct?

In any event, I have great respect for RHEL, but it isn't always the
best solution when it comes to user-land applications. Do you have
ANY computer over which you have full control? Perhaps you're
compelled to use the RHEL system because it has a lot of computing
power?

If you're NOT the system administrator for the RHEL system, can you
persuade the administrator to install software on your behalf?

I note also that you can download and build the GNU tools yourself,
but it may require some patience to do that. Here's a mirror site,
for instance:

http://www.netgull.com/gcc/

(Note that http, not https.)

Please fill us in on the details. It sounds to me as if the stuff
you're doing is a colossal waste of your time (or would be so, in a
well-ordered world).

-- Mike


On Sun, Jun 29, 2014 at 12:18 PM, dharmendra pratap singh

dharmendra pratap singh

unread,
Jun 30, 2014, 6:31:47 AM6/30/14
to davi...@googlegroups.com
Hello Everyone,
Thanks a lot for your responses.

Erica, Mike - I got one repository from oracle website which sorted out all my problems. after adding this repository I just ran yum groupinstall "development Tools" and all done.

Same Repository you can access here- wget http://public-yum.oracle.com/public-yum-ol6.repo

A Big thanks to all of you for quick responses and looking into it deeply.

Cheers
Dharmendra
Reply all
Reply to author
Forward
0 new messages