I have been proudly exclaiming for the past month or so how I am a newly converted ex-Windows guy. I haven’t found the need to run any Windows applications, but if I get in a pinch, I can run things like Photoshop using Crossover Office Pro. Today is the first day that I really ran into a problem. The problem is with lack of support for Linux by Adobe when it comes to Flash and Flex. Like many of the other developers in the community I am really chomping at the bit to play with the official Flex 2 Builder (the price of which was announced during Adobe’s keynote this morning… $499!) and tie into ColdFusion 7.02. In addition to the announcement of ColdFusion 7.02 and Flex 2 today, one of the quieter announcements was the official release of Flash 9. “Great!” I thought…. I will go directly to that since Adobe never released a version 8 for Linux and I am still using 7. It appears though, that once again Adobe is not releasing this version for Linux (at least at the time of this posting). The best option for Linux users is still 7.
Now, in theory I can install the Windows Firefox under COO and then Install Flash 9 under COO as well and (I repeat… in theory) be able to access Flex apps. I don’t know if this is true, but I suppose it is something I will have to try. But that solution is hardly the optimal way to go.
So… viewing Flex applications would be a start, but what about building them? Flex Builder is only available for the Windows platform. There is nothing for Macs and nothing for Linux.
After lunch I am going to drop by the Adobe booth and see if they have any insight on what we should expect as far as future supporting Linux (and Macs for that matter). If I get any information of substance, I will update this evening.
EDIT: I just found this post …… Early 2007?!?!??! <sigh>
One week into being an Ubuntu convert and I still have ZERO complaints. This distro of Linux is so comfortable to use that not once in the past week have I thought “Man, if I was just using Windows!”. This weekend, I setup CFMX7 Developer edition with Apache 2.2.2 which just became officially supported by Adobe a couple of weeks ago.
There were a few tricks to setting up ColdFusion with Apache though so I thought I might write about it to save someone else a few minutes if they follow the same path.
***DISCLAIMER*** I am not a long-time Linux guy. I do not claim to be doing things the “right” way. I realize there are likely other more efficient ways to achieve the things I am doing, but I don’t know about them! That said…
- Installing Apache 2.2.2 – One of the painless things about setting up new software in Ubunutu (and other Debian distros) is the apt-get command. For intance if you want to install Apache, just open a command propmet and type in:
>$ sudo apt-get install apache2
Then in a few minutes you have an instance of Apache running. ***HOWEVER***….. this is not what you want to do in this case. By doing apt-get, you (read “I”) do not have the ability to recompile it to suit your needs. I found that when I tried to use the ColdFusion connector tool, it failed due to the installation type of Apache that I had. So, to remove this I did:
>$ sudo apt-get remove apache2
I then removed the startup scripts from /etc/init.d. Once this was complete found that there were a few prerequisites I needed as I went through the Apache compile/install.
- Make sure you have GCC installed, which was not installed on my system. To do this run:
>$ sudo apt-get install gcc
- You also need a C compiler installed. I am not sure this is the most efficient method, but what worked quite simply for me was to install Build Essential like this:
>$ sudo apt-get install build-essential
- I also found that I needed ZLib installed. I pulled down the source from the ZLib project page and did the following:
- extract tar to a directory and terminal into it.
- run >$ sudo ./configure
- run >$ sudo make
- run >$ sudo make install
- Once these prerequisite steps are taken, you are ready to install Apache. Do the following:
- Download the UNIX source here
- Extract the tar file into a working directory and terminal into it.
- run >$ sudo ./configure –prefix=/usr/local/apache2 –enable-mods-shared=all
- run >$ sudo make
- run >$ sudo make install
You can start Apache now by running >$ sudo /usr/local/apache2/bin/apachectl start and test your installation by pulling up http://localhost/.
- Installing ColdFusion MX7 – Now that Apache is intalled we can install ColdFusion. Pull down the latest ColdFusion binary from www.adobe.com. There is nothing exceptionally tricky during the installation process except for a couple of key points.
- During the pre-installation checklist you may get a warning regarding a missing C++ compatability pack. This is used for C++ custom tags, and I believe for Verity as well. I disregarded this warning and moved on. I did choose to install “Search Services” when prompted however, and will address that issue in the near future with a Verity project that I have on the horizon. When I do that I will come back and update this post.
- Another point to note is that I chose the multi-server installation. I am not sure how the server configuration might differ from these steps.
- Lastly, when you get to the point of choosing which webserver you would like to use, choose the internal webserver that ships with ColdFusion.
- Once the installation is complete and you start the ColdFusion server by running:
>$ sudo /opt/jrun4/bin/jrun start cfusion
… and then testing your installation by going to http://localhost:8300/CFIDE/administrator/
- Now it is time to connect ColdFusion to Apache. You need to have the updated wsconfig.jar that was released in May 2006, and can be downloaded here. Make a backup of /opt/jrun4/lib/wsconfig.jar ($> sudo mv wsconfig.jar wsconfig.jar.bak) and replace it with the wsconfig.jar in that zip file.
- Stop and start the jrun process so that it picks up the new wsconfig.jar.
- Now open the connecter by running: >$ sudo /opt/jrun4/bin/wsconfig. Once it opens make the following changes:
- For “Web Server” choose Apache
- For configuration directory, choose: /usr/local/apache2/conf
- Check the box for “Configure webserver for ColdFusion MX applications”
- Click OK and accept the prompt to restart the webserver.
- Copy the CFIDE directory into your webroot so that you have access to the ColdFusion administrator. Run the following:
>$ sudo cp -R /opt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/CFIDE/ /usr/local/apache2/htdocs/
At this point you should be able to log into the ColdFusion administrator by going to:
I converted (upgraded) from Windows 2003 to Ubuntu on my laptop this week. I am completely enamoured with my new setup and will be blogging about this soon. The only thing that has bothered me is that when running CFEclipse the processor would start pegging out as I was typing. I felt that this might have to do with Tag Insight that happens as you type. I tried setting the insight delay to 9999ms, which means that you have to pause in typing for almost 10 seconds before the tag insight is queried. Changing this did nothing at all, and I also found that the problem was much worse as files grew in size. When working in a template over 300 lines the lag made the editor unusable. Considering how much I have loved everything so far about Ubuntu, I was really worried that this might end up being a show stopper. After posting the issue out to my local CFUG, Mike Kelp contacted me and gave me some pointers. He suggested that make sure that I am using the most current JRE. I had already installed JRE1.5, but Eclipse was still pointing to JRE1.4.2. I tried starting it with with the new JRE like this:
./eclipse -vm /usr/lib/jvm/java-1.5.0-sun-1.5.0.06/jre/bin/java
When I did this, the Eclipse loaded literally about 3 times faster and the issue with the processor pegging as I typed disappeared. Big thanks to Mike!