From jbe at lenio.dk Thu Jun 21 04:30:25 2007 From: jbe at lenio.dk (=?ISO-8859-1?Q?J=F8rgen_Bang_Erichsen?=) Date: Thu, 21 Jun 2007 10:30:25 +0200 Subject: [Rubyworks-users] Some small documentation issues Message-ID: Hi, I just trying installing RubyWorks on a CentOS 4.5 server using the instructions found at http://rubyworks.rubyforge.org/installation/centos4.html There were two minor issues: 1) the doc says wget http://rubyworks.rubyforge.org/doc/public_key.txt but it should be wget http://rubyworks.rubyforge.org/public_key.txt 2) the doc says wget http://rubyworks.rubyforge.org/doc/ RubyWorks.i386.repo but it should be wget http://rubyworks.rubyforge.org/RubyWorks.i386.repo Otherwise the installation worked out just fine. /J?rgen --- J?rgen Bang Erichsen - jbe at lenio.dk Software developer - 29 72 82 40 From jbe at lenio.dk Thu Jun 21 04:59:50 2007 From: jbe at lenio.dk (=?ISO-8859-1?Q?J=F8rgen_Bang_Erichsen?=) Date: Thu, 21 Jun 2007 10:59:50 +0200 Subject: [Rubyworks-users] Multiple apps on one server Message-ID: Hi, On my new server I want to run multiple Rails apps. Let's say that we have two apps: app1 and app2 and the app1 Mongrels will be running on ports 3002-3005 and the app2 Mongrels will be running on ports 3102-3105. Here is what I would do: 1. Put the apps in /usr/app1 /usr/app2 (using Capistrano of course :-) 2. Create the following files in /etc/rails mongrel_[3102-3105].conf 3. Update the following files in /etc/rails monit.conf haproxy.conf 4. Create the following files in /var/service mongrel_[3102-3105]/run (btw. the documentation in http://rubyworks.rubyforge.org/manual/important-files-and- directories.html refers to /var/services and on the CentOS server I just installed, the directory is /var/service (note the missing 's') Do the steps above sound reasonable and did I miss something? Are the directories specified in step 1 the "right way" to do it? Best regards, J?rgen --- J?rgen Bang Erichsen - jbe at lenio.dk Software developer - 29 72 82 40 From alexey.verkhovsky at gmail.com Fri Jun 22 01:52:51 2007 From: alexey.verkhovsky at gmail.com (Alexey Verkhovsky) Date: Thu, 21 Jun 2007 23:52:51 -0600 Subject: [Rubyworks-users] Fwd: Precompiled gems (cross-posted from rubyonrails-stack@googlegroups.com) Message-ID: <3945c4270706212252vbcda1fbt659ab90f5e0c676c@mail.gmail.com> ---------- Forwarded message ---------- From: Alexey Verkhovsky Date: Jun 21, 2007 11:47 PM Subject: Precompiled gems To: rubyonrails-stack at googlegroups.com Dear all, What should a Rails production stack do with Ruby libraries / gems that have native code and depend on third party packages? E.g., RMagick gem that requires ImageMagick library and has some C bindings code for that library. We are already providing a stack-specific gem repository with precompiled gems in RubyWorks 0.0.2. That's what we do for Mongrel and fastthread. But those gems have all their native code inside, and don't depend on any third-party native libraries. One possible approach is not to use RubyGems at all, but install Ruby libraries straight into /usr/lib/ruby/site_ruby, using setup.rb, packaging it as purely native packages (RPMs or DEBs). The problem with this is as follows: gems that list RMagick as a dependency would want to install RMagick, anyway. We do this with database drivers, because no other gem depends on ruby-mysql or ruby-postgres. Yet another approach: provide a precompiled gem, and an umbrella RPM / DEB that requires third party packages (e.g., ImageMagick for RMagick), then installs the precompiled gem. This poses interesting problems of its own (using two disparate package managers, basically). Yet another approach is to change RubyGems so that they know when a gem depends on some native package and can interact with the native package manager (rpm or apt) to make sure that dependency is installed. I think, this is the best option in the long run, and we will get there eventually, but it will take a non-trivial effort to implement. So for our next release it's just wishful thinking. Thoughts? And another question: Which libraries / gems should be available? My own list (tentatively) is: 1. Database drivers for MySQL, Postgres and Oracle (already there). 2. rmagick 3. ferret 4. hpricot 5. libxml-ruby 6. ruby-debug -- Alex Verkhovsky RubyWorks From dale at lampsons.com Wed Jun 27 14:56:09 2007 From: dale at lampsons.com (Dale Lampson) Date: Wed, 27 Jun 2007 11:56:09 -0700 Subject: [Rubyworks-users] ubuntu workworks package problem Message-ID: <20070627190245.1990652408FF@rubyforge.org> i'm trying to use rubyworks on a newly installed fiesty 7.04 and follow the directions at http://rubyworks.rubyforge.org/installation/ubuntu.html i get the following: root at localhost:/# sudo aptitude install rubyworks Reading package lists... Done Building dependency tree Reading state information ... Done Initializing package states... Done Building tag database... Done Couldn't find any package whose name or description matched "rubyworks" No packages will be installed, upgraded, or removed 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded Need to get 0B of archives. After unpacking..... Any ideas why this is happening? Thanks, Dale From hiugong.gwok at gmail.com Fri Jun 29 12:32:14 2007 From: hiugong.gwok at gmail.com (=?UTF-8?B?5pmT5Yia6YOt?=) Date: Sat, 30 Jun 2007 00:32:14 +0800 Subject: [Rubyworks-users] ubuntu workworks package problem Message-ID: <42e8da960706290932w16021e23vabaf448d4a21d625@mail.gmail.com> Are you running *amd64* version of ubuntu? That might be the problem. i'm trying to use rubyworks on a newly installed fiesty 7.04 and > follow the directions at > http://rubyworks.rubyforge.org/installation/ubuntu.html > > i get the following: > > root at localhost:/# sudo aptitude install rubyworks > Reading package lists... Done > Building dependency tree > Reading state information ... Done > Initializing package states... Done > Building tag database... Done > Couldn't find any package whose name or description matched "rubyworks" > No packages will be installed, upgraded, or removed > 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded > Need to get 0B of archives. After unpacking..... > > Any ideas why this is happening? > > Thanks, > > Dale -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyworks-users/attachments/20070630/76ed3a4c/attachment.html From hiugong.gwok at gmail.com Sat Jun 30 19:47:15 2007 From: hiugong.gwok at gmail.com (=?UTF-8?B?5pmT5Yia6YOt?=) Date: Sun, 1 Jul 2007 07:47:15 +0800 Subject: [Rubyworks-users] ubuntu workworks package problem In-Reply-To: <42e8da960706301645j53f84f65g214eb231d6c828ca@mail.gmail.com> References: <42e8da960706290932w16021e23vabaf448d4a21d625@mail.gmail.com> <3945c4270706290938p496eb35l8a34be8002d10eca@mail.gmail.com> <42e8da960706291047w46000f62p6c172b688666d5e1@mail.gmail.com> <42e8da960706291120m68fa2a39yab83a1694d4b25da@mail.gmail.com> <3945c4270706291251p4ace06b3s728944f61d9f3648@mail.gmail.com> <42e8da960706291311yd78e8ebke9151f460430eaf1@mail.gmail.com> <42e8da960706301645j53f84f65g214eb231d6c828ca@mail.gmail.com> Message-ID: <42e8da960706301647m5748d963w6751596fd20ef43b@mail.gmail.com> Here's some update. I used "dpkg -i -force-architecture" to force rubyworks install, the get the following: dpkg - warning, overriding problem because --force enabled: package architecture (i386) does not match system (amd64) (Reading database ... 127753 files and directories currently installed.) Preparing to replace rubyworks 0.0.2.1 (using rubyworks-0.0.2.1-linux-2.6-intel.deb ) ... Unpacking replacement rubyworks ... dpkg: dependency problems prevent configuration of rubyworks: rubyworks depends on rubygems (>= 0.9.0); however: Package rubygems is not installed. rubyworks depends on haproxy (>= 1.2.17); however: Package haproxy is not installed. rubyworks depends on monit (>= 4.9); however: Package monit is not installed. rubyworks depends on runit (>= 1.6.0); however: Package runit is not installed. dpkg: error processing rubyworks (--install): dependency problems - leaving unconfigured Errors were encountered while processing: rubyworks So I take cared the dependencies and get them installed seperately. "apt-get install" is good enough for rubygems and monit ; haproxy needs "dpkg -i -force-architecture"; runit in the ubuntu repo is 1.5.1, so you need to get a new one from debian: http://packages.debian.org/stable/admin/runit Then finally I can force the installation of rubyworks. But howerver, I can't get the HAProxy running, here's the messages from Monit Service Manager: haproxy Execution failed ---mongrel_3002Does not exist ---mongrel_3003 Does not exist---mongrel_3004 Does not exist--- mongrel_3005 Does not exist I'll try to figure this out when I had more time. On 6/30/07, ??? < hiugong.gwok at gmail.com> wrote: > > Thanks for the quick response. > I can do the trick to get the 32-bit package running, but that will make > the whole "production stack" thing pointless. > I guess I'll just install everything I need seperately for now. > When you guys get it done, I'll give RubyWorks a try, again. > > > On 6/30/07, Alexey Verkhovsky < alexey.verkhovsky at gmail.com> wrote: > > > > On 6/29/07, ??? < hiugong.gwok at gmail.com> wrote: > > > I've dug into the .deb files from > > > http://rubyworks.rubyforge.org/debian/DEBS/, no surprise > > > they are all for i386 architecture. > > > > Yes. I'm working on x86_64 packages for RedHat as we speak. > > Debian/Ubuntu in 64-bit will come soon after that. > > > > It is possible to execute i386 binaries on x86_64 hardware. I don't > > have any 64-bit Debian or Ubuntu instance at hand right now, but on > > RedHat you point yum to an i386-only repository, and it happily > > installs and runs RPMs from that repository. > > > > -- > > Alex Verkhovsky > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubyworks-users/attachments/20070701/4e2ab57b/attachment-0001.html