# Compile from source - how difficult?

**URL:** https://rubytalk.org/t/compile-from-source-how-difficult/47790
**Category:** ruby-talk
**Created:** [18 July 2008 22:34 UTC](https://rubytalk.org/t/compile-from-source-how-difficult/47790 "2008-07-18T22:34:31Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Tom\_Cloyd2](https://avatars.discourse-cdn.com/v4/letter/t/6a8cbe/32.png) [@Tom\_Cloyd2](https://rubytalk.org/u/Tom_Cloyd2)
#### Post date: [18 July 2008 22:34 UTC](https://rubytalk.org/t/compile-from-source-how-difficult/47790/1 "2008-07-18T22:34:31Z")

</div>

On a fresh install of Kubuntu Linux (ver. 8.04.01), I'm not having good day trying to get ruby and rubygems back and functional.

The Ruby-lang. website recommends using the package manager to install ruby, so I did that.

Then I installed rubygems 1.8 from the rubyforge tarball. I then installed several gems successfully, but the one I really had to have - webby - wouldn't install. I've not have this problem before, so it doesn't seem likely that it's a webby problem.

I didn't know how to uninstall the rubygems 1.8 install. I simply went to the adept package manager and installed rubygems from that.

But webby still won't install:

\> $ sudo gem install webby  
\>  
\> [sudo] password for tomc:  
\> Building native extensions. This could take a while...  
\> ERROR: Error installing webby:  
\> ERROR: Failed to build gem native extension.  
\>  
\> /usr/bin/ruby1.8 extconf.rb install webby  
\> checking for main() in -lpthread... no  
\> \*\*\* extconf.rb failed \*\*\*  
\> Could not create Makefile due to some reason, probably lack of  
\> necessary libraries and/or headers. Check the mkmf.log file for more  
\> details. You may need configuration options.  
\>  
\> Provided configuration options:  
\> --with-opt-dir  
\> --without-opt-dir  
\> --with-opt-include  
\> --without-opt-include=${opt-dir}/include  
\> --with-opt-lib  
\> --without-opt-lib=${opt-dir}/lib  
\> --with-make-prog  
\> --without-make-prog  
\> --srcdir=.  
\> --curdir  
\> --ruby=/usr/bin/ruby1.8  
\> --with-pthreadlib  
\> --without-pthreadlib  
\>  
\> Gem files will remain installed in  
\> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.0 for inspection.  
\> Results logged to  
\> /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.0/ext/gem\_make.out  
\>

On the webby list, it was suggested that I install ruby from source.

Is that really the best idea? I developed modest pascal programs from my own source code, years ago, but I have no idea how to compile ruby for what I presume is C source, on Kubuntu.

What should I do? If going from source is the best idea, can anyone point me to a resource which will bring me up to speed on how to do this? (I'm looking for this resource, and may find it, but suggestions are certainly welcome.)

Thanks!

t.

> **···**
>
> --  
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
> Tom Cloyd,  
> Bellingham, Washington, U.S.A: (360) 920-1226  
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---

<div class="post-metadata">

### Author: ![Martin\_DeMello](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@Martin\_DeMello](https://rubytalk.org/u/Martin_DeMello)
#### Post date: [18 July 2008 22:46 UTC](https://rubytalk.org/t/compile-from-source-how-difficult/47790/2 "2008-07-18T22:46:25Z")

</div>

I got webby installed under Ubuntu 8.04 without having to compile  
anything from source. I did face some other issues, though - see  
[http://markmail.org/message/apqjib2ftfr5dukk](http://markmail.org/message/apqjib2ftfr5dukk)

Since your immediate problem appears to be pthreads-related, see if  
you have the following installed:

libpthread-stubs0  
libpthread-stubs0-dev

martin

> **···**
>
> On Fri, Jul 18, 2008 at 3:34 PM, Tom Cloyd \<tomcloyd@comcast.net\> wrote:
> 
> > On a fresh install of Kubuntu Linux (ver. 8.04.01), I'm not having good day  
> > trying to get ruby and rubygems back and functional.

---

<div class="post-metadata">

### Author: ![Tom\_Cloyd2](https://avatars.discourse-cdn.com/v4/letter/t/6a8cbe/32.png) [@Tom\_Cloyd2](https://rubytalk.org/u/Tom_Cloyd2)
#### Post date: [18 July 2008 23:17 UTC](https://rubytalk.org/t/compile-from-source-how-difficult/47790/3 "2008-07-18T23:17:02Z")

</div>

Martin DeMello wrote:

> > On a fresh install of Kubuntu Linux (ver. 8.04.01), I'm not having good day  
> > trying to get ruby and rubygems back and functional.
> 
> I got webby installed under Ubuntu 8.04 without having to compile  
> anything from source. I did face some other issues, though - see  
> [http://markmail.org/message/apqjib2ftfr5dukk](http://markmail.org/message/apqjib2ftfr5dukk)
> 
> Since your immediate problem appears to be pthreads-related, see if  
> you have the following installed:
> 
> libpthread-stubs0  
> libpthread-stubs0-dev
> 
> martin

Here's what's installed, apparently -

$ locate libpthread  
/lib/libpthread-2.7.so  
/lib/libpthread.so.0  
/lib/tls/i686/cmov/libpthread-2.7.so  
/lib/tls/i686/cmov/libpthread.so.0

So, I went to Adept and found the two things (packages? modules? I haven't a clue) an installed them.

Then...

$ sudo gem install webby  
[sudo] password for tomc:  
Building native extensions. This could take a while...  
ERROR: Error installing webby:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb install webby  
checking for main() in -lpthread... no  
\*\*\* extconf.rb failed \*\*\*  
Could not create Makefile due to some reason, probably lack of  
necessary libraries and/or headers. Check the mkmf.log file for more  
details. You may need configuration options.

Provided configuration options:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-dir  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-dir  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-include  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-include=${opt-dir}/include  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-lib  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-lib=${opt-dir}/lib  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-make-prog  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-make-prog  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--srcdir=.  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--curdir  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--ruby=/usr/bin/ruby1.8  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-pthreadlib  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-pthreadlib

Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.0 for inspection.  
Results logged to /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.0/ext/gem\_make.out

This was what was happening before.

Checking the mkmf.log file mentioned above, I find:

have\_library: checking for main() in -lpthread... -------------------- no

"cc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -fno-strict-aliasing -g -g -O2 -fPIC conftest.c -L"." -L"/usr/lib" -L. -Wl,-Bsymbolic-functions -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -lpthread -ldl -lcrypt -lm -lc"  
/usr/bin/ld: crt1.o: No such file: No such file or directory  
collect2: ld returned 1 exit status  
checked program was:  
/\* begin \*/  
1: /\*top\*/  
2: int main() { return 0; }  
3: int t() { void ((\*volatile p)()); p = (void ((\*)()))main; return 0; }  
/\* end \*/

"cc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -fno-strict-aliasing -g -g -O2 -fPIC conftest.c -L"." -L"/usr/lib" -L. -Wl,-Bsymbolic-functions -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -lpthread -ldl -lcrypt -lm -lc"  
/usr/bin/ld: crt1.o: No such file: No such file or directory  
collect2: ld returned 1 exit status  
checked program was:  
/\* begin \*/  
1: /\*top\*/  
2: int main() { return 0; }  
3: int t() { main(); return 0; }  
/\* end \*/

> **···**
>
> > On Fri, Jul 18, 2008 at 3:34 PM, Tom Cloyd \<tomcloyd@comcast.net\> wrote:
> 
> --------------------
> 
> Then, checking /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.0/ext/gem\_make.out (mentioned in the webby install effort console output, above), I find simply a repetition of the error output printed to the console as a result of the webby install attempt.
> 
> Sadly, I cannot make sense of any of this, so I'm very open to suggestions at this point.
> 
> Thanks!
> 
> t.  
> --  
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
> Tom Cloyd  
> Bellingham, Washington, U.S.A: (360) 920-1226  
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---

<div class="post-metadata">

### Author: ![Doug1](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@Doug1](https://rubytalk.org/u/Doug1)
#### Post date: [19 July 2008 02:02 UTC](https://rubytalk.org/t/compile-from-source-how-difficult/47790/4 "2008-07-19T02:02:38Z")

</div>

Tom Cloyd wrote:

> Martin DeMello wrote:
> 
> > > On a fresh install of Kubuntu Linux (ver. 8.04.01), I'm not having good day  
> > > trying to get ruby and rubygems back and functional.
> > 
> > I got webby installed under Ubuntu 8.04 without having to compile  
> > anything from source. I did face some other issues, though - see  
> > [http://markmail.org/message/apqjib2ftfr5dukk](http://markmail.org/message/apqjib2ftfr5dukk)
> > 
> > Since your immediate problem appears to be pthreads-related, see if  
> > you have the following installed:
> > 
> > libpthread-stubs0  
> > libpthread-stubs0-dev
> > 
> > martin
> 
> Here's what's installed, apparently -
> 
> $ locate libpthread  
> /lib/libpthread-2.7.so  
> /lib/libpthread.so.0  
> /lib/tls/i686/cmov/libpthread-2.7.so  
> /lib/tls/i686/cmov/libpthread.so.0
> 
> So, I went to Adept and found the two things (packages? modules? I haven't a clue) an installed them.
> 
> Then...
> 
> $ sudo gem install webby  
> [sudo] password for tomc:  
> Building native extensions. This could take a while...  
> ERROR: Error installing webby:  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ERROR: Failed to build gem native extension.
> 
> /usr/bin/ruby1.8 extconf.rb install webby  
> checking for main() in -lpthread... no  
> \*\*\* extconf.rb failed \*\*\*  
> Could not create Makefile due to some reason, probably lack of  
> necessary libraries and/or headers. Check the mkmf.log file for more  
> details. You may need configuration options.
> 
> Provided configuration options:  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-dir  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-dir  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-include  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-include=${opt-dir}/include  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-lib  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-lib=${opt-dir}/lib  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-make-prog  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-make-prog  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--srcdir=.  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--curdir  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--ruby=/usr/bin/ruby1.8  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-pthreadlib  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-pthreadlib
> 
> Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.0 for inspection.  
> Results logged to /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.0/ext/gem\_make.out
> 
> This was what was happening before.
> 
> Checking the mkmf.log file mentioned above, I find:
> 
> have\_library: checking for main() in -lpthread... -------------------- no
> 
> "cc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -fno-strict-aliasing -g -g -O2 -fPIC conftest.c -L"." -L"/usr/lib" -L. -Wl,-Bsymbolic-functions -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -lpthread -ldl -lcrypt -lm -lc"  
> /usr/bin/ld: crt1.o: No such file: No such file or directory  
> collect2: ld returned 1 exit status  
> checked program was:  
> /\* begin \*/  
> 1: /\*top\*/  
> 2: int main() { return 0; }  
> 3: int t() { void ((\*volatile p)()); p = (void ((\*)()))main; return 0; }  
> /\* end \*/
> 
> "cc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -fno-strict-aliasing -g -g -O2 -fPIC conftest.c -L"." -L"/usr/lib" -L. -Wl,-Bsymbolic-functions -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -lpthread -ldl -lcrypt -lm -lc"  
> /usr/bin/ld: crt1.o: No such file: No such file or directory  
> collect2: ld returned 1 exit status  
> checked program was:  
> /\* begin \*/  
> 1: /\*top\*/  
> 2: int main() { return 0; }  
> 3: int t() { main(); return 0; }  
> /\* end \*/
> 
> --------------------
> 
> Then, checking /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.0/ext/gem\_make.out (mentioned in the webby install effort console output, above), I find simply a repetition of the error output printed to the console as a result of the webby install attempt.
> 
> Sadly, I cannot make sense of any of this, so I'm very open to suggestions at this point.
> 
> Thanks!
> 
> t.

On ubuntu, to compile anything, you should install the build-essential package:

$ sudo apt-get install build-essential

You may also have to install the ruby1.8-dev package as well:

$ sudo apt-get install ruby1.8-dev

Good luck. When compiling gems, you usually will need dev version of any library that the gem has a dependency on.

-Doug Seifert

> **···**
>
> > > On Fri, Jul 18, 2008 at 3:34 PM, Tom Cloyd \<tomcloyd@comcast.net\> wrote:

---

<div class="post-metadata">

### Author: ![Tom\_Cloyd2](https://avatars.discourse-cdn.com/v4/letter/t/6a8cbe/32.png) [@Tom\_Cloyd2](https://rubytalk.org/u/Tom_Cloyd2)
#### Post date: [19 July 2008 02:13 UTC](https://rubytalk.org/t/compile-from-source-how-difficult/47790/5 "2008-07-19T02:13:42Z")

</div>

Douglas A. Seifert wrote:

> Tom Cloyd wrote:
> 
> > Martin DeMello wrote:
> > 
> > > > On a fresh install of Kubuntu Linux (ver. 8.04.01), I'm not having good day  
> > > > trying to get ruby and rubygems back and functional.
> > > 
> > > I got webby installed under Ubuntu 8.04 without having to compile  
> > > anything from source. I did face some other issues, though - see  
> > > [http://markmail.org/message/apqjib2ftfr5dukk](http://markmail.org/message/apqjib2ftfr5dukk)
> > > 
> > > Since your immediate problem appears to be pthreads-related, see if  
> > > you have the following installed:
> > > 
> > > libpthread-stubs0  
> > > libpthread-stubs0-dev
> > > 
> > > martin
> > 
> > Here's what's installed, apparently -
> > 
> > $ locate libpthread  
> > /lib/libpthread-2.7.so  
> > /lib/libpthread.so.0  
> > /lib/tls/i686/cmov/libpthread-2.7.so  
> > /lib/tls/i686/cmov/libpthread.so.0
> > 
> > So, I went to Adept and found the two things (packages? modules? I haven't a clue) an installed them.
> > 
> > Then...
> > 
> > $ sudo gem install webby  
> > [sudo] password for tomc:  
> > Building native extensions. This could take a while...  
> > ERROR: Error installing webby:  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ERROR: Failed to build gem native extension.
> > 
> > /usr/bin/ruby1.8 extconf.rb install webby  
> > checking for main() in -lpthread... no  
> > \*\*\* extconf.rb failed \*\*\*  
> > Could not create Makefile due to some reason, probably lack of  
> > necessary libraries and/or headers. Check the mkmf.log file for more  
> > details. You may need configuration options.
> > 
> > Provided configuration options:  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-dir  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-dir  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-include  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-include=${opt-dir}/include  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-lib  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-lib=${opt-dir}/lib  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-make-prog  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-make-prog  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--srcdir=.  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--curdir  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--ruby=/usr/bin/ruby1.8  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-pthreadlib  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-pthreadlib
> > 
> > Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.0 for inspection.  
> > Results logged to /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.0/ext/gem\_make.out
> > 
> > This was what was happening before.
> > 
> > Checking the mkmf.log file mentioned above, I find:
> > 
> > have\_library: checking for main() in -lpthread... -------------------- no
> > 
> > "cc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -fno-strict-aliasing -g -g -O2 -fPIC conftest.c -L"." -L"/usr/lib" -L. -Wl,-Bsymbolic-functions -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -lpthread -ldl -lcrypt -lm -lc"  
> > /usr/bin/ld: crt1.o: No such file: No such file or directory  
> > collect2: ld returned 1 exit status  
> > checked program was:  
> > /\* begin \*/  
> > 1: /\*top\*/  
> > 2: int main() { return 0; }  
> > 3: int t() { void ((\*volatile p)()); p = (void ((\*)()))main; return 0; }  
> > /\* end \*/
> > 
> > "cc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I. -fno-strict-aliasing -g -g -O2 -fPIC conftest.c -L"." -L"/usr/lib" -L. -Wl,-Bsymbolic-functions -rdynamic -Wl,-export-dynamic -lruby1.8-static -lpthread -lpthread -ldl -lcrypt -lm -lc"  
> > /usr/bin/ld: crt1.o: No such file: No such file or directory  
> > collect2: ld returned 1 exit status  
> > checked program was:  
> > /\* begin \*/  
> > 1: /\*top\*/  
> > 2: int main() { return 0; }  
> > 3: int t() { main(); return 0; }  
> > /\* end \*/
> > 
> > --------------------
> > 
> > Then, checking /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.0/ext/gem\_make.out (mentioned in the webby install effort console output, above), I find simply a repetition of the error output printed to the console as a result of the webby install attempt.
> > 
> > Sadly, I cannot make sense of any of this, so I'm very open to suggestions at this point.
> > 
> > Thanks!
> > 
> > t.
> 
> On ubuntu, to compile anything, you should install the build-essential package:
> 
> $ sudo apt-get install build-essential
> 
> You may also have to install the ruby1.8-dev package as well:
> 
> $ sudo apt-get install ruby1.8-dev
> 
> Good luck. When compiling gems, you usually will need dev version of any library that the gem has a dependency on.
> 
> -Doug Seifert

Thanks, Doug. I'll probably give this a try. Since what I have now isn't working too well. New adventures in Ruby/Kubuntu, for the ever hopeful, and increasingly desperate! ~t.

> **···**
>
> > > > On Fri, Jul 18, 2008 at 3:34 PM, Tom Cloyd \<tomcloyd@comcast.net\> wrote:
> 
> --  
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
> Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist  
> Bellingham, Washington, U.S.A: (360) 920-1226  
> \<\< tc@tomcloyd.com \>\> (email)  
> \<\< TomCloyd.com \>\> (website & psychotherapy weblog)  
> \<\< sleightmind.wordpress.com \>\> (mental health issues weblog)  
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---

<div class="post-metadata">

### Author: ![Kyle\_Schmitt](https://avatars.discourse-cdn.com/v4/letter/k/9e8a1a/32.png) [@Kyle\_Schmitt](https://rubytalk.org/u/Kyle_Schmitt)
#### Post date: [19 July 2008 22:31 UTC](https://rubytalk.org/t/compile-from-source-how-difficult/47790/6 "2008-07-19T22:31:33Z")

</div>

Tom,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I've never compiled ruby, or much of anything, for ubuntu  
specifically, but I've had to build modern ruby package for work since  
some of our boxes run (very very very) old versions of linux, and I've  
had to build ruby for my irix box since there are no stock packages of  
it. It's not the \_most\_ straight forward build, but it's still pretty  
easy. Take it slow, and read that little README in the tarball, it  
tells you everything.

You've got very little to worry about!

--Kyle

> **···**
>
> On Fri, Jul 18, 2008 at 9:13 PM, Tom Cloyd \<tomcloyd@comcast.net\> wrote:
> 
> > Thanks, Doug. I'll probably give this a try. Since what I have now isn't  
> > working too well. New adventures in Ruby/Kubuntu, for the ever hopeful, and  
> > increasingly desperate! ~t.

---

<div class="post-metadata">

### Author: ![Marc\_Heiler](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@Marc\_Heiler](https://rubytalk.org/u/Marc_Heiler)
#### Post date: [19 July 2008 23:32 UTC](https://rubytalk.org/t/compile-from-source-how-difficult/47790/7 "2008-07-19T23:32:40Z")

</div>

> It's not the \_most\_ straight forward build, but it's still  
> pretty easy.

On a belated note I still wonder if anyone has managed to  
compily ruby statically and made it work. When I dig into which  
extensions I want to add, it is openssl or something else that  
seems to "act up" ☹

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

### Author: ![Tom\_Cloyd2](https://avatars.discourse-cdn.com/v4/letter/t/6a8cbe/32.png) [@Tom\_Cloyd2](https://rubytalk.org/u/Tom_Cloyd2)
#### Post date: [20 July 2008 00:53 UTC](https://rubytalk.org/t/compile-from-source-how-difficult/47790/8 "2008-07-20T00:53:54Z")

</div>

Marc Heiler wrote:

> > It's not the \_most\_ straight forward build, but it's still pretty easy.
> 
> On a belated note I still wonder if anyone has managed to  
> compily ruby statically and made it work. When I dig into which  
> extensions I want to add, it is openssl or something else that  
> seems to "act up" ☹

I'm happy to report that the help of Michael Guterl, of the Webby list, I've just successfully compiled Ruby from source (with added libraries/extensions/ or whatever they were: zlib1g-dev / libreadline5-dev / openssl) installed it, then installed Rubygems (which had been giving me real headaches), and then webby.

Haven't used it yet, but this is the farthest I've gotten on this in 4 days. The Kubuntu packages weren't installing well for me. This solved the problem (so far).

Now I'm off to go study what I just did. Couldn't have done it without Michael's patient and expert coaching. I have the complete list of commands required if anyone wants them.

Tom

> **···**
>
> --  
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
> Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist  
> Bellingham, Washington, U.S.A: (360) 920-1226  
> \<\< tc@tomcloyd.com \>\> (email)  
> \<\< TomCloyd.com \>\> (website & psychotherapy weblog)  
> \<\< sleightmind.wordpress.com \>\> (mental health issues weblog)  
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
