21 April 2014

The Ruby Reflector

Topic

MacPort

  Source Favicon
By Hongli Lai of Phusion Corporate Blog almost 2 years ago.
Email

If you've installed a gem bundle on OS X Lion the past few weeks then you may have seen the dreaded "[BUG] Segmentation fault" error, where Ruby sees to crash in the connect C function in http.rb . Upgrading to the latest Ruby 1.9.3 version (p194) doesn't seem to help. Luckily someone has found a solution for this problem.

It turns out the segmentation fault is caused by an incompatibility between MacPort's OpenSSL and RVM. MacPorts installs …

blog.phusion.nl Read
  Source Favicon
By kencollins of MetaSkills.net over 3 years ago.
Email

A few weeks ago I started looking into the Ruby Version Manager ( RVM) project to help me build a better testing setup for both my day job and the ActiveRecord SQL Server Adapter . In previous article I covered details of how to get a development stack up and running for Rails with SQL Server using MacPort's. This article will cover some new additions to that goal, but first and primarily, I wanted to talk about the wonders of RVM and it's new ruby API.

metaskills.net Read
  Source Favicon
By kencollins of MetaSkills.net almost 4 years ago.
Email

…did not even configure/make/install the utf8 version either! Honestly - I spent all day learning the MacPort's Portfile syntax and tested this. Installing that variant just breaks with an error like LoadError: dlsym( 0x1010cd3b0, Init odbc): symbol not found .

So, even though my updated Portfile above now fixes that issue and supports actually building a utf8 version of RubyODBC, YOU DO NOT NEED IT! In fact the entire SQL Server stack is tested with the plain non-utf8 …

metaskills.net Read
  Source Favicon
On Eddorre.com over 4 years ago.
Email

…commands from the Terminal without having to prefix it with the location path of the MacPort binaries. If you want to make sure, you can run this command from the Terminal: cat ~/.profile

You should see something similar to this: # MacPorts Installer addition on 2009-10-08_at_19:43:18: adding an appropriate PATH variable for use with MacPorts. export PATH=/opt/local/bin:/opt/local/sbin:/usr/local/bin:$PATH # Finished adapting your PATH environment variable for use with MacPorts.

If you …

eddorre.com Read
  Source Favicon
By Brian Racer of over 4 years ago.
Email

…environment"

Long story short, I was using MacPort's ruby/gem packages, but a binary snapshot of MacVim that I downloaded off their website was using the libraries that come with OSX. There is not really a clean workaround for that, but luckily it turns out macport's macvim builds the latest snapshot. So all you need to is to install macvim with ruby support:

sudo port install macvim +ruby

And you will get nice auto-completion:

jetpackweb.com Read
  Source Favicon
By kencollins of MetaSkills.net over 4 years ago.
Email

…configure your profile. All I did this time around was add the REE path extensions after my MacPort extensions in my ZSH kit. So my path file now looks this below. If I ever want to just go back to my normal 1.8/1.9 toggle in /opt/local/bin , I just comment out the REE path extensions, source my profile and I'm back to my MacPort basics. # MacPorts path=(/opt/local/bin /opt/local/sbin /opt/local/apache2/bin ~/.zshkit/bin $path) manpath=(/opt/local/share/man $manpath) infopath=(/opt/local/share/info …

metaskills.net Read
  Source Favicon
By kencollins of MetaSkills.net over 4 years ago.
Email

FreeTDS configuration to it like so. No personal configuration options here, this just links up the MacPort installed unixODBC and FreeTDS. [FreeTDS] Decscription = FreeTDS driver for SQLServer Driver = /opt/local/lib/ libtdsodbc.so Setup = /opt/local/lib/ libtdsodbc.so FileUsage = 1

So the last thing is to create some DSNs in your /opt/local/etc/odbc.ini file. It is very likely that you could edit this file often. Perhaps you do a lot of development and DB server changes. My personal …

metaskills.net Read