จะลองเขียนโปรแกรมรับ/ส่งข้อความทาง MSN (client) ใน ruby ช่วยแนะนำทีครับ

ผมลองหา library ใช้ดู search ใน rubyforge เจอตัวนึงชื่อ ruburple แต่ลงไม่สำเร็จ

พอจะมีใครเคยทำ หรือว่ามีข้อมูลช่วยแนะนำทีครับ

veer's picture

เป็น jabber แทนได้ปะครับ :-P.

apirak's picture

ถ้าหาทางเอา PidGin (libgaim) มาเสียบได้ก็ดีครับ จะได้ครบทุก IM เลย

Apirak

sirn's picture

เดี๋ยวนี้มันชื่อ libpurple ครับ (มี ruburple สำหรับ Ruby) แต่ จขกท. เขาลงไม่ได้

ลองแปะ error ตอน install Gem สิครับ

ผมลงแบบนี้ครับ

gem install ruburple -y

แล้วมันก็ขึ้นแบบนี้

Bulk updating Gem source index for: http://gems.rubyforge.org
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb install ruburple -y
checking for pkg-config... no
--------------------------------------------------
extconf failure: pkg-config needed
--------------------------------------------------
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--srcdir=.
--curdir
--ruby=c:/ruby/bin/ruby

Gem files will remain installed in c:/ruby/lib/ruby/gems/1.8/gems/ruburple-0.0.8
for inspection.
Results logged to c:/ruby/lib/ruby/gems/1.8/gems/ruburple-0.0.8/ext/gem_make.out

เหมือนมันจะให้ไปหา extconf.rb อะไรซักอย่างนะครับ
แล้วผมจะไปหามาจากไหนเนีั่่ย
แนะนำทีครับ

checking for pkg-config... no
--------------------------------------------------
extconf failure: pkg-config needed
--------------------------------------------------

ต้องติดตั้งแพกเกจที่ชื่อ pkg-config ก่อนครับ

แล้วติดตั้งยังงเหรอครับ ผมทำเป็นแต่กด gem install xxx

รู้สึก pkg-config ไม่ใช่ gem ใช่มั๊ยครับ เห็นลอง gem install pkg-config แล้วมันบอกไม่เจอ

sirn's picture

มันไม่ใช่ Ruby Library น่ะครับ วิธีลงขึ้นอยู่กับ OS ถ้าหากเป็น Ubuntu สามารถสั่ง sudo apt-get install pkg-config เพื่อลงได้เลย ส่วนใน Mac เข้าใจว่าจะอยู่ใน Xcode ส่วน Windows ตัวใครตัวมันครับ

เครื่องที่จะเอาไปวาง run เป็น linux
แต่เครื่องที่ใช้ develope ผมใช้ windows พอดี

เดี๋ยวจะลองมั่วๆดูครับ =.=

veer's picture

มาใช้ Ubuntu กันเถอะครับ :-P. (โพสจาก Mac OS X lol)

nunoy nunoy # gem install ruburple -y
Building native extensions.  This could take a while...
Successfully installed ruburple-0.0.8
Installing ri documentation for ruburple-0.0.8...
Installing RDoc documentation for ruburple-0.0.8...
nunoy nunoy #

ปล. Gentoo

มาใช้ Gentoo กันเถอะครับ :-P. (โพสจาก Gentoo lol)

:)

ย้าย Codenone

ประกาศย้าย Codenone ไปใช้ Forum ของ Blognone แทนครับ ตามไปตั้งกระทู้ต่อได้ที่ Codenone Forum (รายละเอียดอ่านจากกระทู้ ย้าย Codenone ไปรวมกับ Blognone)

กระทู้เก่าๆ จะย้ายตามไปในภายหลัง ตอนนี้ปิดการโพสต์กระทู้ไว้ เหลือไว้เฉพาะอ้างอิงเท่านั้น