RubyGems installation on redhat fails! (proxy problem?)

Discussion in 'Ruby' started by Lloyd Kalicki, Apr 16, 2007.

  1. Hi all

    Ok I have searched the forums and still cant come up with anything.

    When running the command:> ruby setup.rb

    I get the output below.

    I have set the http_proxy as well as HTTP_PROXY and ALL_PROXY.

    any ideas?

    THANKS ALOT!
    Lloyd Kalicki


    ****************OUTPUT
    BELOW************************************************
    [root@nirvana rubygems-0.9.2]# ruby setup.rb
    ---> bin
    <--- bin
    ---> lib
    ---> lib/rbconfig
    <--- lib/rbconfig
    ---> lib/rubygems
    <--- lib/rubygems
    <--- lib
    ---> bin
    <--- bin
    ---> lib
    ---> lib/rbconfig
    <--- lib/rbconfig
    ---> 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 gemlock /usr/bin/
    install gemri /usr/bin/
    install gemwhich /usr/bin/
    install index_gem_repository.rb /usr/bin/
    install update_rubygems /usr/bin/
    <--- bin
    ---> lib
    mkdir -p /usr/lib/site_ruby/1.6/
    install gemconfigure.rb /usr/lib/site_ruby/1.6/
    install rubygems.rb /usr/lib/site_ruby/1.6/
    install ubygems.rb /usr/lib/site_ruby/1.6/
    ---> lib/rbconfig
    mkdir -p /usr/lib/site_ruby/1.6/rbconfig
    install datadir.rb /usr/lib/site_ruby/1.6/rbconfig
    <--- lib/rbconfig
    ---> lib/rubygems
    mkdir -p /usr/lib/site_ruby/1.6/rubygems
    install builder.rb /usr/lib/site_ruby/1.6/rubygems
    install cmd_manager.rb /usr/lib/site_ruby/1.6/rubygems
    install command.rb /usr/lib/site_ruby/1.6/rubygems
    install config_file.rb /usr/lib/site_ruby/1.6/rubygems
    install custom_require.rb /usr/lib/site_ruby/1.6/rubygems
    install dependency_list.rb /usr/lib/site_ruby/1.6/rubygems
    install doc_manager.rb /usr/lib/site_ruby/1.6/rubygems
    install format.rb /usr/lib/site_ruby/1.6/rubygems
    install gem_commands.rb /usr/lib/site_ruby/1.6/rubygems
    install gem_open_uri.rb /usr/lib/site_ruby/1.6/rubygems
    install gem_openssl.rb /usr/lib/site_ruby/1.6/rubygems
    install gem_runner.rb /usr/lib/site_ruby/1.6/rubygems
    install installer.rb /usr/lib/site_ruby/1.6/rubygems
    install old_format.rb /usr/lib/site_ruby/1.6/rubygems
    install open-uri.rb /usr/lib/site_ruby/1.6/rubygems
    install package.rb /usr/lib/site_ruby/1.6/rubygems
    install remote_fetcher.rb /usr/lib/site_ruby/1.6/rubygems
    install remote_installer.rb /usr/lib/site_ruby/1.6/rubygems
    install rubygems_version.rb /usr/lib/site_ruby/1.6/rubygems
    install security.rb /usr/lib/site_ruby/1.6/rubygems
    install server.rb /usr/lib/site_ruby/1.6/rubygems
    install source_index.rb /usr/lib/site_ruby/1.6/rubygems
    install source_info_cache.rb /usr/lib/site_ruby/1.6/rubygems
    install source_info_cache_entry.rb /usr/lib/site_ruby/1.6/rubygems
    install specification.rb /usr/lib/site_ruby/1.6/rubygems
    install timer.rb /usr/lib/site_ruby/1.6/rubygems
    install user_interaction.rb /usr/lib/site_ruby/1.6/rubygems
    install validator.rb /usr/lib/site_ruby/1.6/rubygems
    install version.rb /usr/lib/site_ruby/1.6/rubygems
    <--- lib/rubygems
    <--- lib
    /usr/lib/site_ruby/1.6/rubygems/source_index.rb:8:in `require':
    /usr/lib/site_ruby/1.6/rubygems/remote_fetcher.rb:12: syntax error
    (SyntaxError)
    class Gem::RemoteSourceException < Gem::Exception; end
    ^
    /usr/lib/site_ruby/1.6/rubygems/remote_fetcher.rb:18: syntax error
    class Gem::RemoteFetcher
    ^
    /usr/lib/site_ruby/1.6/rubygems/remote_fetcher.rb:26: syntax error
    @fetcher ||= new Gem.configuration[:http_proxy]
    ^
    from /usr/lib/site_ruby/1.6/rubygems/source_index.rb:8
    from /usr/lib/site_ruby/1.6/rubygems.rb:501:in `require'
    from /usr/lib/site_ruby/1.6/rubygems.rb:501
    from /root/rubygems-0.9.2/./post-install.rb:81:in `require'
    from /root/rubygems-0.9.2/./post-install.rb:81:in
    `install_sources'
    from /root/rubygems-0.9.2/./post-install.rb:116:in
    `instance_eval'
    from setup.rb:590:in `instance_eval'
    from setup.rb:590:in `try_run_hook'
    from setup.rb:584:in `run_hook'
    from setup.rb:1322:in `exec_task_traverse'
    from setup.rb:1175:in `exec_install'
    from setup.rb:894:in `exec_install'
    from setup.rb:712:in `invoke'
    from setup.rb:681:in `invoke'
    from setup.rb:1359
    ********************************END
    OUTPUT**********************************


    *******************************ENV***************************************
    [root@nirvana rubygems-0.9.2]# env
    HOSTNAME=nirvana.sic.nwie.net
    SHELL=/bin/bash
    TERM=xterm
    HISTSIZE=1000
    SSH_CLIENT=172.22.65.67 33931 22
    OLDPWD=/root/rubygems-0.9.2/examples
    SSH_TTY=/dev/pts/1
    http_proxy=http://172.22.96.15:80
    USER=root
    LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:eek:r=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
    USERNAME=root
    ALL_PROXY=http://172.22.96.15:80
    PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/ldaptools/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
    MAIL=/var/spool/mail/root
    PWD=/root/rubygems-0.9.2
    INPUTRC=/etc/inputrc
    LANG=en_US.UTF-8
    HOME=/root
    SHLVL=2
    HTTP_PROXY=http://172.22.96.15:80
    BASH_ENV=/root/.bashrc
    LOGNAME=root
    SSH_CONNECTION=172.22.65.67 33931 172.22.65.100 22
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    G_BROKEN_FILENAMES=1
    _=/bin/env
    ********************************END
    ENV**********************************

    --
    Posted via http://www.ruby-forum.com/.
    Lloyd Kalicki, Apr 16, 2007
    #1
    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. U. George
    Replies:
    4
    Views:
    835
    U. George
    Aug 11, 2005
  2. Alexey Verkhovsky
    Replies:
    1
    Views:
    225
    WATANABE Hirofumi
    Oct 5, 2004
  3. Bil Kleb
    Replies:
    5
    Views:
    138
    Booker C. Bense
    Oct 13, 2004
  4. pirveli
    Replies:
    3
    Views:
    282
    Eric Hodel
    Oct 12, 2005
  5. Replies:
    6
    Views:
    244
    Gerardo Santana Gómez Garrido
    Oct 13, 2007
Loading...

Share This Page