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

Installation Problem #12

Closed
ilkermutlu opened this issue Jan 20, 2018 · 3 comments
Closed

Installation Problem #12

ilkermutlu opened this issue Jan 20, 2018 · 3 comments

Comments

@ilkermutlu
Copy link

I'm on High Sierra 10.13.2

Ruby:

$ ruby -v
ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]

Gem:

$ gem -v
2.5.2

When I do gem install vimwiki_markdown I get errors with the following output. Any ideas?

$ sudo gem install vimwiki_markdown
Password:
Fetching: concurrent-ruby-1.0.5.gem (100%)
Successfully installed concurrent-ruby-1.0.5
Fetching: i18n-0.9.1.gem (100%)
Successfully installed i18n-0.9.1
Fetching: thread_safe-0.3.6.gem (100%)
Successfully installed thread_safe-0.3.6
Fetching: tzinfo-1.2.4.gem (100%)
Successfully installed tzinfo-1.2.4
Fetching: activesupport-4.1.16.gem (100%)
Successfully installed activesupport-4.1.16
Fetching: github-markup-1.3.3.gem (100%)
Successfully installed github-markup-1.3.3
Fetching: github-markdown-0.6.9.gem (100%)
Building native extensions.  This could take a while...
Successfully installed github-markdown-0.6.9
Fetching: charlock_holmes-0.7.5.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing vimwiki_markdown:
	ERROR: Failed to build gem native extension.

    current directory: /Library/Ruby/Gems/2.3.0/gems/charlock_holmes-0.7.5/ext/charlock_holmes
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20180120-17096-1v236w1.rb extconf.rb
checking for main() in -licui18n... no
checking for main() in -licui18n... yes
checking for unicode/ucnv.h... yes
checking for main() in -lz... yes
checking for main() in -licuuc... yes
checking for main() in -licudata... yes
creating Makefile

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/charlock_holmes-0.7.5/mkmf.log

current directory: /Library/Ruby/Gems/2.3.0/gems/charlock_holmes-0.7.5/ext/charlock_holmes
make "DESTDIR=" clean

current directory: /Library/Ruby/Gems/2.3.0/gems/charlock_holmes-0.7.5/ext/charlock_holmes
make "DESTDIR="
compiling ext.c
compiling encoding_detector.c
compiling converter.c
compiling transliterator.cpp
In file included from transliterator.cpp:1:
In file included from ./common.h:9:
In file included from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby.h:33:
In file included from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/ruby.h:24:
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin17/ruby/config.h:368:31: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
#define RUBY_ARCH "universal-"RUBY_PLATFORM_OS
                              ^

/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin17/ruby/config.h:369:35: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
#define RUBY_PLATFORM "universal."RUBY_PLATFORM_CPU"-"RUBY_PLATFORM_OS
                                  ^

/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin17/ruby/config.h:369:55: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
#define RUBY_PLATFORM "universal."RUBY_PLATFORM_CPU"-"RUBY_PLATFORM_OS
                                                      ^

3 errors generated.
make: *** [transliterator.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/charlock_holmes-0.7.5 for inspection.
Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-17/2.3.0/charlock_holmes-0.7.5/gem_make.out
@patrickdavey
Copy link
Owner

Hmmm, I don't really know. I have been using rvm rather than the systrm ruby, and, I don't have any issues (not that that particularly makes sense).

Did you try Googling for the error message? I did find
brianmario/charlock_holmes#122 which looks like it might have some pointers on how to get around it. I'd try the manual install listed in that issue first, and if that doesn't work, consider using RVM instead, it may make your issues go away. It seems like this is a bug which needs to be fixed in charlock_holmes perhaps using a fix like in this gosu issue . As vimwiki_markdown doesn't currently use a makefile, I don't particularly want to go down that path and try to work out how to implement a specific fix for this. I am watching brianmario/charlock_holmes#122 so if and when it gets closed, I'll try to upgrade vimwiki's gems.

Anyway, if you do manage to get it installed using one of the methods above, do update this issue with a comment :) .

Thanks,
Patrick

@ilkermutlu
Copy link
Author

ilkermutlu commented Jan 22, 2018

Hello Patrick, thanks for the reply.

I've tried the manual install mentioned in that issue with no luck. However, installing with RVM seems to do the trick.

Here are the working steps for me:

  • Install RVM (Not a Ruby dev, so I don't have it installed)
$ curl -sSL https://get.rvm.io | bash -s stable --ruby
  • Install Vimwiki Markdown with RVM
$ rvm all do gem install vimwiki_markdown

Cheers,
Ilker

@patrickdavey
Copy link
Owner

Yeah, it's weird that. rvm must be doing something clever behind the scenes (which is why I tend to use it!)

Anyway, while there might be a way for me to fix vimwiki_markdown to fix this, as there's an effective workaround, I'm going to close this issue :)

Thanks for reporting that rvm fixed it for you.

Best,
Patrick

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

No branches or pull requests

2 participants