{"id":672,"date":"2009-01-08T11:07:47","date_gmt":"2009-01-08T02:07:47","guid":{"rendered":"http:\/\/ecpplus.net\/weblog\/?p=672"},"modified":"2020-06-15T22:10:28","modified_gmt":"2020-06-15T13:10:28","slug":"leopard-rails-development","status":"publish","type":"post","link":"https:\/\/ecpplus.net\/weblog\/leopard-rails-development\/","title":{"rendered":"Leopard \u3067 Rails\u958b\u767a\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>MacBook\u3082SSD\u306b\u5165\u308c\u66ff\u3048\u3066\u5b8c\u5168\u306bSSD\u53a8\u306a\u611f\u3058\u3060\u3051\u3069\u3001\u74b0\u5883\u69cb\u7bc9\u3057\u3066\u305f\u3089 MySQL + Ruby \u3067\u3064\u307e\u3065\u3044\u305f\u306e\u3067\u30e1\u30e2\u3057\u3068\u304f\u3002<\/p>\n<p>Ruby \u306f\u3001MacPorts \u3067 1.8.7 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002MySQL \u306f\u3001<a href=\"http:\/\/dev.mysql.com\/downloads\/mysql\/5.0.html#macosx-dmg\">MySQL\u516c\u5f0f\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8<\/a> \u304b\u3089\u3001Mac OS X 10.5 (x86_64) \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f(\u3053\u308c\u304c\u826f\u304f\u306a\u304b\u3063\u305f\u307f\u305f\u3044)\u3002<\/p>\n<p>\u3053\u306e\u3042\u3068\u3001\u3044\u3064\u3082\u306e\u3088\u3046\u306b<\/p>\n<pre lang=\"\">% sudo gem install mysql -- --with-mysql-config \/usr\/local\/mysql\/bin\/\nmysql_config\nBuilding native extensions.  This could take a while...\nSuccessfully installed mysql-2.7\n1 gem installed<\/pre>\n<p>\u3063\u3066\u3084\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3093\u3060\u3051\u3069\u3001<\/p>\n<pre lang=\"\">% script\/console\n=> Booting WEBrick...\ndyld: lazy symbol binding failed: Symbol not found: _mysql_init\n  Referenced from: \/Library\/Ruby\/Gems\/1.8\/gems\/mysql-2.7\/lib\/mysql.bundle\n  Expected in: dynamic lookup\n\ndyld: Symbol not found: _mysql_init\n  Referenced from: \/Library\/Ruby\/Gems\/1.8\/gems\/mysql-2.7\/lib\/mysql.bundle\n  Expected in: dynamic lookup<\/pre>\n<p>\u3063\u3066\u51fa\u3066\u3057\u307e\u3046\u3002<\/p>\n<p>\u3050\u3050\u3063\u3066\u307f\u308b\u3068\u3001\u540c\u3058\u75c7\u72b6\u304c\u51fa\u3066\u308b\u4eba\u304c\u3044\u305f\u3002<a href=\"http:\/\/blog.digital-squad.net\/article\/92963519.html\">Leopard Macbook\u306bMySQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u301cRails\u3067\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u307e\u3067<\/a><br \/>\n(http:\/\/blog.digital-squad.net\/article\/92963519.html) \u3092\u53c2\u8003\u306b\u3055\u305b\u3066\u9802\u3044\u3066\u3001\u8a66\u3057\u3066\u307f\u308b<\/p>\n<pre lang=\"\">% sudo env ARCHFLAGS=\"-arch x86_64\" gem install mysql -- --with-mysql-config=\/usr\/local\/mysql\/bin\/mysql_config\nBuilding native extensions.  This could take a while...\nSuccessfully installed mysql-2.7\n1 gem installed<\/pre>\n<p>\u3057\u304b\u3057\uff65\uff65\uff65<\/p>\n<pre lang=\"\">% script\/console\nLoading development environment (Rails 2.0.2)\n\/Library\/Ruby\/Gems\/1.8\/gems\/mysql-2.7\/lib\/mysql.bundle: dlopen(\/Library\/Ruby\/Gems\/1.8\/gems\/mysql-2.7\/lib\/mysql.bundle, 9): no suitable image found.  Did find: (LoadError)\n        \/Library\/Ruby\/Gems\/1.8\/gems\/mysql-2.7\/lib\/mysql.bundle: mach-o, but wrong architecture - \/Library\/Ruby\/Gems\/1.8\/gems\/mysql-2.7\/lib\/mysql.bundle       from \/Library\/Ruby\/Site\/1.8\/rubygems\/custom_require.rb:31:in `require'\n        from \/Library\/Ruby\/Gems\/1.8\/gems\/activesupport-2.0.2\/lib\/active_support\/dependencies.rb:496:in `require'\n        from \/Library\/Ruby\/Gems\/1.8\/gems\/activesupport-2.0.2\/lib\/active_support\/dependencies.rb:342:in `new_constants_in'\n        from \/Library\/Ruby\/Gems\/1.8\/gems\/activesupport-2.0.2\/lib\/active_support\/dependencies.rb:496:in `require'\n        from \/Users\/chu\/rails\/viena\/config\/environment.rb:97\n        from \/Library\/Ruby\/Site\/1.8\/rubygems\/custom_require.rb:31:in `gem_original_require'\n        from \/Library\/Ruby\/Site\/1.8\/rubygems\/custom_require.rb:31:in `require'\n        from \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/1.8\/usr\/lib\/ruby\/1.8\/irb\/init.rb:253:in `load_modules'\n        from \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/1.8\/usr\/lib\/ruby\/1.8\/irb\/init.rb:251:in `each'\n        from \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/1.8\/usr\/lib\/ruby\/1.8\/irb\/init.rb:251:in `load_modules'\n        from \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/1.8\/usr\/lib\/ruby\/1.8\/irb\/init.rb:21:in `setup'\n        from \/System\/Library\/Frameworks\/Ruby.framework\/Versions\/1.8\/usr\/lib\/ruby\/1.8\/irb.rb:54:in `start'\n        from \/usr\/bin\/irb:13<\/pre>\n<p>\u9055\u3046\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u3002<\/p>\n<p>\u4e0b\u8a18\u3092\u8a66\u305b\u3070\u3044\u3044\u3063\u3066\u3044\u3046\u66f8\u304d\u8fbc\u307f\u3082\u3042\u3063\u305f\u3051\u3069\u3001\u3069\u3046\u3084\u3089\u3001x86_x64 \u306eMySQL \u3092\u4f7f\u3046\u3068\u3053\u308c\u304c\u51fa\u308b\u3063\u307d\u3044\u3002<\/p>\n<pre lang=\"\">% sudo env ARCHFLAGS=\"-arch i386\" gem install mysql -- --with-mysql-config=\/usr\/local\/mysql\/bin\/mysql_config\nBuilding native extensions.  This could take a while...\nSuccessfully installed mysql-2.7\n1 gem installed<\/pre>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001Mac OS X 10.5 (x86) \u3092\u6539\u3081\u3066\u5165\u308c\u76f4\u3057\u3066\u3001<\/p>\n<pre lang=\"\">% sudo gem install mysql -- --with-mysql-config=\/usr\/local\/mysql\/bin\/mysql_config\nBuilding native extensions.  This could take a while...\nSuccessfully installed mysql-2.7\n1 gem installed<\/pre>\n<p>\u3063\u3066\u3084\u3063\u305f\u3089\u666e\u901a\u306b\u52d5\u3044\u305f\u3002\u3046\u30fc\u3093\u3002<\/p>\n<p>\u53cb\u9054\u66f0\u304f\u3001port \u3067\u5165\u308c\u308c\u3070\u666e\u901a\u306b\u52d5\u304f\u306e\u306b\u3002\u3089\u3057\u3044(&#8216;A`)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MacBook\u3082SSD\u306b\u5165\u308c\u66ff\u3048\u3066\u5b8c\u5168\u306bSSD\u53a8\u306a\u611f\u3058\u3060\u3051\u3069\u3001\u74b0\u5883\u69cb\u7bc9\u3057\u3066\u305f\u3089 MySQL + Ruby \u3067\u3064\u307e\u3065\u3044\u305f\u306e\u3067\u30e1\u30e2\u3057\u3068\u304f\u3002 Ruby \u306f\u3001MacPorts \u3067 1.8.7 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002MySQL \u306f\u3001My [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2521,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[12,10],"class_list":["post-672","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","tag-mac","tag-rails"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/672","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/comments?post=672"}],"version-history":[{"count":3,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/672\/revisions"}],"predecessor-version":[{"id":2542,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/672\/revisions\/2542"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/media\/2521"}],"wp:attachment":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/media?parent=672"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/categories?post=672"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/tags?post=672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}