LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need help installing c Compiler. (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-installing-c-compiler-905175/)

coolsg5636 09-27-2011 01:26 AM

Need help installing c Compiler.
 
Hello,

I am trying to install xine library so that I can install xine frontend later on but I am getting an error message while running './configure'.

[root@sandy xine-lib-1.1.19]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/lib/xine-lib-1.1.19':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.


Please help.

corp769 09-27-2011 01:34 AM

Hello,

By looking at your user agent, it seems you are using red hat. What version are you running? Most likely, use yum to install gcc and it's dependencies, if needed.
Code:

yum install gcc*
Please know, though, that red hat has support, so if you paid for red hat, you could always talk to them? *hint* That's only if you paid though. And also, you most likely should update to the latest version of red hat; I have a feeling you have an older version.

Cheers,

Josh

coolsg5636 09-27-2011 01:52 AM

Need help
 
Yes, thats right this copy is not registered with RHN as I received this copy of RedHat from Office but I dont know how to register it. My company has already paid for this copy. Do I need to download another version(latest) for this solution of yours to work ?

I am using RHEL 6.

coolsg5636 09-27-2011 01:55 AM

Please also advise if there is any free version of Redhat available, because I dont want to mess up with my company's subscription with RHN.

corp769 09-27-2011 01:57 AM

Well did you try the command that I included above?

coolsg5636 09-27-2011 02:05 AM

Here is the output :

[root@sandy Desktop]# yum install gcc*
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: InstallMedia. Please verify its path and try again
[root@sandy Desktop]#

corp769 09-27-2011 02:06 AM

Well then I recommend that either you register, or change distro. Red Hat is a paid distro; When you buy the license, you are paying for the support.

coolsg5636 09-27-2011 02:10 AM

Well, Thanks for your prompt reply. Is there any distro of RedHat which is free and I can use it on this system?

corp769 09-27-2011 02:10 AM

Can you post the output of the following command?
Code:

uname -a

coolsg5636 09-27-2011 03:21 AM

Yes, My initial concern was to play WMV Videos on my RHEL system.So I tried installing RealPlayer/VLC/XINE Players, but while installing Realplayer and VLC I got the message that I will need to install all dependencies but I couldn't find all dependency packages/libraries So I tried to install XINE and at that moment I got the message that I do not have any C Compiler installed.

Well now I am going to uninstall RHEL 6 as I dont have paid license for it. I am right now downloading Fedora Core 15 ( as it is promised to be the same as RedHat but just the free version). I will install it and try installing Realplayer and VLC and if I need any help then I will post it here.

Thanks for your help.

RockDoctor 09-27-2011 10:13 AM

Quote:

Originally Posted by coolsg5636 (Post 4483253)
Well, Thanks for your prompt reply. Is there any distro of RedHat which is free and I can use it on this system?

If you want to maintain the highest degree of Red Hat Linux compatibility, you could use Centos or Scientific Linux, both of which are built from Red Hat's sources (minus the proprietary stuff) with only minor additions. Personally, I run Fedora as my primary distro, and use the rpmfusion repositories to obtain audio/video codecs that Fedora cannot provide.

johnsfine 09-27-2011 11:47 AM

Quote:

Originally Posted by coolsg5636 (Post 4483313)
Well now I am going to uninstall RHEL 6 as I dont have paid license for it. I am right now downloading Fedora Core 15 ( as it is promised to be the same as RedHat but just the free version).

Fedora is certainly not same as RHEL.

Centos is for practical purposes same as RHEL.

But are you sure you want same as RedHat? If so, why?

Your choice of distribution ought to depend on why you thought you wanted same as RedHat.

For example, someone might want a free work-alike to RHEL in order to develop software for use on RHEL, or to run a real server, or to run an experimental server to test things for later use on RHEL, or because they also use RHEL and want to minimize confusion. For any of those reasons CENTOS is the best choice.

You might want large (but less than Centos) similarity to RHEL, but want something with better workstation (as opposed to server) support. Then Fedora might be right. Fedora might also be best if you are targeting future RHEL compatibility rather than current. Fedora supports some things that will be in future versions of RHEL and aren't there yet, while Centos lags a short time behind RHEL.

I'm not certain, but I think Centos is also a larger download than Fedora and then needs much more additional network traffic during install, so an ordinary download/install of Centos might be a problem for those with poor internet connectivity.

Maybe you have no real reason to want similarity to RHEL and it is just a trusted brand name to you. Then probably Ubuntu would be a better choice (a different trusted brand name that is more beginner friendly).

lazlow 09-27-2011 12:02 PM

Keep in mind that Fedora only has a short(very to me) support life. After 13 months from intial release there is no further support(no updates of ANY kind) for any given version (F15). Compare this with a 5 year(plus) support life for Centos/RHEL 5.X (or 4.X,6.X). Basically this means that running Fedora you will need to do a clean install once a year. Some just try to do the update route (F15->F16) but this often developes into a large headache(which is why a clean install is still officially suggested).

coolsg5636 09-27-2011 11:44 PM

Thank you all of you for the factsheet.

I just remembered that I have CentOS 5.6 x64 already downloaded and I could use that.So I just installed it on my machine.
My only purpose to have OS similar to RHEL was that I am planning to complete my RHCE Certification. Thats the only reason I was trying my luck (using unregistered version of RHEL but that didn't work). I just wanted to get some hands on experience on RHEL software packages before I start with other Administration stuff.

And Well I would really appereciate any help or any related information that can help me to learn RHEL better.

johnsfine 09-28-2011 06:05 AM

Quote:

Originally Posted by coolsg5636 (Post 4484074)
I am planning to complete my RHCE Certification.

That one should have been on my list of reasons for wanting "same as RHEL" that make Centos the best free($) choice.


All times are GMT -5. The time now is 06:05 PM.