RubyConf Presentations!

Discussion in 'Ruby' started by Ezra Zygmuntowicz, Oct 14, 2005.

  1. Hey again listers-

    Just incase you haven't seen the other thread about this, we
    have a great thing going on here. The kind folks at RubyConf 2005 are
    making great quality recordings of the presentations right off the
    sound board. Then they are uploading them to my server for anyone who
    couldn't make it to listen to!! Thanks Guys!!!

    We already have the first 3 presentations uploaded and ready for
    consumptions. Heres the info:

    Typo Blog with downloads:
    > http://yhrhosting.com:7000


    And rss feed:
    > http://yhrhosting.com:7000/xml/rss/feed.xml


    Keep checking back all weekend long. I will be posting all the
    presentations as they become available for the whole conference!!

    Cheers-
    -Ezra Zygmuntowicz
    Yakima Herald-Republic
    WebMaster
    http://yakimaherald.com
    509-577-7732
    Ezra Zygmuntowicz, Oct 14, 2005
    #1
    1. Advertising

  2. Ezra Zygmuntowicz

    Unnsse Khan Guest

    RubyGems install problem

    Ezra,

    I did everything you told me to do and when I tried to run the setup
    for gems, this is what I got:

    Raven:/Developer/Downloads/rubygems-0.8.11 root# ruby setup.rb
    ---> bin
    <--- bin
    ---> lib
    ---> lib/rubygems
    <--- lib/rubygems
    <--- lib
    ---> bin
    adjusting shebang: gem_mirror
    <--- bin
    ---> lib
    ---> lib/rubygems
    <--- lib/rubygems
    <--- lib
    rm -f InstalledFiles
    ---> bin
    mkdir -p /usr/bin/
    install gem /usr/bin/
    install gem_mirror /usr/bin/
    install gem_server /usr/bin/
    install gemwhich /usr/bin/
    install generate_yaml_index.rb /usr/bin/
    install update_rubygems /usr/bin/
    <--- bin
    ---> lib
    mkdir -p /usr/lib/ruby/site_ruby/1.8/
    install gemconfigure.rb /usr/lib/ruby/site_ruby/1.8/
    install rubygems.rb /usr/lib/ruby/site_ruby/1.8/
    install ubygems.rb /usr/lib/ruby/site_ruby/1.8/
    ---> lib/rubygems
    mkdir -p /usr/lib/ruby/site_ruby/1.8/rubygems
    install builder.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install cmd_manager.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install command.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install config_file.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install custom_require.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install dependency_list.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install deployment.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install doc_manager.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install format.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install gem_commands.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install gem_openssl.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install gem_runner.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install installer.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install loadpath_manager.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install old_format.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install open-uri.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install package.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install remote_installer.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install rubygems_version.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install security.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install source_index.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install specification.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install timer.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install user_interaction.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install validator.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    install version.rb /usr/lib/ruby/site_ruby/1.8/rubygems
    <--- lib/rubygems
    <--- lib

    As of RubyGems 0.8.0, library stubs are no longer needed.
    Searching $LOAD_PATH for stubs to optionally delete (may take a
    while)...
    ...done.
    No library stubs found.

    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
    `require__': No such file to load -- syck (LoadError)
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
    21:in `require'
    from /usr/lib/ruby/1.8/yaml/syck.rb:5
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
    21:in `require__'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
    21:in `require'
    from /usr/lib/ruby/1.8/yaml.rb:9
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
    21:in `require__'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
    21:in `require'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:6
    ... 13 levels...
    from setup.rb:887:in `exec_install'
    from setup.rb:705:in `invoke'
    from setup.rb:674:in `invoke'
    from setup.rb:1352
    Raven:/Developer/Downloads/rubygems-0.8.11 root#

    When I opened a new shell and typed:

    Raven:~ untz$ gem
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
    `require__': No such file to load -- syck (LoadError)
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
    21:in `require'
    from /usr/lib/ruby/1.8/yaml/syck.rb:5
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
    21:in `require__'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
    21:in `require'
    from /usr/lib/ruby/1.8/yaml.rb:9
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
    21:in `require__'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
    21:in `require'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:6
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
    21:in `require__'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
    21:in `require'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/builder.rb:1
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
    21:in `require__'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
    21:in `require'
    from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:61:in
    `manage_gems'
    from /usr/bin/gem:4
    Raven:~ untz$

    I got the same error message.... My RubyGems was working in the past....

    Do you have any suggestions?

    Kindest regards,

    Unnsse

    On Oct 14, 2005, at 3:09 PM, Ezra Zygmuntowicz wrote:

    > Unnsse-
    > I am very sorry the instruction don't seem to have worked. they
    > have worked for me many times. Maybe we should remove ruby gems
    > entirely and try again?
    > RubyCOnf is in San Diego but I wasn't able to go this year(I
    > live in WA state) so I am hosting the presentations for anyone else
    > who was not able to go as well.
    > I want to help you get you powerbook fixed. So I think at this
    > point you might have conflicting installs going on with gems or
    > something. So I think you should remove gems entirely and reinstall
    > it again. In order to remove gems you will need to do these steps:
    >
    > 1. Remove the gem and gem_server commands
    > $ sudo rm `which gem`
    > $ sudo rm `which gem_server`
    >
    > 2. Remove the gems lib files:
    > $ sudo rm -Rf /usr/lib/ruby/gems
    >
    > 3. Now re install gems with the instructions I sent you earlier.
    >
    > 4 After you have reinstalled gems the install the fixrbconfig gem.
    > This gem is supposed to fix the readlione issues and the c
    > extension stuff for osx:
    >
    > $ sudo gem install fixrbconfig
    >
    > Hopefully that will work. Could you please let me know if it
    > does? I will ride this thing our with you Unnsse. So lets work on
    > it and we _will_ get you configuration correct.
    >
    > Cheers-
    > -Ezra
    >
    >
    > PS. Have you seen Locomotive: http://locomotive.sourceforge.net/ ?
    > It gives you a self contained ruby/rails/gems/lighttpd/sqlite/mysql
    > environment all self contained in on osx .app bundle that you can
    > just double click on to run everything. It doesn't install anything
    > locally so it will work for sure. All you do is download it and
    > double click and you have a full rails stack environmant to work
    > with. It also gives you an easy place to start and stop the
    > lighttpd server and to generate scaffolds from. Give it a try! But
    > we will also fix your local ruby install as well...
    >
    > On Oct 14, 2005, at 2:46 PM, Unnsse Khan wrote:
    >
    >
    >> Hi Ezra,
    >>
    >> Is the RubyConf in San Diego? I live in San Diego and if you are
    >> here, perhaps, I could meet in a coffee shop and bring my PowerBook?
    >>
    >> I am really sorry to have become frusturated, but put your self in
    >> my shoes....
    >>
    >> Do you have *ANY* suggestions on how to fix my RubyGems problem?
    >>
    >> Kindest regards,
    >>
    >> Unnsse
    >>
    >>
    >> On Oct 14, 2005, at 2:34 PM, Ezra Zygmuntowicz wrote:
    >>
    >>
    >>
    >>> Hey again listers-
    >>>
    >>> Just incase you haven't seen the other thread about this, we
    >>> have a great thing going on here. The kind folks at RubyConf 2005
    >>> are making great quality recordings of the presentations right
    >>> off the sound board. Then they are uploading them to my server
    >>> for anyone who couldn't make it to listen to!! Thanks Guys!!!
    >>>
    >>> We already have the first 3 presentations uploaded and ready
    >>> for consumptions. Heres the info:
    >>>
    >>> Typo Blog with downloads:
    >>>
    >>>
    >>>
    >>>> http://yhrhosting.com:7000
    >>>>
    >>>>
    >>>>
    >>>
    >>> And rss feed:
    >>>
    >>>
    >>>
    >>>> http://yhrhosting.com:7000/xml/rss/feed.xml
    >>>>
    >>>>
    >>>>
    >>>
    >>> Keep checking back all weekend long. I will be posting all
    >>> the presentations as they become available for the whole
    >>> conference!!
    >>>
    >>> Cheers-
    >>> -Ezra Zygmuntowicz
    >>> Yakima Herald-Republic
    >>> WebMaster
    >>> http://yakimaherald.com
    >>> 509-577-7732
    >>>
    >>>
    >>>
    >>>
    >>>
    >>>
    >>>
    >>>

    >>
    >>
    >>
    >>

    >
    > -Ezra Zygmuntowicz
    > Yakima Herald-Republic
    > WebMaster
    > http://yakimaherald.com
    > 509-577-7732
    >
    >
    >
    >
    >
    Unnsse Khan, Oct 15, 2005
    #2
    1. Advertising

  3. Ezra Zygmuntowicz

    Unnsse Khan Guest

    Re: RubyGems install problem

    Ezra,

    Ok... I follwed your instructions with the ruby 1.8.3 stable release
    and I can seem to find where to specify my the /usr/local/bin and /
    usr/local/sbin/ before /usr/bin/ and /usr/sbin on my PATH...

    My .profile:

    Raven:~ untz$ cat .profile
    alias vim="/Applications/Vim.app/Contents/MacOS/Vim"
    alias gvim="/Applications/Vim.app/Contents/MacOS/Vim -g"
    test -r /sw/bin/init.sh && . /sw/bin/init.sh

    My .bash_profile:

    Raven:~ untz$ cat .bash_profile
    ~/.profile
    JAVA_HOME="/System/Library/frameworks/JavaVM.framework/Versions/1.5.0/
    Home";
    J2EE_HOME="/Developer/JavaTools/j2sdkee1.3.1";
    J2ME_HOME="/Developer/JavaTools/j2me_wireless_toolkit2.2";
    CATALINA_HOME="/Developer/JavaTools/tomcat/jakarta-tomcat-5.5.9";
    CLASSPATH=.:"$J2EE_HOME/lib/j2ee.jar":"$CATALINA_HOME/common/lib/
    servlet-api.jar":"$CATALINA_HOME/common/lib/jsp-api.jar":"/Developer/
    Database/hsqldb/lib/hsqldb.jar";
    PATH=$PATH:$JAVA_HOME/bin:$J2EE_HOME/bin:$J2ME_HOME/bin:/usr/local/
    bin:/opt/local/bin;
    VIMRUNTIME="/Applications/Vim.app/runtime";
    export JAVA_HOME J2ME_HOME J2EE_HOME CATALINA_HOME PATH VIMRUNTIME bash
    Raven:~ untz$

    Also, per your instruction, my new ruby install is under:

    /usr/local/

    instead of /usr/local/ruby

    How can I change this / install to /usr/local/ruby?

    In addition, I cd'ed into /usr/local/bin/ directory and ran irb and
    it still doesn't do the irb "tab completion".... I haven't installed
    RubyGems, yet because I want to do this step-by-step before
    proceeding...

    Kindest regards,

    Unnsse


    On Oct 14, 2005, at 5:19 PM, Ezra Zygmuntowicz wrote:

    > Unnsse-
    > Seeing as this problem will not go away, I think you really
    > should install ruby and gems from source again but this time do not
    > tell them to install with --prefix=/usr. Just let them install
    > where they want to (which is /usr/local/) so use the steps I sent
    > you before for installing from source but use this line for the
    > configure of ruby instead of with the --prefix=/usr:
    >
    > $ ./configure
    > $ make
    > $ make test
    > $ make install
    >
    > Then do the gem install but don't add the --prefix=/usr option.
    >
    > After you do this, then you will need to change you $PATH so that /
    > usr/local/bin and /usr/local/sbin comes before /usr/bin and /usr/
    > sbin in your $PATH.
    > If you do this everything should work again. If not one other
    > thing I can suggest to try is to install ruby and gems from darwin
    > ports. But then you will have to put /opt/local/bin in front of
    > your path as well. Try these options and let me know how it goes.
    > All the installs I have on my OSX boxes are installed in /usr/local/
    > bin. That is where ruby likes to install by default.
    >
    >
    > -Ezra
    >
    > On Oct 14, 2005, at 5:04 PM, Unnsse Khan wrote:
    >
    >
    >> Thanks but when I installed this package and tried to invoke gem
    >> or rails from the command line, this is what I got:
    >>
    >> Raven:~ untz$ rails
    >> /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/
    >> dependencies.rb:186:in `const_missing': uninitialized constant
    >> ActiveRecordError (NameError)
    >> from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/
    >> active_record/validations.rb:2
    >> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >> custom_require.rb:18:in `require__'
    >> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >> custom_require.rb:18:in `require'
    >> from /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/
    >> active_support/dependencies.rb:200:in `require'
    >> from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/
    >> active_record.rb:37
    >> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >> custom_require.rb:18:in `require__'
    >> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >> custom_require.rb:18:in `require'
    >> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:175:in
    >> `activate'
    >> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:162:in
    >> `activate'
    >> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:161:in `each'
    >> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:161:in
    >> `activate'
    >> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:37:in
    >> `require_gem_with_options'
    >> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:31:in
    >> `require_gem'
    >> from /usr/bin/rails:17
    >> Raven:~ untz$ gem
    >> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
    >> `require__': No such file to load -- syck (LoadError)
    >> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >> custom_require.rb:18:in `require'
    >> from /usr/lib/ruby/1.8/yaml/syck.rb:5
    >> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >> custom_require.rb:18:in `require__'
    >> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >> custom_require.rb:18:in `require'
    >> from /usr/lib/ruby/1.8/yaml.rb:9
    >> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >> custom_require.rb:18:in `require__'
    >> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >> custom_require.rb:18:in `require'
    >> from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:6
    >> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >> custom_require.rb:18:in `require__'
    >> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >> custom_require.rb:18:in `require'
    >> from /usr/lib/ruby/site_ruby/1.8/rubygems/builder.rb:1
    >> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >> custom_require.rb:18:in `require__'
    >> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >> custom_require.rb:18:in `require'
    >> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:61:in
    >> `manage_gems'
    >> from /usr/bin/gem:4
    >> Raven:~ untz$
    >>
    >> Sorry, it didn't work... what am I missing in the
    >> custom_require.rb file?
    >>
    >> Regards,
    >>
    >> Unnsse
    >>
    >> On Oct 14, 2005, at 4:51 PM, Ezra Zygmuntowicz wrote:
    >>
    >>
    >>
    >>> <Ruby on Rails Installer-1.pkg>
    >>>
    >>>

    >>
    >>
    >>
    >>

    >
    > -Ezra Zygmuntowicz
    > Yakima Herald-Republic
    > WebMaster
    > http://yakimaherald.com
    > 509-577-7732
    >
    >
    >
    >
    >
    Unnsse Khan, Oct 15, 2005
    #3
  4. Re: RubyGems install problem

    Unssee-
    Set it in your /etc/profile.

    PATH=/usr/local/bin:/usr/local/sbin:$PATH
    export PATH

    and then go from there

    Ezra

    On Oct 14, 2005, at 7:06 PM, Unnsse Khan wrote:

    > Ezra,
    >
    > Ok... I follwed your instructions with the ruby 1.8.3 stable
    > release and I can seem to find where to specify my the /usr/local/
    > bin and /usr/local/sbin/ before /usr/bin/ and /usr/sbin on my PATH...
    >
    > My .profile:
    >
    > Raven:~ untz$ cat .profile
    > alias vim="/Applications/Vim.app/Contents/MacOS/Vim"
    > alias gvim="/Applications/Vim.app/Contents/MacOS/Vim -g"
    > test -r /sw/bin/init.sh && . /sw/bin/init.sh
    >
    > My .bash_profile:
    >
    > Raven:~ untz$ cat .bash_profile
    > . ~/.profile
    > JAVA_HOME="/System/Library/frameworks/JavaVM.framework/Versions/
    > 1.5.0/Home";
    > J2EE_HOME="/Developer/JavaTools/j2sdkee1.3.1";
    > J2ME_HOME="/Developer/JavaTools/j2me_wireless_toolkit2.2";
    > CATALINA_HOME="/Developer/JavaTools/tomcat/jakarta-tomcat-5.5.9";
    > CLASSPATH=.:"$J2EE_HOME/lib/j2ee.jar":"$CATALINA_HOME/common/lib/
    > servlet-api.jar":"$CATALINA_HOME/common/lib/jsp-api.jar":"/
    > Developer/Database/hsqldb/lib/hsqldb.jar";
    > PATH=$PATH:$JAVA_HOME/bin:$J2EE_HOME/bin:$J2ME_HOME/bin:/usr/local/
    > bin:/opt/local/bin;
    > VIMRUNTIME="/Applications/Vim.app/runtime";
    > export JAVA_HOME J2ME_HOME J2EE_HOME CATALINA_HOME PATH VIMRUNTIME
    > bash
    > Raven:~ untz$
    >
    > Also, per your instruction, my new ruby install is under:
    >
    > /usr/local/
    >
    > instead of /usr/local/ruby
    >
    > How can I change this / install to /usr/local/ruby?
    >
    > In addition, I cd'ed into /usr/local/bin/ directory and ran irb and
    > it still doesn't do the irb "tab completion".... I haven't
    > installed RubyGems, yet because I want to do this step-by-step
    > before proceeding...
    >
    > Kindest regards,
    >
    > Unnsse
    >
    >
    > On Oct 14, 2005, at 5:19 PM, Ezra Zygmuntowicz wrote:
    >
    >
    >> Unnsse-
    >> Seeing as this problem will not go away, I think you really
    >> should install ruby and gems from source again but this time do
    >> not tell them to install with --prefix=/usr. Just let them install
    >> where they want to (which is /usr/local/) so use the steps I sent
    >> you before for installing from source but use this line for the
    >> configure of ruby instead of with the --prefix=/usr:
    >>
    >> $ ./configure
    >> $ make
    >> $ make test
    >> $ make install
    >>
    >> Then do the gem install but don't add the --prefix=/usr option.
    >>
    >> After you do this, then you will need to change you $PATH so that /
    >> usr/local/bin and /usr/local/sbin comes before /usr/bin and /usr/
    >> sbin in your $PATH.
    >> If you do this everything should work again. If not one other
    >> thing I can suggest to try is to install ruby and gems from darwin
    >> ports. But then you will have to put /opt/local/bin in front of
    >> your path as well. Try these options and let me know how it goes.
    >> All the installs I have on my OSX boxes are installed in /usr/
    >> local/bin. That is where ruby likes to install by default.
    >>
    >>
    >> -Ezra
    >>
    >> On Oct 14, 2005, at 5:04 PM, Unnsse Khan wrote:
    >>
    >>
    >>
    >>> Thanks but when I installed this package and tried to invoke gem
    >>> or rails from the command line, this is what I got:
    >>>
    >>> Raven:~ untz$ rails
    >>> /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/
    >>> active_support/dependencies.rb:186:in `const_missing':
    >>> uninitialized constant ActiveRecordError (NameError)
    >>> from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/
    >>> active_record/validations.rb:2
    >>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>> custom_require.rb:18:in `require__'
    >>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>> custom_require.rb:18:in `require'
    >>> from /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/
    >>> active_support/dependencies.rb:200:in `require'
    >>> from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/
    >>> active_record.rb:37
    >>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>> custom_require.rb:18:in `require__'
    >>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>> custom_require.rb:18:in `require'
    >>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:175:in
    >>> `activate'
    >>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:162:in
    >>> `activate'
    >>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:161:in `each'
    >>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:161:in
    >>> `activate'
    >>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:37:in
    >>> `require_gem_with_options'
    >>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:31:in
    >>> `require_gem'
    >>> from /usr/bin/rails:17
    >>> Raven:~ untz$ gem
    >>> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
    >>> `require__': No such file to load -- syck (LoadError)
    >>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>> custom_require.rb:18:in `require'
    >>> from /usr/lib/ruby/1.8/yaml/syck.rb:5
    >>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>> custom_require.rb:18:in `require__'
    >>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>> custom_require.rb:18:in `require'
    >>> from /usr/lib/ruby/1.8/yaml.rb:9
    >>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>> custom_require.rb:18:in `require__'
    >>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>> custom_require.rb:18:in `require'
    >>> from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:6
    >>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>> custom_require.rb:18:in `require__'
    >>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>> custom_require.rb:18:in `require'
    >>> from /usr/lib/ruby/site_ruby/1.8/rubygems/builder.rb:1
    >>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>> custom_require.rb:18:in `require__'
    >>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>> custom_require.rb:18:in `require'
    >>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:61:in
    >>> `manage_gems'
    >>> from /usr/bin/gem:4
    >>> Raven:~ untz$
    >>>
    >>> Sorry, it didn't work... what am I missing in the
    >>> custom_require.rb file?
    >>>
    >>> Regards,
    >>>
    >>> Unnsse
    >>>
    >>> On Oct 14, 2005, at 4:51 PM, Ezra Zygmuntowicz wrote:
    >>>
    >>>
    >>>
    >>>
    >>>> <Ruby on Rails Installer-1.pkg>
    >>>>
    >>>>
    >>>>
    >>>
    >>>
    >>>
    >>>
    >>>

    >>
    >> -Ezra Zygmuntowicz
    >> Yakima Herald-Republic
    >> WebMaster
    >> http://yakimaherald.com
    >> 509-577-7732
    >>
    >>
    >>
    >>
    >>
    >>

    >
    >
    >
    >


    -Ezra Zygmuntowicz
    WebMaster
    Yakima Herald-Republic Newspaper

    509-577-7732
    Ezra Zygmuntowicz, Oct 15, 2005
    #4
  5. Ezra Zygmuntowicz

    Unnsse Khan Guest

    Re: RubyGems install problem

    Ezra,

    can't seem to write to it because its read-only (sorry, I am UNIX
    dummy...)

    How do I unset the read-only attribute on this file?

    Also, will ruby being in /usr/local/ pose a problem? I remember that
    subversion and other applications are in /usr/local/

    so, isn't it better to make it so its /usr/local/ruby ?

    also, how do I do the symbolic link for /usr/bin/ruby to point to /
    usr/bin/loca/ ?

    Is it:

    ln -s /usr/bin/ruby /usr/local/bin/ruby ?

    will I be able to use the same:

    #!/usr/bin/ruby -w

    in my ruby programs?

    Kindest regards,

    Unnsse

    On Oct 14, 2005, at 7:11 PM, Ezra Zygmuntowicz wrote:

    > Unssee-
    > Set it in your /etc/profile.
    >
    > PATH=/usr/local/bin:/usr/local/sbin:$PATH
    > export PATH
    >
    > and then go from there
    >
    > Ezra
    >
    > On Oct 14, 2005, at 7:06 PM, Unnsse Khan wrote:
    >
    >
    >> Ezra,
    >>
    >> Ok... I follwed your instructions with the ruby 1.8.3 stable
    >> release and I can seem to find where to specify my the /usr/local/
    >> bin and /usr/local/sbin/ before /usr/bin/ and /usr/sbin on my PATH...
    >>
    >> My .profile:
    >>
    >> Raven:~ untz$ cat .profile
    >> alias vim="/Applications/Vim.app/Contents/MacOS/Vim"
    >> alias gvim="/Applications/Vim.app/Contents/MacOS/Vim -g"
    >> test -r /sw/bin/init.sh && . /sw/bin/init.sh
    >>
    >> My .bash_profile:
    >>
    >> Raven:~ untz$ cat .bash_profile
    >> . ~/.profile
    >> JAVA_HOME="/System/Library/frameworks/JavaVM.framework/Versions/
    >> 1.5.0/Home";
    >> J2EE_HOME="/Developer/JavaTools/j2sdkee1.3.1";
    >> J2ME_HOME="/Developer/JavaTools/j2me_wireless_toolkit2.2";
    >> CATALINA_HOME="/Developer/JavaTools/tomcat/jakarta-tomcat-5.5.9";
    >> CLASSPATH=.:"$J2EE_HOME/lib/j2ee.jar":"$CATALINA_HOME/common/lib/
    >> servlet-api.jar":"$CATALINA_HOME/common/lib/jsp-api.jar":"/
    >> Developer/Database/hsqldb/lib/hsqldb.jar";
    >> PATH=$PATH:$JAVA_HOME/bin:$J2EE_HOME/bin:$J2ME_HOME/bin:/usr/local/
    >> bin:/opt/local/bin;
    >> VIMRUNTIME="/Applications/Vim.app/runtime";
    >> export JAVA_HOME J2ME_HOME J2EE_HOME CATALINA_HOME PATH VIMRUNTIME
    >> bash
    >> Raven:~ untz$
    >>
    >> Also, per your instruction, my new ruby install is under:
    >>
    >> /usr/local/
    >>
    >> instead of /usr/local/ruby
    >>
    >> How can I change this / install to /usr/local/ruby?
    >>
    >> In addition, I cd'ed into /usr/local/bin/ directory and ran irb
    >> and it still doesn't do the irb "tab completion".... I haven't
    >> installed RubyGems, yet because I want to do this step-by-step
    >> before proceeding...
    >>
    >> Kindest regards,
    >>
    >> Unnsse
    >>
    >>
    >> On Oct 14, 2005, at 5:19 PM, Ezra Zygmuntowicz wrote:
    >>
    >>
    >>
    >>> Unnsse-
    >>> Seeing as this problem will not go away, I think you really
    >>> should install ruby and gems from source again but this time do
    >>> not tell them to install with --prefix=/usr. Just let them
    >>> install where they want to (which is /usr/local/) so use the
    >>> steps I sent you before for installing from source but use this
    >>> line for the configure of ruby instead of with the --prefix=/usr:
    >>>
    >>> $ ./configure
    >>> $ make
    >>> $ make test
    >>> $ make install
    >>>
    >>> Then do the gem install but don't add the --prefix=/usr option.
    >>>
    >>> After you do this, then you will need to change you $PATH so
    >>> that /usr/local/bin and /usr/local/sbin comes before /usr/bin
    >>> and /usr/sbin in your $PATH.
    >>> If you do this everything should work again. If not one other
    >>> thing I can suggest to try is to install ruby and gems from
    >>> darwin ports. But then you will have to put /opt/local/bin in
    >>> front of your path as well. Try these options and let me know how
    >>> it goes. All the installs I have on my OSX boxes are installed
    >>> in /usr/local/bin. That is where ruby likes to install by default.
    >>>
    >>>
    >>> -Ezra
    >>>
    >>> On Oct 14, 2005, at 5:04 PM, Unnsse Khan wrote:
    >>>
    >>>
    >>>
    >>>
    >>>> Thanks but when I installed this package and tried to invoke gem
    >>>> or rails from the command line, this is what I got:
    >>>>
    >>>> Raven:~ untz$ rails
    >>>> /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/
    >>>> active_support/dependencies.rb:186:in `const_missing':
    >>>> uninitialized constant ActiveRecordError (NameError)
    >>>> from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/
    >>>> active_record/validations.rb:2
    >>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>> custom_require.rb:18:in `require__'
    >>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>> custom_require.rb:18:in `require'
    >>>> from /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/
    >>>> active_support/dependencies.rb:200:in `require'
    >>>> from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/
    >>>> active_record.rb:37
    >>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>> custom_require.rb:18:in `require__'
    >>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>> custom_require.rb:18:in `require'
    >>>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:175:in
    >>>> `activate'
    >>>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:162:in
    >>>> `activate'
    >>>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:161:in `each'
    >>>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:161:in
    >>>> `activate'
    >>>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:37:in
    >>>> `require_gem_with_options'
    >>>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:31:in
    >>>> `require_gem'
    >>>> from /usr/bin/rails:17
    >>>> Raven:~ untz$ gem
    >>>> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
    >>>> `require__': No such file to load -- syck (LoadError)
    >>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>> custom_require.rb:18:in `require'
    >>>> from /usr/lib/ruby/1.8/yaml/syck.rb:5
    >>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>> custom_require.rb:18:in `require__'
    >>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>> custom_require.rb:18:in `require'
    >>>> from /usr/lib/ruby/1.8/yaml.rb:9
    >>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>> custom_require.rb:18:in `require__'
    >>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>> custom_require.rb:18:in `require'
    >>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:6
    >>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>> custom_require.rb:18:in `require__'
    >>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>> custom_require.rb:18:in `require'
    >>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/builder.rb:1
    >>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>> custom_require.rb:18:in `require__'
    >>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>> custom_require.rb:18:in `require'
    >>>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:61:in
    >>>> `manage_gems'
    >>>> from /usr/bin/gem:4
    >>>> Raven:~ untz$
    >>>>
    >>>> Sorry, it didn't work... what am I missing in the
    >>>> custom_require.rb file?
    >>>>
    >>>> Regards,
    >>>>
    >>>> Unnsse
    >>>>
    >>>> On Oct 14, 2005, at 4:51 PM, Ezra Zygmuntowicz wrote:
    >>>>
    >>>>
    >>>>
    >>>>
    >>>>
    >>>>> <Ruby on Rails Installer-1.pkg>
    >>>>>
    >>>>>
    >>>>>
    >>>>>
    >>>>
    >>>>
    >>>>
    >>>>
    >>>>
    >>>>
    >>>
    >>> -Ezra Zygmuntowicz
    >>> Yakima Herald-Republic
    >>> WebMaster
    >>> http://yakimaherald.com
    >>> 509-577-7732
    >>>
    >>>
    >>>
    >>>
    >>>
    >>>
    >>>

    >>
    >>
    >>
    >>
    >>

    >
    > -Ezra Zygmuntowicz
    > WebMaster
    > Yakima Herald-Republic Newspaper
    >
    > 509-577-7732
    >
    >
    Unnsse Khan, Oct 15, 2005
    #5
  6. Re: RubyGems install problem

    Unssee-
    You need to do this to edit the protected profile:

    $ sudo pico /etc/profile

    But you could also just add the path statements to you .bash_profile
    at the bottom. In fact that is probably a better way of doing it.


    If you installed ruby in /usr/local/bin/ruby then just putting the /
    usr/local/bin in the front of your path is enough and you dont need a
    symlink.

    -Ezra

    On Oct 14, 2005, at 7:24 PM, Unnsse Khan wrote:

    > Ezra,
    >
    > can't seem to write to it because its read-only (sorry, I am UNIX
    > dummy...)
    >
    > How do I unset the read-only attribute on this file?
    >
    > Also, will ruby being in /usr/local/ pose a problem? I remember
    > that subversion and other applications are in /usr/local/
    >
    > so, isn't it better to make it so its /usr/local/ruby ?
    >
    > also, how do I do the symbolic link for /usr/bin/ruby to point to /
    > usr/bin/loca/ ?
    >
    > Is it:
    >
    > ln -s /usr/bin/ruby /usr/local/bin/ruby ?
    >
    > will I be able to use the same:
    >
    > #!/usr/bin/ruby -w
    >
    > in my ruby programs?
    >
    > Kindest regards,
    >
    > Unnsse
    >
    > On Oct 14, 2005, at 7:11 PM, Ezra Zygmuntowicz wrote:
    >
    >
    >> Unssee-
    >> Set it in your /etc/profile.
    >>
    >> PATH=/usr/local/bin:/usr/local/sbin:$PATH
    >> export PATH
    >>
    >> and then go from there
    >>
    >> Ezra
    >>
    >> On Oct 14, 2005, at 7:06 PM, Unnsse Khan wrote:
    >>
    >>
    >>
    >>> Ezra,
    >>>
    >>> Ok... I follwed your instructions with the ruby 1.8.3 stable
    >>> release and I can seem to find where to specify my the /usr/local/
    >>> bin and /usr/local/sbin/ before /usr/bin/ and /usr/sbin on my
    >>> PATH...
    >>>
    >>> My .profile:
    >>>
    >>> Raven:~ untz$ cat .profile
    >>> alias vim="/Applications/Vim.app/Contents/MacOS/Vim"
    >>> alias gvim="/Applications/Vim.app/Contents/MacOS/Vim -g"
    >>> test -r /sw/bin/init.sh && . /sw/bin/init.sh
    >>>
    >>> My .bash_profile:
    >>>
    >>> Raven:~ untz$ cat .bash_profile
    >>> . ~/.profile
    >>> JAVA_HOME="/System/Library/frameworks/JavaVM.framework/Versions/
    >>> 1.5.0/Home";
    >>> J2EE_HOME="/Developer/JavaTools/j2sdkee1.3.1";
    >>> J2ME_HOME="/Developer/JavaTools/j2me_wireless_toolkit2.2";
    >>> CATALINA_HOME="/Developer/JavaTools/tomcat/jakarta-tomcat-5.5.9";
    >>> CLASSPATH=.:"$J2EE_HOME/lib/j2ee.jar":"$CATALINA_HOME/common/lib/
    >>> servlet-api.jar":"$CATALINA_HOME/common/lib/jsp-api.jar":"/
    >>> Developer/Database/hsqldb/lib/hsqldb.jar";
    >>> PATH=$PATH:$JAVA_HOME/bin:$J2EE_HOME/bin:$J2ME_HOME/bin:/usr/
    >>> local/bin:/opt/local/bin;
    >>> VIMRUNTIME="/Applications/Vim.app/runtime";
    >>> export JAVA_HOME J2ME_HOME J2EE_HOME CATALINA_HOME PATH
    >>> VIMRUNTIME bash
    >>> Raven:~ untz$
    >>>
    >>> Also, per your instruction, my new ruby install is under:
    >>>
    >>> /usr/local/
    >>>
    >>> instead of /usr/local/ruby
    >>>
    >>> How can I change this / install to /usr/local/ruby?
    >>>
    >>> In addition, I cd'ed into /usr/local/bin/ directory and ran irb
    >>> and it still doesn't do the irb "tab completion".... I haven't
    >>> installed RubyGems, yet because I want to do this step-by-step
    >>> before proceeding...
    >>>
    >>> Kindest regards,
    >>>
    >>> Unnsse
    >>>
    >>>
    >>> On Oct 14, 2005, at 5:19 PM, Ezra Zygmuntowicz wrote:
    >>>
    >>>
    >>>
    >>>
    >>>> Unnsse-
    >>>> Seeing as this problem will not go away, I think you really
    >>>> should install ruby and gems from source again but this time do
    >>>> not tell them to install with --prefix=/usr. Just let them
    >>>> install where they want to (which is /usr/local/) so use the
    >>>> steps I sent you before for installing from source but use this
    >>>> line for the configure of ruby instead of with the --prefix=/usr:
    >>>>
    >>>> $ ./configure
    >>>> $ make
    >>>> $ make test
    >>>> $ make install
    >>>>
    >>>> Then do the gem install but don't add the --prefix=/usr option.
    >>>>
    >>>> After you do this, then you will need to change you $PATH so
    >>>> that /usr/local/bin and /usr/local/sbin comes before /usr/bin
    >>>> and /usr/sbin in your $PATH.
    >>>> If you do this everything should work again. If not one
    >>>> other thing I can suggest to try is to install ruby and gems
    >>>> from darwin ports. But then you will have to put /opt/local/bin
    >>>> in front of your path as well. Try these options and let me know
    >>>> how it goes. All the installs I have on my OSX boxes are
    >>>> installed in /usr/local/bin. That is where ruby likes to install
    >>>> by default.
    >>>>
    >>>>
    >>>> -Ezra
    >>>>
    >>>> On Oct 14, 2005, at 5:04 PM, Unnsse Khan wrote:
    >>>>
    >>>>
    >>>>
    >>>>
    >>>>
    >>>>> Thanks but when I installed this package and tried to invoke
    >>>>> gem or rails from the command line, this is what I got:
    >>>>>
    >>>>> Raven:~ untz$ rails
    >>>>> /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/
    >>>>> active_support/dependencies.rb:186:in `const_missing':
    >>>>> uninitialized constant ActiveRecordError (NameError)
    >>>>> from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/
    >>>>> lib/active_record/validations.rb:2
    >>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>> custom_require.rb:18:in `require__'
    >>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>> custom_require.rb:18:in `require'
    >>>>> from /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/
    >>>>> lib/active_support/dependencies.rb:200:in `require'
    >>>>> from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/
    >>>>> lib/active_record.rb:37
    >>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>> custom_require.rb:18:in `require__'
    >>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>> custom_require.rb:18:in `require'
    >>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:175:in
    >>>>> `activate'
    >>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:162:in
    >>>>> `activate'
    >>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:161:in `each'
    >>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:161:in
    >>>>> `activate'
    >>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:37:in
    >>>>> `require_gem_with_options'
    >>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:31:in
    >>>>> `require_gem'
    >>>>> from /usr/bin/rails:17
    >>>>> Raven:~ untz$ gem
    >>>>> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
    >>>>> `require__': No such file to load -- syck (LoadError)
    >>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>> custom_require.rb:18:in `require'
    >>>>> from /usr/lib/ruby/1.8/yaml/syck.rb:5
    >>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>> custom_require.rb:18:in `require__'
    >>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>> custom_require.rb:18:in `require'
    >>>>> from /usr/lib/ruby/1.8/yaml.rb:9
    >>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>> custom_require.rb:18:in `require__'
    >>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>> custom_require.rb:18:in `require'
    >>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:6
    >>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>> custom_require.rb:18:in `require__'
    >>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>> custom_require.rb:18:in `require'
    >>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/builder.rb:1
    >>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>> custom_require.rb:18:in `require__'
    >>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>> custom_require.rb:18:in `require'
    >>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:61:in
    >>>>> `manage_gems'
    >>>>> from /usr/bin/gem:4
    >>>>> Raven:~ untz$
    >>>>>
    >>>>> Sorry, it didn't work... what am I missing in the
    >>>>> custom_require.rb file?
    >>>>>
    >>>>> Regards,
    >>>>>
    >>>>> Unnsse
    >>>>>
    >>>>> On Oct 14, 2005, at 4:51 PM, Ezra Zygmuntowicz wrote:
    >>>>>
    >>>>>
    >>>>>
    >>>>>
    >>>>>
    >>>>>
    >>>>>> <Ruby on Rails Installer-1.pkg>
    >>>>>>
    >>>>>>
    >>>>>>
    >>>>>>
    >>>>>>
    >>>>>
    >>>>>
    >>>>>
    >>>>>
    >>>>>
    >>>>>
    >>>>>
    >>>>
    >>>> -Ezra Zygmuntowicz
    >>>> Yakima Herald-Republic
    >>>> WebMaster
    >>>> http://yakimaherald.com
    >>>> 509-577-7732
    >>>>
    >>>>
    >>>>
    >>>>
    >>>>
    >>>>
    >>>>
    >>>>
    >>>
    >>>
    >>>
    >>>
    >>>
    >>>

    >>
    >> -Ezra Zygmuntowicz
    >> WebMaster
    >> Yakima Herald-Republic Newspaper
    >>
    >> 509-577-7732
    >>
    >>
    >>

    >
    >
    >
    >


    -Ezra Zygmuntowicz
    WebMaster
    Yakima Herald-Republic Newspaper

    509-577-7732
    Ezra Zygmuntowicz, Oct 15, 2005
    #6
  7. Ezra Zygmuntowicz

    Unnsse Khan Guest

    IRB tab completion problem on OS X Tiger

    Ezra,

    Ok... RubyGems works now but now, when I start irb and do this:

    Raven:~ untz$ irb
    irb(main):001:0> a = "Ruby rocks!"
    => "Ruby rocks!"
    irb(main):002:0> a.rev

    and click on tab, the cursor just remains fixed (right after the "v")
    and before, whereas, it would fill in the remaining word, and also
    wouldn't show me
    anymore choices for instance methods, the cursor would move four
    spaces (just like using tab on MS Word)...

    We are back to square one, and the tab completion problem seems to
    still be broken but with different oddities......

    Anyone else have any suggestions?

    Kindest regards,

    Unnsse

    On Oct 14, 2005, at 7:48 PM, Ezra Zygmuntowicz wrote:

    > Unssee-
    > You need to do this to edit the protected profile:
    >
    > $ sudo pico /etc/profile
    >
    > But you could also just add the path statements to
    > you .bash_profile at the bottom. In fact that is probably a better
    > way of doing it.
    >
    >
    > If you installed ruby in /usr/local/bin/ruby then just putting the /
    > usr/local/bin in the front of your path is enough and you dont need
    > a symlink.
    >
    > -Ezra
    >
    > On Oct 14, 2005, at 7:24 PM, Unnsse Khan wrote:
    >
    >
    >> Ezra,
    >>
    >> can't seem to write to it because its read-only (sorry, I am UNIX
    >> dummy...)
    >>
    >> How do I unset the read-only attribute on this file?
    >>
    >> Also, will ruby being in /usr/local/ pose a problem? I remember
    >> that subversion and other applications are in /usr/local/
    >>
    >> so, isn't it better to make it so its /usr/local/ruby ?
    >>
    >> also, how do I do the symbolic link for /usr/bin/ruby to point to /
    >> usr/bin/loca/ ?
    >>
    >> Is it:
    >>
    >> ln -s /usr/bin/ruby /usr/local/bin/ruby ?
    >>
    >> will I be able to use the same:
    >>
    >> #!/usr/bin/ruby -w
    >>
    >> in my ruby programs?
    >>
    >> Kindest regards,
    >>
    >> Unnsse
    >>
    >> On Oct 14, 2005, at 7:11 PM, Ezra Zygmuntowicz wrote:
    >>
    >>
    >>
    >>> Unssee-
    >>> Set it in your /etc/profile.
    >>>
    >>> PATH=/usr/local/bin:/usr/local/sbin:$PATH
    >>> export PATH
    >>>
    >>> and then go from there
    >>>
    >>> Ezra
    >>>
    >>> On Oct 14, 2005, at 7:06 PM, Unnsse Khan wrote:
    >>>
    >>>
    >>>
    >>>
    >>>> Ezra,
    >>>>
    >>>> Ok... I follwed your instructions with the ruby 1.8.3 stable
    >>>> release and I can seem to find where to specify my the /usr/
    >>>> local/bin and /usr/local/sbin/ before /usr/bin/ and /usr/sbin on
    >>>> my PATH...
    >>>>
    >>>> My .profile:
    >>>>
    >>>> Raven:~ untz$ cat .profile
    >>>> alias vim="/Applications/Vim.app/Contents/MacOS/Vim"
    >>>> alias gvim="/Applications/Vim.app/Contents/MacOS/Vim -g"
    >>>> test -r /sw/bin/init.sh && . /sw/bin/init.sh
    >>>>
    >>>> My .bash_profile:
    >>>>
    >>>> Raven:~ untz$ cat .bash_profile
    >>>> . ~/.profile
    >>>> JAVA_HOME="/System/Library/frameworks/JavaVM.framework/Versions/
    >>>> 1.5.0/Home";
    >>>> J2EE_HOME="/Developer/JavaTools/j2sdkee1.3.1";
    >>>> J2ME_HOME="/Developer/JavaTools/j2me_wireless_toolkit2.2";
    >>>> CATALINA_HOME="/Developer/JavaTools/tomcat/jakarta-tomcat-5.5.9";
    >>>> CLASSPATH=.:"$J2EE_HOME/lib/j2ee.jar":"$CATALINA_HOME/common/lib/
    >>>> servlet-api.jar":"$CATALINA_HOME/common/lib/jsp-api.jar":"/
    >>>> Developer/Database/hsqldb/lib/hsqldb.jar";
    >>>> PATH=$PATH:$JAVA_HOME/bin:$J2EE_HOME/bin:$J2ME_HOME/bin:/usr/
    >>>> local/bin:/opt/local/bin;
    >>>> VIMRUNTIME="/Applications/Vim.app/runtime";
    >>>> export JAVA_HOME J2ME_HOME J2EE_HOME CATALINA_HOME PATH
    >>>> VIMRUNTIME bash
    >>>> Raven:~ untz$
    >>>>
    >>>> Also, per your instruction, my new ruby install is under:
    >>>>
    >>>> /usr/local/
    >>>>
    >>>> instead of /usr/local/ruby
    >>>>
    >>>> How can I change this / install to /usr/local/ruby?
    >>>>
    >>>> In addition, I cd'ed into /usr/local/bin/ directory and ran irb
    >>>> and it still doesn't do the irb "tab completion".... I haven't
    >>>> installed RubyGems, yet because I want to do this step-by-step
    >>>> before proceeding...
    >>>>
    >>>> Kindest regards,
    >>>>
    >>>> Unnsse
    >>>>
    >>>>
    >>>> On Oct 14, 2005, at 5:19 PM, Ezra Zygmuntowicz wrote:
    >>>>
    >>>>
    >>>>
    >>>>
    >>>>
    >>>>> Unnsse-
    >>>>> Seeing as this problem will not go away, I think you really
    >>>>> should install ruby and gems from source again but this time do
    >>>>> not tell them to install with --prefix=/usr. Just let them
    >>>>> install where they want to (which is /usr/local/) so use the
    >>>>> steps I sent you before for installing from source but use this
    >>>>> line for the configure of ruby instead of with the --prefix=/usr:
    >>>>>
    >>>>> $ ./configure
    >>>>> $ make
    >>>>> $ make test
    >>>>> $ make install
    >>>>>
    >>>>> Then do the gem install but don't add the --prefix=/usr option.
    >>>>>
    >>>>> After you do this, then you will need to change you $PATH so
    >>>>> that /usr/local/bin and /usr/local/sbin comes before /usr/bin
    >>>>> and /usr/sbin in your $PATH.
    >>>>> If you do this everything should work again. If not one
    >>>>> other thing I can suggest to try is to install ruby and gems
    >>>>> from darwin ports. But then you will have to put /opt/local/bin
    >>>>> in front of your path as well. Try these options and let me
    >>>>> know how it goes. All the installs I have on my OSX boxes are
    >>>>> installed in /usr/local/bin. That is where ruby likes to
    >>>>> install by default.
    >>>>>
    >>>>>
    >>>>> -Ezra
    >>>>>
    >>>>> On Oct 14, 2005, at 5:04 PM, Unnsse Khan wrote:
    >>>>>
    >>>>>
    >>>>>
    >>>>>
    >>>>>
    >>>>>
    >>>>>> Thanks but when I installed this package and tried to invoke
    >>>>>> gem or rails from the command line, this is what I got:
    >>>>>>
    >>>>>> Raven:~ untz$ rails
    >>>>>> /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/
    >>>>>> active_support/dependencies.rb:186:in `const_missing':
    >>>>>> uninitialized constant ActiveRecordError (NameError)
    >>>>>> from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/
    >>>>>> lib/active_record/validations.rb:2
    >>>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>>> custom_require.rb:18:in `require__'
    >>>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>>> custom_require.rb:18:in `require'
    >>>>>> from /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/
    >>>>>> lib/active_support/dependencies.rb:200:in `require'
    >>>>>> from /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/
    >>>>>> lib/active_record.rb:37
    >>>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>>> custom_require.rb:18:in `require__'
    >>>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>>> custom_require.rb:18:in `require'
    >>>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:175:in
    >>>>>> `activate'
    >>>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:162:in
    >>>>>> `activate'
    >>>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:161:in
    >>>>>> `each'
    >>>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:161:in
    >>>>>> `activate'
    >>>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:37:in
    >>>>>> `require_gem_with_options'
    >>>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:31:in
    >>>>>> `require_gem'
    >>>>>> from /usr/bin/rails:17
    >>>>>> Raven:~ untz$ gem
    >>>>>> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
    >>>>>> `require__': No such file to load -- syck (LoadError)
    >>>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>>> custom_require.rb:18:in `require'
    >>>>>> from /usr/lib/ruby/1.8/yaml/syck.rb:5
    >>>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>>> custom_require.rb:18:in `require__'
    >>>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>>> custom_require.rb:18:in `require'
    >>>>>> from /usr/lib/ruby/1.8/yaml.rb:9
    >>>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>>> custom_require.rb:18:in `require__'
    >>>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>>> custom_require.rb:18:in `require'
    >>>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:6
    >>>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>>> custom_require.rb:18:in `require__'
    >>>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>>> custom_require.rb:18:in `require'
    >>>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/builder.rb:1
    >>>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>>> custom_require.rb:18:in `require__'
    >>>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems/
    >>>>>> custom_require.rb:18:in `require'
    >>>>>> from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:61:in
    >>>>>> `manage_gems'
    >>>>>> from /usr/bin/gem:4
    >>>>>> Raven:~ untz$
    >>>>>>
    >>>>>> Sorry, it didn't work... what am I missing in the
    >>>>>> custom_require.rb file?
    >>>>>>
    >>>>>> Regards,
    >>>>>>
    >>>>>> Unnsse
    >>>>>>
    >>>>>> On Oct 14, 2005, at 4:51 PM, Ezra Zygmuntowicz wrote:
    >>>>>>
    >>>>>>
    >>>>>>
    >>>>>>
    >>>>>>
    >>>>>>
    >>>>>>
    >>>>>>> <Ruby on Rails Installer-1.pkg>
    >>>>>>>
    >>>>>>>
    >>>>>>>
    >>>>>>>
    >>>>>>>
    >>>>>>>
    >>>>>>
    >>>>>>
    >>>>>>
    >>>>>>
    >>>>>>
    >>>>>>
    >>>>>>
    >>>>>>
    >>>>>
    >>>>> -Ezra Zygmuntowicz
    >>>>> Yakima Herald-Republic
    >>>>> WebMaster
    >>>>> http://yakimaherald.com
    >>>>> 509-577-7732
    >>>>>
    >>>>>
    >>>>>
    >>>>>
    >>>>>
    >>>>>
    >>>>>
    >>>>>
    >>>>>
    >>>>
    >>>>
    >>>>
    >>>>
    >>>>
    >>>>
    >>>>
    >>>
    >>> -Ezra Zygmuntowicz
    >>> WebMaster
    >>> Yakima Herald-Republic Newspaper
    >>>
    >>> 509-577-7732
    >>>
    >>>
    >>>
    >>>

    >>
    >>
    >>
    >>
    >>

    >
    > -Ezra Zygmuntowicz
    > WebMaster
    > Yakima Herald-Republic Newspaper
    >
    > 509-577-7732
    >
    >
    Unnsse Khan, Oct 15, 2005
    #7
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Michael Neumann

    RubyConf presentations available?

    Michael Neumann, Nov 18, 2003, in forum: Ruby
    Replies:
    2
    Views:
    96
    Mauricio Fernández
    Nov 18, 2003
  2. Ryan Davis

    RubyConf 2003 Presentations Posted

    Ryan Davis, Nov 21, 2003, in forum: Ruby
    Replies:
    2
    Views:
    80
    gabriele renzi
    Nov 21, 2003
  3. David A. Black
    Replies:
    4
    Views:
    144
    Francis Hwang
    Apr 27, 2005
  4. Replies:
    0
    Views:
    85
  5. Replies:
    1
    Views:
    119
Loading...

Share This Page