linux(ubuntu)ÏÂruby¿ª·¢»·¾³´î½¨
env setup
linux(ubuntu)ÏÂruby¿ª·¢»·¾³´î½¨£¬°üÀ¨Ò»Ð©³£¼ûÎÊÌâ½â¾ö
×¢Ò⣬±¾ÎÄÖ»ÊÇÎÒÔڴrubyѧϰ»·¾³Ê±µÄһЩ±Ê¼Ç£¬ÒòΪÊÇÓÃgedit±à¼µÄ£¬ËùÒÔ¸ñʽ»¯²»ÊǺܺã¬ÁíÍ⣬ֻÊDZ¸Íü¶øÒÑ¡£
2010.1.19
1. install ruby
$ tar xzf ruby-1.8.7-p248.tar.gz
$ mv ruby-1.8.7-p248 ruby187
$ cd ruby187/
$ ./configure
$ make
owen@owen-desktop:~/softinstall/ruby/ruby187$ make test
test succeeded
owen@owen-desktop:~/softinstall/ruby/ruby187$ sudo make install
owen@owen-desktop:~/softinstall/ruby/ruby187$ ruby -version
ruby 1.8.7 (2009-12-24 patchlevel 248) [i686-linux]
-e:1: undefined local variable or method `rsion' for main:Object (NameError)
owen@owen-desktop:~/softinstall/ruby/ruby187$ which ruby
/usr/local/bin/ruby
2. intall Rails through RubyGems
2.1 intall gems
$ tar xzf rubygems-1.3.4.tgz
$ cd rubygems-1.3.4/
$ sudo ruby setup.rb
Installing RubyGems
Installing gem executable
Removing old source_cache files
Removing old RubyGems RDoc and ri
Installing rubygems-1.3.4 ri into /usr/local/lib/ruby/gems/1.8/doc/rubygems-1.3.4/ri
Installing rubygems-1.3.4 rdoc into /usr/local/lib/ruby/gems/1.8/doc/rubygems-1.3.4/rdoc
------------------------------------------------------------------------------
Oh-no! Unable to find release notes!
------------------------------------------------------------------------------
RubyGems installed the following executables:
/usr/local/bin/gem
2.2 install rails through RubyGems
sudo gem install rails --include-dependencies
3. create a simple App
н¨Ò»¸öĿ¼mkdir rubydev
cd rubydev
ʹÓÃrailsÃüÁî´´½¨web app
rails hello
ÕâÑùÒ»¸ö½ÐhelloµÄwebÓ¦ÓóÌÐò¿ò¼Ü¾Í´´½¨ºÃÁË£¬ÏÖÔÚÐèÒª×öµÄ¾ÍÊÇÌí¼Ó×Ô¼ºµÄÒµÎñÂß¼
cd hello
ʹÓÃÈçÏÂÃüÁî´´½¨Ò»¸öÃûΪAppµÄ¿ØÖÆÆ÷
ruby script/generate controller App
Õâʱ¿ÉÄÜ»á³öÏÖÈçÏ´íÎ󣬱¨¸æÎÞ·¨¼ÓÔØopenssl¿â£º
owen@owen-desktop:~/devspace/rubydev/hello$ ruby script/generate controller App
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:271:in `require_frameworks': no such
Ïà¹ØÎĵµ£º
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
¹¦ÄÜ£º
¼ÓÔØÖ¸¶¨µÄÎļþϵͳ¡£
Óï·¨£º
mount [-afFhnrvVw] [-L] [-o] [-t] [É豸Ãû] [¼ÓÔصã]
Ó÷¨ËµÃ÷£º
mount¿É½«Ö¸¶¨É豸ÖÐÖ¸¶¨µÄÎļþϵͳ¼ÓÔص½LinuxĿ¼Ï£¨Ò²¾ÍÊÇ×°Ôص㣩¡£¿É½«¾³£Ê¹ÓõÄÉ豸дÈë
Îļþ/etc/fastab,ÒÔʹϵͳÔÚÿ´ÎÆô¶¯Ê±×Ô¶¯¼ÓÔØ¡£mount¼ÓÔØÉ豸µÄÐÅÏ¢¼Ç¼ÔÚ/etc/mtabÎļþÖС£Ê¹ÓÃumountÃüÁîÐ ......
ÓÉÓÚfind¾ßÓÐÇ¿´óµÄ¹¦ÄÜ£¬ËùÒÔËüµÄÑ¡ÏîÒ²ºÜ¶à£¬ÆäÖд󲿷ÖÑ¡ÏֵµÃÎÒÃÇ»¨Ê±¼äÀ´Á˽âһϡ£¼´Ê¹ÏµÍ³Öк¬ÓÐÍøÂçÎļþϵͳ(
NFS)£¬findÃüÁîÔÚ¸ÃÎļþϵͳÖÐͬÑùÓÐЧ£¬Ö»Äã¾ßÓÐÏàÓ¦µÄȨÏÞ¡£ÔÚÔËÐÐÒ»¸ö·Ç³£ÏûºÄ×ÊÔ´µÄ ...
ÓÉÓÚfind¾ßÓÐÇ¿´óµÄ¹¦ÄÜ£¬ËùÒÔËüµÄÑ¡ÏîÒ²ºÜ¶à£¬ÆäÖд󲿷ÖÑ¡ÏֵµÃÎÒÃÇ»¨Ê±¼äÀ´Á˽âһϡ£¼´Ê¹ÏµÍ³ ......
1.rpc·þÎñÐèrshµÄÖ§³Ö£¬Ò»°ãÇé¿öÏÂrshÒÑ°²×°¡£rpm -qa rsh²é¿´¡£
2.ÓÒ¼üÁí´æΪhttp://heanet.dl.sourceforge.net/sourceforge/rstatd/rpc.rstatd-4.0.1.tar.gzÏÂÔØrpc.rstatd-4.0.1.tar.gz¡£
3.Ö´ÐÐÒÔÏÂÃüÁî½âѹºÍ°²×°
tar zxvf rpc.rstatd-4.0.1.tar.gz
cd rpc.rstatd-4.0.1
./configure //ÅäÖÃ
make&nb ......
ÓйØlinuxϽø³ÌÓëÏ߳̿´¹ýºÜ¶àÎÄÕ£¬ÎÒ¾õµÄÕâƪ¿ÉÒÔ˵×î¾µä
£££££££££££££££££££££££££££££££££
Ò».»ù´¡ÖªÊ¶£ºÏ̺߳ͽø³Ì
°´Õս̿ÆÊéÉϵĶ¨Ò壬½ø³ÌÊÇ×ÊÔ´¹ÜÀíµÄ×îСµ¥Î»£¬Ïß³ÌÊdzÌÐòÖ´ÐеÄ×îСµ¥Î»¡£ÔÚ²Ù×÷ϵͳÉè¼ÆÉÏ£¬´Ó½ø³ÌÑÝ»¯³öỊ̈߳¬×îÖ÷ÒªµÄÄ¿µÄ¾ÍÊǸüºÃµÄÖ§³ÖSMPÒÔ¼°¼õÐ ......