Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
2

Question of hash mismatch when installing OS

asked 2017-09-12 15:56:28 -0600

updated 2017-09-13 03:22:27 -0600

I tried to install the OpenStudio 2.2.1 in Linux, but for some reasons, I failed to install it. Could you tell me the reasons?

Error Message:

-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "1.8.3.1")
-- Downloading EnergyPlus 8.7.0 (Redhat-x86_64)
CMake Error at CMakeLists.txt:354 (file):
  file DOWNLOAD HASH mismatch

    for file: [/projects/omra5906/openstudio/OpenStudio-2.2.1/build/EnergyPlus-8.7.0-78a111df4a-Redhat-x86_64.tar.bz2]
      expected hash: [cdda9c86e3fc2b7653a57d74fe2dbc7c]
        actual hash: [d41d8cd98f00b204e9800998ecf8427e]
             status: [22;"HTTP response code said error"]
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2017-09-13 03:37:49 -0600

updated 2017-09-13 03:42:21 -0600

I'm not familiar with installing OpenStudio on Linux, but are you trying to build OpenStudio from source or did you use the *.deb package from Github release?

Anyways, you're running in a problem with the openstudiocore/CMakeLists.txt, it's trying to download EnergyPlus at the URL openstudio-resources.s3.amazonaws.com/dependencies/EnergyPlus-8.7.0-78a111df4a-Redhat-x86_64.tar.bz2 which doesn't exists. The line where it fails is #L354 because the hash doesn't match (the file doesn't exist so that's obvious...) the expected hash that was set - for Redhat - on #L338.

FYI, the CMakeLists.txt has been changed in the latest develop branch, and some of these changes are not only because the next release of OpenStudio will support E+ 8.8.0, but now it downloads E+ from the NREL/EnergyPlus githug (see latest CMakeLists.txt).

I would go open an issue on GitHub.

If you're feeling adventurous, you can also build the source code yourself, and point to your locally installed EnergyPlus 8.7.0-78a111d in ccmake.

edit flag offensive delete link more

Comments

Hello @Julien Marrec

Can you clarify how to "point to your locally installed EnergyPlus 8.7.0-78a111d in ccmake"? Does it means that I have to installed EnergyPlus separately and change some lines in cmakelist?. Indeed, I got the similar problem for trying to build OpenStudio 2.9.1 on RHEL 6.5.

Thank in advance!

Long

vlle's avatar vlle  ( 2020-02-12 04:32:04 -0600 )edit

I think it should work with the tip of develop: https://github.com/NREL/OpenStudio/bl...

Julien Marrec's avatar Julien Marrec  ( 2020-02-12 10:48:46 -0600 )edit

Hello @Julien Marrec,

Thanks for your reply. So do I just replace $CMAKE_BINARY_DIR by $PROJECT_BINARY_DIR in the related line of 2.9.1 CMakeList.txt?

Thanks

Long

vlle's avatar vlle  ( 2020-02-13 06:48:26 -0600 )edit

Come on slack, it's going to be a nightmare to do ping pong in the comment box. https://unmethours.com/question/11053...

Julien Marrec's avatar Julien Marrec  ( 2020-02-13 07:13:21 -0600 )edit
1

answered 2017-09-13 11:37:15 -0600

eweaver's avatar

updated 2017-09-13 11:54:28 -0600

What is the full name of your 2.2.1 package? We generated many internal 2.2.1 packages, before finally publishing OpenStudio-2.2.1.92a7ed37f1-Linux.deb. Older versions of 2.2.1 may no longer work.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2017-09-12 15:56:28 -0600

Seen: 360 times

Last updated: Sep 13 '17