Installing CFENV on Ubuntu

Installing CFENV on Ubuntu

On Ubuntu, it is necessary to use the Git / GitHub method for installation.

1.) Install Git

$ sudo apt-get install git

You should already have Git though, RIGHT??!?

2.) Install Dependencies for legacy Railo versions.

Are you running 64bit version of Ubuntu? Please verify these dependencies are installed first by typing:

$ sudo apt-get install libc6-i386 lib32gcc1 lib32z1 lib32stdc++6

3.) Install CFENV Check out cfenv into ~/.cfenv.

$ git clone ~/.cfenv

Add ~/.cfenv/bin to your $PATH for access to the cfenv command-line utility.

$ echo 'export PATH="$HOME/.cfenv/bin:$PATH"' >> ~/.bash_profile Add

cfenv init to your shell to enable shims and autocompletion.

$ echo 'eval "$(cfenv init -)"' >> ~/.bash_profile

Restart your shell so that PATH changes take effect. (Opening a new terminal tab will usually do it.)

Now check if cfenv was set up:

$ type cfenv // "cfenv is a function"

Upgrading CFENV

If you’ve installed cfenv manually using git, you can upgrade your installation to the cutting-edge version at any time.

$ cd ~/.cfenv
$ git pull

To use a specific release of cfenv, check out the corresponding tag:

$ cd ~/.cfenv
$ git fetch
$ git checkout v0.0.6

Using CFENV on a New Project

If you just now have a fresh installation of cfenv then you will need to install a Railo version.

$ cfenv install

I personally store all my working projects in a directory called ~/Projects

$ mkdir -p ~/Projects/my_new_cfml_project $ cd ~/Projects/my_new_cfml_project

Let’s set this project’s Railo Version to

$ cfenv local

Now let’s create a little test cfml file so we have some output when we start our server.

writeOutput('Hello, from your new cfenv context!!!'); 

Save that file as index.cfm. Now we need to startup our server.

$ railo_init

Visit http://localhost:8888/ in your browser.

With any luck, you should see your test cfml file we created nicely printing out. That’s really all there is to it…

Find more information at:

Leave a Reply

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    Markdown is turned off in code blocks:
     [This is not a link](

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see