build fails on MAC machine with error cmake command not found

1,536 views
Skip to first unread message

Subhash Gajare

unread,
Feb 17, 2017, 1:23:18 PM2/17/17
to go-cd

I am trying to build a osx application on Mac machine. (Go CD server being Linux and client on Mac machine -- both are version 17.x  and Java version 8) .
As per the build logic, program uses the cmake utility to build the code. (Cmake version > 3.5.2 )

Whenever I tried to build the code, it always throws an error 
     18:13:26.023 ERROR: cmake failed to generate xcode project, exit code '127'
     18:13:26.074 [go] Current job status: failed

But when I run the same build script on command line in Mac machine, it works well and build completes successful without any error of "cmake  command"

What could be the reason for this? Is there any specific configuration to be made in GOCD for MAC ??  Is cmake compatible with Go CD?








Subhash Gajare

unread,
Feb 21, 2017, 12:04:40 PM2/21/17
to go-cd
Anyone from GoCD thoughtworks team?  Any solution?

ash...@thoughtworks.com

unread,
Feb 22, 2017, 9:03:30 AM2/22/17
to go-cd
Have you tried printing the path variable? While running on the command line bashrc and bashprofile are sourced! Try printing the PATH and check if the cmake is listed in it!

Subhash Gajare

unread,
Feb 23, 2017, 12:32:15 PM2/23/17
to go-cd
Thanks Arvind.
While building go used PATH at  /usr/bin .   But the cmake was listed at /usr/local/bin.  
So, created a environment file overrides.env at location "/Users/subhash/Library/Application Support/Go Agent/pipelines" and added the path variables in this file. 

PATH=$PATH:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
After this, restart the machine. 
And then it works.

Thanks Arvind for your information.

Abhimanyu Shegokar

unread,
Feb 27, 2017, 4:05:19 AM2/27/17
to go...@googlegroups.com
Its Abhimanyu, but no harm done! 
Anyways happy to help!

--
Warm Regards From,
Abhimanyu Shegokar
Consultant
Emailash...@thoughtworks.com
Telephone+91 9623 817 754
ThoughtWorks

--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Subhash Gajare

unread,
Mar 2, 2017, 4:58:58 AM3/2/17
to go-cd
Sorry for the mistake in typing name.

Thanks a lot. :-)
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages