{"action":"created","issue":{"url":"https://api.github.com/repos/Aorimn/dislocker/issues/153","repository_url":"https://api.github.com/repos/Aorimn/dislocker","labels_url":"https://api.github.com/repos/Aorimn/dislocker/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/Aorimn/dislocker/issues/153/comments","events_url":"https://api.github.com/repos/Aorimn/dislocker/issues/153/events","html_url":"https://github.com/Aorimn/dislocker/issues/153","id":333449348,"node_id":"MDU6SXNzdWUzMzM0NDkzNDg=","number":153,"title":"Error \"ruby/config.h\" in compile time in Ubuntu 18.04","user":{"login":"luchmedia","id":27152899,"node_id":"MDQ6VXNlcjI3MTUyODk5","avatar_url":"https://avatars2.githubusercontent.com/u/27152899?v=4","gravatar_id":"","url":"https://api.github.com/users/luchmedia","html_url":"https://github.com/luchmedia","followers_url":"https://api.github.com/users/luchmedia/followers","following_url":"https://api.github.com/users/luchmedia/following{/other_user}","gists_url":"https://api.github.com/users/luchmedia/gists{/gist_id}","starred_url":"https://api.github.com/users/luchmedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luchmedia/subscriptions","organizations_url":"https://api.github.com/users/luchmedia/orgs","repos_url":"https://api.github.com/users/luchmedia/repos","events_url":"https://api.github.com/users/luchmedia/events{/privacy}","received_events_url":"https://api.github.com/users/luchmedia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-18T21:56:39Z","updated_at":"2018-09-07T16:59:12Z","closed_at":"2018-06-18T22:22:21Z","author_association":"NONE","body":"This is the error:\r\n\r\nIn file included from /usr/include/ruby-2.5.0/ruby.h:33:0,\r\n                 from /home/user/Download/dislocker-master/include/dislocker/ruby.h:35,\r\n                 from /home/user/Download/dislocker-master/include/dislocker/accesses/accesses.h:38,\r\n                 from /home/user/Download/dislocker-master/src/dislocker.c:36:\r\n/usr/include/ruby-2.5.0/ruby/ruby.h:24:10: fatal error: ruby/config.h: File o directory not exist\r\n #include \"ruby/config.h\"\r\n          ^~~~~~~~~~~~~~~\r\ncompilation terminated.\r\nsrc/CMakeFiles/dislocker.dir/build.make:62: recipe for target 'src/CMakeFiles/dislocker.dir/dislocker.c.o' failed\r\nmake[2]: *** [src/CMakeFiles/dislocker.dir/dislocker.c.o] Error 1\r\nCMakeFiles/Makefile2:200: recipe for target 'src/CMakeFiles/dislocker.dir/all' failed\r\nmake[1]: *** [src/CMakeFiles/dislocker.dir/all] Error 2\r\nMakefile:129: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n\r\nIt's possibile this error is made by new version of ruby package? What version is preferred?"},"comment":{"url":"https://api.github.com/repos/Aorimn/dislocker/issues/comments/419502655","html_url":"https://github.com/Aorimn/dislocker/issues/153#issuecomment-419502655","issue_url":"https://api.github.com/repos/Aorimn/dislocker/issues/153","id":419502655,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTUwMjY1NQ==","user":{"login":"icylogic","id":2814357,"node_id":"MDQ6VXNlcjI4MTQzNTc=","avatar_url":"https://avatars1.githubusercontent.com/u/2814357?v=4","gravatar_id":"","url":"https://api.github.com/users/icylogic","html_url":"https://github.com/icylogic","followers_url":"https://api.github.com/users/icylogic/followers","following_url":"https://api.github.com/users/icylogic/following{/other_user}","gists_url":"https://api.github.com/users/icylogic/gists{/gist_id}","starred_url":"https://api.github.com/users/icylogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icylogic/subscriptions","organizations_url":"https://api.github.com/users/icylogic/orgs","repos_url":"https://api.github.com/users/icylogic/repos","events_url":"https://api.github.com/users/icylogic/events{/privacy}","received_events_url":"https://api.github.com/users/icylogic/received_events","type":"User","site_admin":false},"created_at":"2018-09-07T16:59:12Z","updated_at":"2018-09-07T16:59:12Z","author_association":"NONE","body":"Although it's closed, I want to give a workaround here:\r\n\r\n1. check if `FindRuby.cmake` has already been installed by cmake (Might be in `/usr/share/cmake-3.10/Modules/`)\r\n2. `rm cmake/FindRuby.cmake`\r\n3. clean files generated by previous cmake command like `CMakeCache.txt`\r\n4. retry cmake\r\n    ```shell\r\n    $ cmake .\r\n  \r\n    ...\r\n    -- Found Ruby: /usr/bin/ruby (found version \"2.5.1\") \r\n    ...\r\n    ```\r\n5. `make`\r\n\r\nI don't know what's the minimum cmake version that would work. But since you are using Ubuntu 18.04, cmake installed by apt should be newer than or equal to 3.10.\r\n"}}
{"actor":{"display_login":"icylogic"}}