-
Notifications
You must be signed in to change notification settings - Fork 15
Weather Predictor and weatherInit.rb issue #3
Comments
So did you try installing them then? The documentation is here https://github.com/oracle/truffleruby/blob/master/doc/user/installing-llvm.md. We should make sure that error message refers you to the Ruby documentation specifically. |
Is there a docker image that comes with LLVM and libc++abi libraries. I can use those to build the application. |
There is a GraalVM Docker image but it's focused on Java use and doesn't include these dependencies. TruffleRuby includes Docker images that you could use: https://github.com/oracle/truffleruby/tree/master/test/truffle/docker It's probably best to just look at how those work and copy it locally. But installing these libraries is fairly easy - that documentation page includes instructions for Oracle Linux, Ubuntu and Fedora, and you can guess at what you need in other distributions from that. The need for these slightly unusual dependencies for Ruby should go away soon. |
I went through the documentation. It does not have RHEL 7 way. I think I will have to use the fedora image because that's the one which is similar to RHEL7. Are you aware of what package I can use via yum which can install these dependencies on RHEL7? |
RHEL 7 should be very similar to Oracle Linux 7... but that's the one where there aren't good packages, I see your problem now... I can only recommend installing LLVM from scratch, as per our Oracle Linux 7 Dockerfile. I know that's a bad solution, sorry. It might be best to run it in a Docker image based on Fedora. |
I wanted to show the GrallVM in one of the hackathon's within the company .. I think keeping time in mind (as it is due day after tomorrow) I will go with fedora (less steps) and use the latest version of graalvm. Hopefully that should work. Will post on this thread once I have completed that. Thanks for the inputs though and showing the right path. |
After using fedora image, getting a different error
|
Add |
Will try and post back in case of issues It takes around 30-45 minutes for one round of testing |
At least it is not giving any error .. But it is still not fetching the real temperature .. Looking at the code to see if I missed something |
Is there any flag to see the debug logs of ruby operation ? I am not a ruby person so asking such silly questions. |
Working now. The tempInCity method was overridden in weatherServer.js |
I think it's got some logic to make it work offline or something. |
Example: examples/weather_predictor/
Graal VM version: 0.31
OS: RHEL7 docker image with gcc installed
Issue:
The code in weatherServer.js does not include weatherInit.rb file and due to which openweather api is never getting called. If I add the weatherInit.rb file to weatherServer.js file, I get error asking for installtion of llvm and libc++abi file.
This is how I imported the weatherInit.rb in weatherServer.js file
weatherInit.rb
Error Trace:
The text was updated successfully, but these errors were encountered: