LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-09-2014, 11:02 PM   #1
sewen67
LQ Newbie
 
Registered: May 2014
Posts: 4

Rep: Reputation: Disabled
cmake error "Could not find compiler set in environment variable CC:"


Hi all:
I am trying to compile source code on Mac 10.9 using gcc. However, the default compiler is clang, and I have successfully change the compiler to gcc. when I ran "$ gcc --version", I got the message of "gcc (MacPorts gcc48 4.8.2_0) 4.8.2". However, when I ran the command "cmake -DFETCH_BOOST=TRUE .." to compile source code in the "build" folder, I got the message of "Could not find compiler set in environment variable CC:". What should I do? I think the problem is that I install cmake first and then switch to the gcc compiler. In this case cmake will find clang first and then gcc?

Thanks for your help!

sewen67
 
Old 05-09-2014, 11:07 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Is this a mac os that you are using?
 
Old 05-09-2014, 11:08 PM   #3
sewen67
LQ Newbie
 
Registered: May 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EDDY1 View Post
Is this a mac os that you are using?
Yes, I am using a Mac pro 10.9.
 
Old 05-09-2014, 11:14 PM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Is the operating system mac or linux? I would think that you are using osx because of the macports software. This is a linux forum but maybe someone that knows mac can help.
 
Old 05-10-2014, 12:33 AM   #5
sewen67
LQ Newbie
 
Registered: May 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EDDY1 View Post
Is the operating system mac or linux? I would think that you are using osx because of the macports software. This is a linux forum but maybe someone that knows mac can help.
Sorry about that. I deem that this cross-platform forum. Thanks for your help!

sewen67
 
Old 05-10-2014, 12:45 AM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
http://stackoverflow.com/questions/1...c-os-x-leopard
http://stackoverflow.com/questions/6...r-in-os-x-lion

Last edited by EDDY1; 05-10-2014 at 12:47 AM.
 
Old 05-10-2014, 12:58 AM   #7
sewen67
LQ Newbie
 
Registered: May 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for your help! I will check it out.

sewen67
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please face123k Linux - Newbie 3 02-09-2013 03:08 AM
"qmake not found!" -- Qt-4.3.4 is installed, so what must I set to point cmake to it? analgesic Slackware 10 03-12-2008 09:02 PM
quote "SERVICE variable was not set" error davimint Linux From Scratch 1 02-21-2008 12:57 AM
Urgent Help Needed! Error: Must set the environment variable CC to a working compiler MrCarl Linux - Software 3 09-22-2003 11:42 PM
"set an environment variable" JMCraig Linux - Newbie 4 02-17-2003 04:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration