Hi yogi,

> /var/lib/gems/1.9.1/gems/r18n-core-2.0.4/lib/r18n-core/locale.rb:179:
invalid multibyte char (US-ASCII)

As I remember this solved for me ( Ubuntu 14.04 ; Nepal Taginfo ) :

#  https://github.com/ai/r18n/issues/122
sudo gem install rack         -v 1.4.5
sudo gem install r18n-core    -v 1.1.11
sudo gem install sinatra-r18n -v 1.1.11
sudo gem install rack-contrib json sqlite3 sinatra

You can check my  Nepal Taginfo   setup scripts here :

https://github.com/ImreSamu/taginfo_nepal/blob/master/osm/setup_step_00.sh
https://github.com/ImreSamu/taginfo_nepal/blob/master/osm/setup_step_01.sh

Live: http://nepal-taginfo.openstreetmap.hu/


Regards,
   Imre

2015-05-15 13:17 GMT+02:00 Yogesh <yog...@kalike.org>:

>  Hi,
>
> I could compile the binaries and import the data but while starting the
> taginfo webserver from terminal, getting the following error -
>
> /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require':
> /var/lib/gems/1.9.1/gems/r18n-core-2.0.4/lib/r18n-core/locale.rb:179:
> invalid multibyte char (US-ASCII) (SyntaxError)
> /var/lib/gems/1.9.1/gems/r18n-core-2.0.4/lib/r18n-core/locale.rb:179:
> invalid multibyte char (US-ASCII)
> /var/lib/gems/1.9.1/gems/r18n-core-2.0.4/lib/r18n-core/locale.rb:179:
> syntax error, unexpected $end, expecting keyword_end
>       str[0] = '−' if 0 > integer # Real typographic minus
>                   ^
>     from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
>     from /var/lib/gems/1.9.1/gems/r18n-core-2.0.4/lib/r18n-core.rb:25:in
> `<top (required)>'
>     from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
>     from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
>     from
> /var/lib/gems/1.9.1/gems/sinatra-r18n-2.0.4/lib/sinatra/r18n.rb:21:in `<top
> (required)>'
>     from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
>     from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in
> require'
>     from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
>     from ./taginfo.rb:50:in `<main>'
>
>
> Tried writing # encoding: utf-8 on top of the file but didn't work. Also
> tried using magic-encoding(https://github.com/m-ryan/magic_encoding) gem
> to change project-wide encoding but that didn't work either. Am I missed
> anything.?
>
> From the list archives, I could see Stephen was able to run it on Ubuntu
> 14.04. Any thoughts Stephen?
>
>
>
> thanks,
> yogi
>
> _______________________________________________
> Taginfo-dev mailing list
> Taginfo-dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/taginfo-dev
>
>
_______________________________________________
Taginfo-dev mailing list
Taginfo-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/taginfo-dev

Reply via email to