Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running openkore.pl for Mac #155

Closed
alicoding opened this issue Jul 27, 2016 · 15 comments
Closed

Error running openkore.pl for Mac #155

alicoding opened this issue Jul 27, 2016 · 15 comments

Comments

@alicoding
Copy link

I did follow http://openkore.com/index.php/How_to_run_OpenKore

No error at all and I have change hash_fun.h as suggested in the troubleshooting section.

My mac version is 10.11.5 (15F34)

$ ./openkore.pl
scons: Reading SConscript files ...
Checking Perl configuration ...(cached) yes
Checking for C library ncurses... (cached) yes
Checking for GNU readline 4.3 or higher...(cached) yes
Checking for C library readline.5... (cached) no
Checking whether Readline 5 is available... no
Checking for libcurl...(cached) libcurl 7.43.0
scons: done reading SConscript files.
scons: Building targets ...
g++ -o src/auto/XSTools/utils/perl/Benchmark.os -c -Wall -O3 -pipe -no-cpp-precomp -DPERL_DARWIN -fno-strict-aliasing -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -Wall -O3 -pipe -no-cpp-precomp -DPERL_DARWIN -fno-strict-aliasing -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -fPIC -I/usr/include -I/usr/local/include -I/sw/include -I/usr/local/opt/readline/include -I/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE src/auto/XSTools/utils/perl/Benchmark.cpp
In file included from src/auto/XSTools/utils/perl/Benchmark.xs:1:
src/auto/XSTools/utils/perl/../dense_hash_map.h:93:10: fatal error: 'ext/hash_fun.h' file not found
#include HASH_FUN_H                  // defined in sparseconfig.h
         ^
src/auto/XSTools/utils/perl/../sparseconfig.h:62:22: note: expanded from macro 'HASH_FUN_H'
                #define HASH_FUN_H <ext/hash_fun.h>
                                   ^
1 error generated.
scons: *** [src/auto/XSTools/utils/perl/Benchmark.os] Error 1
scons: building terminated because of errors.
-e \e[1;31mCompilation failed. Please read http://wiki.openkore.com/index.php/How_to_run_OpenKore for help.\e[0m
Can't locate loadable object for module XSTools in @INC (@INC contains: /Users/ali/projects/openkore/src/deps /Users/ali/projects/openkore/src /Users/ali/projects/openkore /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.2 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at /Users/ali/projects/openkore/src/Translation.pm line 30.
@itsrachelfish
Copy link
Member

Hey, thanks for your interest in running OpenKore on OSX... I don't think I've heard of anyone doing that in a long time!

Personally I don't have a Mac, but I can do some testing on my boyfriend's computer this weekend. 😄

@alicoding
Copy link
Author

@itsrachelfish I'm happy to help debug if you need me to test anything :)

@lututui
Copy link
Member

lututui commented Aug 12, 2016

Isn't this because of Perl 5.18? Or is Perl 5.12.3 a requirement only for Windows users?

@alicoding
Copy link
Author

@lututui good question... maybe I should try this out to see what happen if I switch to 5.12.3

@visualizeq
Copy link

Hi

edit src/auto/XSTools/utils/sparseconfig.h line 62 from
#define HASH_FUN_H <ext/hash_fun.h>
to
#define HASH_FUN_H <ext/hash_map>

PS. I'm using OS X 10.11.6

@alicoding
Copy link
Author

@C0KE สวัสดีครับ I actually have done that, but nothing change. It might have been PATH issue here too.

@visualizeq
Copy link

@alicoding สวัสดีครับ could you share the error output ?

@alicoding
Copy link
Author

@C0KE It's actually on the OP :)

@visualizeq
Copy link

@alicoding could you try this patch

then run

$ make clean
$ ./openkore.pl

@alicoding
Copy link
Author

@C0KE so make clean did the trick here! I have changed that line before, but it never worked :P thanks!

@visualizeq
Copy link

@alicoding welcome :) does it working now ? ps. i didn't check for bot is working correctly or not.

@alicoding
Copy link
Author

@C0KE yep the script is running now, but I haven't got a chance to try the bot itself either.

@visualizeq
Copy link

@alicoding so do i :)
thanks

@itsrachelfish
Copy link
Member

@alicoding There were some updates made by @farrainbow last month related to OSX: #343

Please try these updates and let us know if the issue is resolved for you 👍

@kaliwanagan
Copy link
Contributor

Looks like the fix linked to this issue works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants