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 7 years ago

updated 7 years ago

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"]
Preview: (hide)

2 Answers

Sort by » oldest newest most voted
2

answered 7 years ago

updated 7 years ago

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.

Preview: (hide)
link

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  ( 5 years ago )

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

Julien Marrec's avatar Julien Marrec  ( 5 years ago )

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  ( 5 years ago )

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  ( 5 years ago )
1

answered 7 years ago

eweaver's avatar

updated 7 years ago

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.

Preview: (hide)
link

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: 7 years ago

Seen: 379 times

Last updated: Sep 13 '17