Code Monkey home page Code Monkey logo

Comments (3)

songjiz avatar songjiz commented on June 19, 2024

I apologize for the delay in my response. Based on your description, I tested locally with Ruby 3.2.2 and 3.3.0, and everything worked fine. Could you provide more details?

Here are some possible steps to troubleshoot:

  1. Operating System: Confirm which operating system you are using (e.g., Windows, macOS, or Linux).
  2. Ruby Version Manager: You mentioned Ruby 3.2.2, but make sure you’re using a Ruby version manager (e.g., RVM, rbenv, or asdf).

Thanks!

from opencc-rb.

songjiz avatar songjiz commented on June 19, 2024

I used the mise(formerly known as rtx) as version manager, and everything worked fine.

  • step 1

    mise current

    output

    ruby 3.2.2
    
  • step 2

    which gem

    output

    .local/share/mise/installs/ruby/3.2.2/bin/gem
    
    which irb

    output

    .local/share/mise/installs/ruby/3.2.2/bin/irb
    
  • step 3

    gem install opencc-rb

    output

    Building native extensions. This could take a while...
    Successfully installed opencc-rb-1.0.6
    Parsing documentation for opencc-rb-1.0.6
    Installing ri documentation for opencc-rb-1.0.6
    Done installing documentation for opencc-rb after 0 seconds
    1 gem installed
    
  • step 4

    irb
    irb(main):001:0> require 'opencc'
    irb(main):002:0> OpenCC.t2s '測試'
    => "测试"

from opencc-rb.

UlyssesZh avatar UlyssesZh commented on June 19, 2024

I originally got this error on Ubuntu. Now I already deleted that OS.

I tried just now with Arch Linux and NixOS, but I cannot reproduce the bug now. I am closing this issue.

from opencc-rb.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.