How to properly install cmake on Linux? (CMAKE_ROOT error)2019 Community Moderator ElectionHow do I prompt for Yes/No/Cancel input in a Linux shell script?How to symlink a file in Linux?How do I grep recursively?How do I change permissions for a folder and all of its subfolders and files in one step in Linux?How can I recursively find all files in current and subfolders based on wildcard matching?How to change the output color of echo in LinuxHow can I use grep to show just filenames on Linux?How do I copy folder with files to another folder in Unix/Linux?How do I find all files containing specific text on Linux?CMake install can't find library and points to wrong compiler version

Coworker uses her breast-pump everywhere in the office

Force user to remove USB token

Is a lawful good "antagonist" effective?

validation vs test vs training accuracy, which one to compare for claiming overfit?

What exactly is the purpose of connection links straped between the rocket and the launch pad

Should we release the security issues we found in our product as CVE or we can just update those on weekly release notes?

Draw arrow on sides of triangle

Does anyone draw a parallel between Haman selling himself to Mordechai and Esav selling the birthright to Yaakov?

Question about partial fractions with irreducible quadratic factors

Welcoming 2019 Pi day: How to draw the letter π?

The three point beverage

Can infringement of a trademark be pursued for using a company's name in a sentence?

Touchscreen-controlled dentist office snowman collector game

Potentiometer like component

Can "semicircle" be used to refer to a part-circle that is not a exact half-circle?

If Invisibility ends because the original caster casts a non-concentration spell, does Invisibility also end on other targets of the original casting?

Why does Deadpool say "You're welcome, Canada," after shooting Ryan Reynolds in the end credits?

Life insurance that covers only simultaneous/dual deaths

How to deal with a cynical class?

Is it true that real estate prices mainly go up?

What is the difference between "shut" and "close"?

Who is our nearest neighbor

Why don't MCU characters ever seem to have language issues?

How can I discourage/prevent PCs from using door choke-points?



How to properly install cmake on Linux? (CMAKE_ROOT error)



2019 Community Moderator ElectionHow do I prompt for Yes/No/Cancel input in a Linux shell script?How to symlink a file in Linux?How do I grep recursively?How do I change permissions for a folder and all of its subfolders and files in one step in Linux?How can I recursively find all files in current and subfolders based on wildcard matching?How to change the output color of echo in LinuxHow can I use grep to show just filenames on Linux?How do I copy folder with files to another folder in Unix/Linux?How do I find all files containing specific text on Linux?CMake install can't find library and points to wrong compiler version










0















I tried installing cmake to RHEL linux instance with:



mkdir cmake
cd cmake
wget https://cmake.org/files/v3.13/cmake-3.13.3.tar.gz
tar -xzvf cmake-3.13.3.tar.gz
cd cmake-3.13.3
./bootstrap
# -- Build files have been written to: /home/ec2-user/cmake/cmake-3.13.3
# ---------------------------------------------
# CMake has bootstrapped. Now run gmake.
gmake
# [100%] Built target foo
sudo gmake install


Test and error:



 # CMake Error: Could not find CMAKE_ROOT !!!
# CMake has most likely not been installed correctly.
# Modules directory not found in
# /usr/local/share/cmake-3.13
# CMake Error: Error executing cmake::LoadCache(). Aborting.


What is the proper way?










share|improve this question

















  • 1





    Where do you have CMake modules actually installed? (There should be a directory with many *.cmake files in it).

    – Tsyvarev
    Mar 6 at 19:57















0















I tried installing cmake to RHEL linux instance with:



mkdir cmake
cd cmake
wget https://cmake.org/files/v3.13/cmake-3.13.3.tar.gz
tar -xzvf cmake-3.13.3.tar.gz
cd cmake-3.13.3
./bootstrap
# -- Build files have been written to: /home/ec2-user/cmake/cmake-3.13.3
# ---------------------------------------------
# CMake has bootstrapped. Now run gmake.
gmake
# [100%] Built target foo
sudo gmake install


Test and error:



 # CMake Error: Could not find CMAKE_ROOT !!!
# CMake has most likely not been installed correctly.
# Modules directory not found in
# /usr/local/share/cmake-3.13
# CMake Error: Error executing cmake::LoadCache(). Aborting.


What is the proper way?










share|improve this question

















  • 1





    Where do you have CMake modules actually installed? (There should be a directory with many *.cmake files in it).

    – Tsyvarev
    Mar 6 at 19:57













0












0








0








I tried installing cmake to RHEL linux instance with:



mkdir cmake
cd cmake
wget https://cmake.org/files/v3.13/cmake-3.13.3.tar.gz
tar -xzvf cmake-3.13.3.tar.gz
cd cmake-3.13.3
./bootstrap
# -- Build files have been written to: /home/ec2-user/cmake/cmake-3.13.3
# ---------------------------------------------
# CMake has bootstrapped. Now run gmake.
gmake
# [100%] Built target foo
sudo gmake install


Test and error:



 # CMake Error: Could not find CMAKE_ROOT !!!
# CMake has most likely not been installed correctly.
# Modules directory not found in
# /usr/local/share/cmake-3.13
# CMake Error: Error executing cmake::LoadCache(). Aborting.


What is the proper way?










share|improve this question














I tried installing cmake to RHEL linux instance with:



mkdir cmake
cd cmake
wget https://cmake.org/files/v3.13/cmake-3.13.3.tar.gz
tar -xzvf cmake-3.13.3.tar.gz
cd cmake-3.13.3
./bootstrap
# -- Build files have been written to: /home/ec2-user/cmake/cmake-3.13.3
# ---------------------------------------------
# CMake has bootstrapped. Now run gmake.
gmake
# [100%] Built target foo
sudo gmake install


Test and error:



 # CMake Error: Could not find CMAKE_ROOT !!!
# CMake has most likely not been installed correctly.
# Modules directory not found in
# /usr/local/share/cmake-3.13
# CMake Error: Error executing cmake::LoadCache(). Aborting.


What is the proper way?







linux cmake centos rhel






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 6 at 17:46









JoeJoe

1,61231634




1,61231634







  • 1





    Where do you have CMake modules actually installed? (There should be a directory with many *.cmake files in it).

    – Tsyvarev
    Mar 6 at 19:57












  • 1





    Where do you have CMake modules actually installed? (There should be a directory with many *.cmake files in it).

    – Tsyvarev
    Mar 6 at 19:57







1




1





Where do you have CMake modules actually installed? (There should be a directory with many *.cmake files in it).

– Tsyvarev
Mar 6 at 19:57





Where do you have CMake modules actually installed? (There should be a directory with many *.cmake files in it).

– Tsyvarev
Mar 6 at 19:57












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55029267%2fhow-to-properly-install-cmake-on-linux-cmake-root-error%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55029267%2fhow-to-properly-install-cmake-on-linux-cmake-root-error%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved