Skip to content
☯neko edited this page Mar 31, 2015 · 26 revisions

从mycard 0.9.8版本开始,支持linux平台

如果您正在使用linux并且喜欢mycard,请帮助我们维护mycard for linux,否则可能由于缺少维护而在某版本更新后不可用
目前我们只提供了64位版本,如果您在使用32位版本请帮助我们编译
联系方式: zh99998@gmail.com

安装

从官网 https://my-card.in 下载mycard并解压 安装以下依赖

系统依赖:

Ruby依赖:

  • rubysdl
  • eventmachine
  • em-http-request
  • xmpp4r
  • locale
  • i18n
  • ruby-ogginfo
  • sqlite3
  • zip
  • websocket
  • net-http-pipeline

系统依赖可以用发行版提供的源来安装,ruby依赖可以用rubygems来安装

以下以fedora和ubuntu为例,如果您在使用其他发行版,请自行Google解决方案并帮助我们完善这一页面 (登录github直接编辑本页)

fedora 18 x86-64

$ [sudo] yum install gcc make ruby-devel rubygem-bundler SDL-devel SDL_mixer-devel SDL_ttf-devel SDL_image-devel wqy-microhei-fonts
$ [sudo] gem install rubysdl eventmachine em-http-request xmpp4r locale i18n ruby-ogginfo sqlite3 zip websocket net-http-pipeline --no-ri --no-rdoc

Ubuntu 12.04 LTS x86-64

$ [sudo] apt-get install gcc make ruby1.9.3 libsqlite-dev libsdl-dev libsdl-image1.2-dev libsdl-ttf2.0-dev libsdl-mixer1.2-dev libsdl-sge-dev ttf-wqy-microhei libssl-dev
$ [sudo] gem install rubysdl eventmachine em-http-request xmpp4r locale i18n ruby-ogginfo sqlite3 zip websocket net-http-pipeline fssm --no-ri --no-rdoc

Arch Linux x86-64 (未测试)

#!/bin/bash
sudo -i
pacman -Sqs "^sdl_" | xargs pacman -S --noconfirm --needed
pacman -S --noconfirm --needed ruby wqy-microhei
yaourt -S --noconfirm --needed ruby-bundler
bundle init
echo "# A sample Gemfile" > ~/Gemfile
echo "source \"https://ruby.taobao.org/\"" >> ~/Gemfile
echo "" >> ~/Gemfile
echo "# gem "rails"" >> ~/Gemfile
echo "---" > ~/.gemrc
echo ":sources:" >> ~/.gemrc
echo "- https://ruby.taobao.org/" >> ~/.gemrc
echo "gem: --no-rdoc --no-ri" >> ~/.gemrc
gem install rubysdl eventmachine em-http-request xmpp4r locale i18n ruby-ogginfo sqlite3 zip websocket net-http-pipeline --no-ri --no-rdoc

运行

$ cd </path/to/mycard>
$ ./mycard.sh  #只有第一次需要从命令行启动,之后会自动在应用程序中创建启动器

Linux版本不支持输入法,因此请用第三方工具登录聊天室(通常系统会自带Empathy或Pidgin),详情请参阅:聊天室

Clone this wiki locally