Skip to content

gem install don't wrk at windows #1393

@demetrius2003

Description

@demetrius2003

Windows Server 2019, Ruby installer 2.7.2 with MSYS2.
Cannot install gem. Try this one:
gem install mysql2
or this:
gem install mysql2 --platform=ruby -- --with-mysql-lib=c:\mysql\lib --with-mysql-include=c:\mysql\include
No way! I get too many error like this:
c:\mysql\lib/mysqlclient.lib(C:/build/sb_1-17897690-1734351670.0571427/release/mysys/mysys_objlib.dir/RelWithDebInfo/my_default.obj):(.text$x+0x8): undefined reference to ??1?$_Alloc_construct_ptr@V?$allocator@U?$_Tree_node@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@W4enum_variable_source@@@std@@Peax@std@@@std@@@std@@qeaa@XZ'`
What can i do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions