Eric Martins

Passionate Programmer.

Read this first

How to export your vagrant boxes

Prepare a new machine so the newcomer is able to work as soon as possible, with all the development tools your team already uses.

That’s a boring task.

But Vagrant came to solve that problem, making our life A LOT easier. It provides a portable and reproducible development environment using virtual machines.

You can find tons of tutorial covering all sorts of steps, like installation, box download etc.

One tip I wanted to share today is how to export your boxes so your colleagues can use it right away.

Most of the tutorials seen on Google show us that we have to use:

vagrant package --base precise64
 where precise64 is your box name

In my case, that doesn’t work at all, it simply says:

“[precise64] VM not created. Moving on…”

After some googling, I found the answer. Vagrant expects the specific name of your VirtualBox VM.

So you just have to open your VirtualBox and get the...

Continue reading →


How to setup Rails + Oracle on Ubuntu

In the beggining of the week I got myself one task: to integrate one of our customer’s rails app with another database, this time, an Oracle 10g. And I struggled to get everything up and running, after two days I finally had success, so I decided to share this valuable-ish knowledge:

First of all we need to have Oracle Instant Client’s files on our server, (you can find it here http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html), after dowload unzip them:

$ unzip path/to/instantclient-basic-OS-VERSION.zip
$ unzip path/to/instantclient-sdk-OS-VERSION.zip
$ unzip path/to/instantclient-sqlplus-OS-VERSION.zip

and move it to the proper folder:

sudo mv instantclient_12_1/ /opt/oracle/
sudo cd /opt/oracle/instantclient_12_1
$ ls -la

And check if libclntsh.so is there, if not then:

sudo ln -s libclntsh.so.12.1 libclntsh.so

Now that we got Instant...

Continue reading →