[bv-dev] Rake

Gunnar Morling gunnar at hibernate.org
Thu Sep 15 09:19:00 EDT 2016


Hi,

I recommend to use RVM (https://rvm.io/) and then what's called a "gemset"
for the dependencies of this specific project. I found that very helpful to
keep different Ruby versions and dependencies of different project
separated.

>From the output you posted it seems bundler is missing. Install it via "gem
install bundler". And then "rake setup[local]".

Just let me know if you have further problems with it.

--Gunnar


2016-09-15 14:48 GMT+02:00 Hendrik Ebbers <hendrik.ebbers at me.com>:

> Hi all,
>
> any idea how to install rake on a mac. Based on the readme for the bean
> validation.org repo I ended in this:
>
> Hendriks-MacBook-Pro-2:beanvalidation.org hendrikebbers$ rake check
> /Users/hendrikebbers/git/beanvalidation.org/Rakefile:105: warning:
> Insecure world writable dir /usr/local in PATH, mode 040777
> Bundler gem not installed. Run 'gem install bundler first'
> Hendriks-MacBook-Pro-2:beanvalidation.org hendrikebbers$ rake preview
> bundle exec awestruct -d
> /Users/hendrikebbers/git/beanvalidation.org/Rakefile:133: warning:
> Insecure world writable dir /usr/local in PATH, mode 040777
> Using profile: development
> Generating site: http://localhost:4242
> bundler: failed to load command: awestruct (/Users/hendrikebbers/git/bean
> validation.org/.bundle/ruby/2.0.0/bin/awestruct)
> LoadError: Could not open library 'libc.dylib': dlopen(libc.dylib, 5):
> image not found
>   /Users/hendrikebbers/git/beanvalidation.org/.bundle/ruby/2.
> 0.0/gems/ffi-1.9.10/lib/ffi/library.rb:133:in `block in ffi_lib'
>   /Users/hendrikebbers/git/beanvalidation.org/.bundle/ruby/2.
> 0.0/gems/ffi-1.9.10/lib/ffi/library.rb:100:in `map'
>   /Users/hendrikebbers/git/beanvalidation.org/.bundle/ruby/2.
> 0.0/gems/ffi-1.9.10/lib/ffi/library.rb:100:in `ffi_lib'
>   /Users/hendrikebbers/git/beanvalidation.org/.bundle/ruby/2.
> 0.0/gems/sassc-1.8.4/lib/sassc/native/lib_c.rb:5:in `<module:LibC>'
>   /Users/hendrikebbers/git/beanvalidation.org/.bundle/ruby/2.
> 0.0/gems/sassc-1.8.4/lib/sassc/native/lib_c.rb:3:in `<module:Native>'
>   /Users/hendrikebbers/git/beanvalidation.org/.bundle/ruby/2.
> 0.0/gems/sassc-1.8.4/lib/sassc/native/lib_c.rb:2:in `<module:SassC>'
>   /Users/hendrikebbers/git/beanvalidation.org/.bundle/ruby/2.
> 0.0/gems/sassc-1.8.4/lib/sassc/native/lib_c.rb:1:in `<top (required)>'
>   /Users/hendrikebbers/git/beanvalidation.org/.bundle/ruby/2.
> 0.0/gems/sassc-1.8.4/lib/sassc/native.rb:32:in `require_relative'
>   /Users/hendrikebbers/git/beanvalidation.org/.bundle/ruby/2.
> 0.0/gems/sassc-1.8.4/lib/sassc/native.rb:32:in `<module:Native>'
>   /Users/hendrikebbers/git/beanvalidation.org/.bundle/ruby/2.
> 0.0/gems/sassc-1.8.4/lib/sassc/native.rb:4:in `<module:SassC>'
>   /Users/hendrikebbers/git/beanvalidation.org/.bundle/ruby/2.
> 0.0/gems/sassc-1.8.4/lib/sassc/native.rb:3:in `<top (required)>'
>   /Users/hendrikebbers/git/beanvalidation.org/.bundle/ruby/2.
> 0.0/gems/sassc-1.8.4/lib/sassc.rb:5:in `require_relative'
>   /Users/hendrikebbers/git/beanvalidation.org/.bundle/ruby/2.
> 0.0/gems/sassc-1.8.4/lib/sassc.rb:5:in `<top (required)>'
>   /Users/hendrikebbers/git/beanvalidation.org/_ext/pipeline.rb:3:in
> `require'
>   /Users/hendrikebbers/git/beanvalidation.org/_ext/pipeline.rb:3:in
> `load_pipeline'
>   /Users/hendrikebbers/git/beanvalidation.org/.bundle/ruby/2.
> 0.0/bundler/gems/awestruct-0dbfd2ad2061/lib/awestruct/engine.rb:254:in
> `eval'
>   /Users/hendrikebbers/git/beanvalidation.org/.bundle/ruby/2.
> 0.0/bundler/gems/awestruct-0dbfd2ad2061/lib/awestruct/engine.rb:254:in
> `load_pipeline'
>   /Users/hendrikebbers/git/beanvalidation.org/.bundle/ruby/2.
> 0.0/bundler/gems/awestruct-0dbfd2ad2061/lib/awestruct/engine.rb:67:in
> `run'
>   /Users/hendrikebbers/git/beanvalidation.org/.bundle/ruby/2.
> 0.0/bundler/gems/awestruct-0dbfd2ad2061/lib/awestruct/
> cli/generate.rb:21:in `run'
>   /Users/hendrikebbers/git/beanvalidation.org/.bundle/ruby/2.
> 0.0/bundler/gems/awestruct-0dbfd2ad2061/lib/awestruct/
> cli/invoker.rb:128:in `invoke_generate'
>   /Users/hendrikebbers/git/beanvalidation.org/.bundle/ruby/2.
> 0.0/bundler/gems/awestruct-0dbfd2ad2061/lib/awestruct/cli/invoker.rb:52:in
> `invoke!'
>   /Users/hendrikebbers/git/beanvalidation.org/.bundle/ruby/2.
> 0.0/bundler/gems/awestruct-0dbfd2ad2061/bin/awestruct:9:in `<top
> (required)>'
>   /Users/hendrikebbers/git/beanvalidation.org/.bundle/ruby/2.
> 0.0/bin/awestruct:23:in `load'
>   /Users/hendrikebbers/git/beanvalidation.org/.bundle/ruby/2.
> 0.0/bin/awestruct:23:in `<top (required)>'
> rake aborted!
> ERROR: Running Awestruct failed.
> /Users/hendrikebbers/git/beanvalidation.org/Rakefile:133:in
> `run_awestruct'
> /Users/hendrikebbers/git/beanvalidation.org/Rakefile:61:in `block in <top
> (required)>'
> Tasks: TOP => preview
> (See full trace by running task with --trace)
> Hendriks-MacBook-Pro-2:beanvalidation.org hendrikebbers$
>
>
> _______________________________________________
> beanvalidation-dev mailing list
> beanvalidation-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/beanvalidation-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/beanvalidation-dev/attachments/20160915/c26ae933/attachment-0001.html 


More information about the beanvalidation-dev mailing list