pack.sh: line 81: cmake: command not found

875 views
Skip to first unread message

Kristian

unread,
Jun 3, 2016, 5:41:53 AM6/3/16
to jenkins...@googlegroups.com
Hey,

I have a question: In jenkins, I start a shell script, which in one
line uses cmake to start. When running this script in Jenkins, then I
get this error message:

> ./pack.sh: line 81: cmake: command not found

But I compiled and installed cmake on that system. When I start "cmake
--version" from command line, then I get this

> cmake version 3.5.2
>
> CMake suite maintained and supported by Kitware (kitware.com/cmake).

When I run "./pack.sh" from command line, then there is no such error,
that Cmake couldn't be found.

On the other side, when I remove the cmake version I compiled and
installed ('make install') myself and install the repo version ('yum
install cmake'), then my 'pack.sh' script finds cmake.

What's the problem?

Victor Martinez

unread,
Jun 3, 2016, 10:57:09 AM6/3/16
to Jenkins Users
Can you confirm whether cmake is in the path? 

echo $PATH
which cmake
.
/pack.sh

Cheers
Reply all
Reply to author
Forward
0 new messages