Ubuntu and apt-get

23 views
Skip to first unread message

Christian Jensen

unread,
Dec 10, 2008, 3:47:37 AM12/10/08
to Liverpie Support
Are there any plans to create a source for apt-get?

I would love it!

Thanks!
Christian

Alexandru Deva

unread,
Dec 10, 2008, 9:27:07 AM12/10/08
to liverpie...@googlegroups.com
That's an interesting idea, I hadn't thought of it. But I think I should.

Christian Jensen

unread,
Dec 10, 2008, 11:36:39 AM12/10/08
to liverpie...@googlegroups.com
I think launchpad.net would be a good idea...

Check out how Freeswitch does their Ubuntu install:


I am having issues getting all the dependencies (gems) for Liverpie.

I have a fresh VM of Ubunu 8.04 after a dist-upgrade and did a apt-get install ruby which installed 1.8

I then tried to run liverpie only to have forgotten about the eventmachine gem, and tried to install it with little success.

I will send you the actual console output when I get to the office.

How is the erlang project? :)

Christian

Christian Jensen

unread,
Dec 10, 2008, 12:10:25 PM12/10/08
to liverpie...@googlegroups.com
here is my microbattle... I am certain that I can get past this issue, but thought I would ask for help as well as potentially educate you on issues. I think the bad part is at the bold stuff below.

christian@dev-freeswitch:~$ unzip liverpie-0.3.zip
Archive:  liverpie-0.3.zip
   creating: liverpie/
   creating: liverpie/bin/
  inflating: liverpie/bin/liverpie
   creating: liverpie/config/
  inflating: liverpie/config/liverpie.yml
   creating: liverpie/doc/
  inflating: liverpie/doc/CHANGELOG
  inflating: liverpie/doc/README
   creating: liverpie/lib/
  inflating: liverpie/lib/liverpie_client.rb
  inflating: liverpie/lib/liverpie_server.rb
  inflating: liverpie/lib/script_base.rb
   creating: liverpie/log/
christian@dev-freeswitch:~$ ls -l
total 36012
drwxr-xr-x 7 christian christian     4096 2008-07-22 13:43 liverpie
-rw-r--r-- 1 christian christian    12262 2008-11-14 00:15 liverpie-0.3.zip
-r--r--r-- 1 christian christian 36811366 2008-12-10 00:24 VMwareTools-3.5.0-123629.tar.gz
drwxr-xr-x 7 christian christian     4096 2008-10-15 20:10 vmware-tools-distrib
christian@dev-freeswitch:~$ cd liverpie/
christian@dev-freeswitch:~/liverpie$ ls -l
total 20
drwxr-xr-x 2 christian christian 4096 2008-07-22 04:59 bin
drwxr-xr-x 2 christian christian 4096 2008-07-22 04:59 config
drwxr-xr-x 2 christian christian 4096 2008-09-25 03:26 doc
drwxr-xr-x 2 christian christian 4096 2008-07-22 04:59 lib
drwxr-xr-x 2 christian christian 4096 2008-07-22 04:59 log
christian@dev-freeswitch:~/liverpie$ bin/liverpie -h
./lib/script_base.rb:4:in `require': no such file to load -- rubygems (LoadError)
        from ./lib/script_base.rb:4
        from bin/liverpie:4:in `require'
        from bin/liverpie:4
christian@dev-freeswitch:~/liverpie$ sudo apt-get install rubygems
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  irb1.8 libgems-ruby1.8 libopenssl-ruby1.8 libreadline-ruby1.8 rdoc1.8
Suggested packages:
  graphviz ruby1.8-dev
The following NEW packages will be installed:
  irb1.8 libgems-ruby1.8 libopenssl-ruby1.8 libreadline-ruby1.8 rdoc1.8 rubygems
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 1016kB of archives.
After this operation, 5689kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com hardy-updates/universe libreadline-ruby1.8 1.8.6.111-2ubuntu1.2 [10.5kB]
Get:2 http://us.archive.ubuntu.com hardy-updates/universe irb1.8 1.8.6.111-2ubuntu1.2 [74.1kB]
Get:3 http://us.archive.ubuntu.com hardy-updates/universe libopenssl-ruby1.8 1.8.6.111-2ubuntu1.2 [108kB]
Get:4 http://us.archive.ubuntu.com hardy-updates/universe rdoc1.8 1.8.6.111-2ubuntu1.2 [125kB]
Get:5 http://us.archive.ubuntu.com hardy-backports/universe libgems-ruby1.8 1.1.1-1~hardy1 [643kB]
Get:6 http://us.archive.ubuntu.com hardy-backports/universe rubygems 1.1.1-1~hardy1 [56.1kB]
Fetched 1016kB in 7s (145kB/s)
Selecting previously deselected package libreadline-ruby1.8.
(Reading database ... 37694 files and directories currently installed.)
Unpacking libreadline-ruby1.8 (from .../libreadline-ruby1.8_1.8.6.111-2ubuntu1.2_i386.deb) ...
Selecting previously deselected package irb1.8.
Unpacking irb1.8 (from .../irb1.8_1.8.6.111-2ubuntu1.2_all.deb) ...
Selecting previously deselected package libopenssl-ruby1.8.
Unpacking libopenssl-ruby1.8 (from .../libopenssl-ruby1.8_1.8.6.111-2ubuntu1.2_i386.deb) ...
Selecting previously deselected package rdoc1.8.
Unpacking rdoc1.8 (from .../rdoc1.8_1.8.6.111-2ubuntu1.2_all.deb) ...
Selecting previously deselected package libgems-ruby1.8.
Unpacking libgems-ruby1.8 (from .../libgems-ruby1.8_1.1.1-1~hardy1_all.deb) ...
Selecting previously deselected package rubygems.
Unpacking rubygems (from .../rubygems_1.1.1-1~hardy1_all.deb) ...
Setting up libreadline-ruby1.8 (1.8.6.111-2ubuntu1.2) ...
Setting up irb1.8 (1.8.6.111-2ubuntu1.2) ...

Setting up libopenssl-ruby1.8 (1.8.6.111-2ubuntu1.2) ...
Setting up rdoc1.8 (1.8.6.111-2ubuntu1.2) ...
Setting up libgems-ruby1.8 (1.1.1-1~hardy1) ...

Setting up rubygems (1.1.1-1~hardy1) ...
christian@dev-freeswitch:~/liverpie$ gem install eventmachine
Bulk updating Gem source index for: http://gems.rubyforge.org/
ERROR:  While executing gem ... (Errno::ENOENT)
    No such file or directory - /var/lib/gems/1.8/cache/eventmachine-0.12.2.gem
christian@dev-freeswitch:~/liverpie$ gem

  RubyGems is a sophisticated package manager for Ruby.  This is a
  basic help message containing pointers to more information.

    Usage:
      gem -h/--help
      gem -v/--version
      gem command [arguments...] [options...]

    Examples:
      gem install rake
      gem list --local
      gem build package.gemspec
      gem help install

    Further help:
      gem help commands            list all 'gem' commands
      gem help examples            show some examples of usage
      gem help platforms           show information about platforms
      gem help <COMMAND>           show help on COMMAND
                                     (e.g. 'gem help install')
    Further information:
      http://rubygems.rubyforge.org
christian@dev-freeswitch:~/liverpie$ gem help commnands
WARNING:  Unknown command commnands. Try gem help commands
christian@dev-freeswitch:~/liverpie$ gem help

  RubyGems is a sophisticated package manager for Ruby.  This is a
  basic help message containing pointers to more information.

    Usage:
      gem -h/--help
      gem -v/--version
      gem command [arguments...] [options...]

    Examples:
      gem install rake
      gem list --local
      gem build package.gemspec
      gem help install

    Further help:
      gem help commands            list all 'gem' commands
      gem help examples            show some examples of usage
      gem help platforms           show information about platforms
      gem help <COMMAND>           show help on COMMAND
                                     (e.g. 'gem help install')
    Further information:
      http://rubygems.rubyforge.org
christian@dev-freeswitch:~/liverpie$ gem help commands
GEM commands are:

    build             Build a gem from a gemspec
    cert              Manage RubyGems certificates and signing settings
    check             Check installed gems
    cleanup           Clean up old versions of installed gems in the local
                      repository
    contents          Display the contents of the installed gems
    dependency        Show the dependencies of an installed gem
    environment       Display information about the RubyGems environment
    fetch             Download a gem and place it in the current directory
    generate_index    Generates the index files for a gem server directory
    help              Provide help on the 'gem' command
    install           Install a gem into the local repository
    list              Display gems whose name starts with STRING
    lock              Generate a lockdown list of gems
    mirror            Mirror a gem repository
    outdated          Display all gems that need updates
    pristine          Restores installed gems to pristine condition from files
                      located in the gem cache
    query             Query gem information in local or remote repositories
    rdoc              Generates RDoc for pre-installed gems
    search            Display all gems whose name contains STRING
    server            Documentation and gem repository HTTP server
    sources           Manage the sources and cache file RubyGems uses to search
                      for gems
    specification     Display gem specification (in yaml)
    uninstall         Uninstall gems from the local repository
    unpack            Unpack an installed gem to the current directory
    update            Update the named gems (or all installed gems) in the local
                      repository
    which             Find the location of a library

For help on a particular command, use 'gem help COMMAND'.

Commands may be abbreviated, so long as they are unambiguous.
e.g. 'gem i rake' is short for 'gem install rake'.
christian@dev-freeswitch:~/liverpie$ sudo gem update
Updating installed gems
Bulk updating Gem source index for: http://gems.rubyforge.org/

Nothing to update
christian@dev-freeswitch:~/liverpie$
christian@dev-freeswitch:~/liverpie$ sudo gem install eventmachine
Bulk updating Gem source index for: http://gems.rubyforge.org/
Building native extensions.  This could take a while...
ERROR:  Error installing eventmachine:
        ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb install eventmachine
extconf.rb:21:in `require': no such file to load -- mkmf (LoadError)
        from extconf.rb:21


Gem files will remain installed in /var/lib/gems/1.8/gems/eventmachine-0.12.2 for inspection.
Results logged to /var/lib/gems/1.8/gems/eventmachine-0.12.2/ext/gem_make.out
christian@dev-freeswitch:~/liverpie$ sudo bin/liverpie -h
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- eventmachine (LoadError)
        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from ./lib/liverpie_server.rb:1
        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from bin/liverpie:5
christian@dev-freeswitch:~/liverpie$ sudo gem install mkmf
Bulk updating Gem source index for: http://gems.rubyforge.org/
ERROR:  could not find mkmf locally or in a repository
christian@dev-freeswitch:~/liverpie$



Christian Jensen

unread,
Dec 10, 2008, 2:15:28 PM12/10/08
to liverpie...@googlegroups.com

I fixed it by installing the ruby1.8-dev package.

 

Should I be using 1.9?

 

Christian

Alexandru Deva

unread,
Dec 10, 2008, 4:18:31 PM12/10/08
to liverpie...@googlegroups.com
I never tried Liverpie with ruby 1.9. The eventmachine gem could be dependent on 1.8.

Christian Jensen

unread,
Dec 10, 2008, 5:12:19 PM12/10/08
to liverpie...@googlegroups.com
Apparently 1.9 is 5x faster than 1.8


From: Alexandru Deva <al...@indigenious.ro>
Sent: December 10, 2008 1:18 PM

To: liverpie...@googlegroups.com
Subject: [Liverpie] Re: Ubuntu and apt-get

I never tried Liverpie with ruby 1.9. The eventmachine gem could be dependent on 1.8.

On Wed, Dec 10, 2008 at 2:15 PM, Christian Jensen <chri...@verbx.com> wrote:

I fixed it by installing the ruby1.8-dev package.

 

Should I be using 1.9?

 

Christian

 

From: liverpie...@googlegroups.com [mailto:liverpie...@googlegroups.com] On Behalf Of Christian Jensen
Sent: Wednesday, December 10, 2008 9:10 AM
To: liverpie...@googlegroups.com
Subject: [Liverpie] Re: Ubuntu and apt-get

 

here is my microbattle... I am certain that I can get past this issu



[The entire original message is not included]
Reply all
Reply to author
Forward
0 new messages