Archive for the ‘VisualWorks’ Category

Store and SQLite3

I’m not a fan of PostgreSQL on the Mac. The easiest way to get it working on the Mac is, in my opinion, with PostgreSQL for Mac but I’ve found that 4 out of 5 of the packages they distribute have problems. Besides that, I don’t like the idea of running a database server on my machine just for source code management. So I decided to take a look at Store for SQLite specifically the SQLite3 iteration.

The first problem I encountered was documentation on setting up the Store connection. I finally figured it out by a posting in a forum but I though I’d list out the steps here.

First install the StoreForSQLite3 package from the Cincom Public Repository. If you don’t know how to do this check out the Source Code Management Guide that comes with VisualWorks, under the heading Install Store into VisualWorks. Just in case your curious about what version, I installed version sqlite3-vw7.x 8,mlucassmith and when prompted to load a SQLite3EXDI version I installed sqlite3-vw7.x 9,mkobetic.

Next set up the database tables. This is explained in the Source Code Management Guide under the heading Install the Store database tables. When prompted for a connection set the fields as follows:

  • Interface: select SQLite3Connection
  • Environment: Enter the file name where you want SQLite to store the database. If you just enter a file name, like store.sq3, the file will be stored where the current image is stored. You can enter a fully qualified name, like /Users/Sean/store.sq3 for Mac. I’m assuming the same thing works on Windows and Linux but I haven’t tried it.
  • User Name: I don’t think this is used by SQLite but Store needs it so put your name in
  • Password: can be left blank
  • Table Owner: I left the default of BERN

You’ll probably want to save the connection for later use so hit the Save… button and give it a useful name.

Follow the rest of the instructions for installing the database tables from the Source Code Management Guide.

You should see the tables being built in the Transcript. It goes quick so it may seem like nothing happened but the Transcript will show a successful install if it all worked.

If you go to the folder that you specified for the file (or the folder where the image is) you should see the file. Now you’re in business and can use Store with SQLite.

I messed around with it for a little while and it seems to work fine but I haven’t put it through any serious tests. Has anyone else?


Compliments to the chef!

I can believe how long it’s been since I posted last. Anyway…

I just wanted to give a thank you to the Cincom team on VisualWorks 7.6 on Mac. It was a dream to install and has been running without incident. And with Antony Blakey’s ASBAqua look and feel it looks great too! Far easier then the old days. Great job Cincom!

VisualWork-ing Again!

About a month ago I purchased my first Mac. In summary, I love it — but that’s another story.

I tried to install VisualWorks NC on the Mac but found out that the non-commercial edition isn’t supported with the Intel Mac and the Net Installer doesn’t work. I quickly found out, through the VWNC mailing list, that while it isn’t officially supported you can run it under X11. Being a Mac newbie I had no idea how to accomplish this despite all the excellent advice from the mailing list. I gave it a try a few weeks ago but wasn’t successful. I thought I’d wait until 7.5 came out since, from what I understand, 7.5 is supported on the Intel Mac. Well, taking a month off from VW is just too long so I decided this weekend to give it another try and I was successful. I’m not sure if anyone else out there is interested but here’s what needs to be done:

Install X11 on the Mac

  1. Pop the Mac OS X Install Disk 1 into the Mac and when the Finder window opens on it scroll down and double click on Optional Installs
  2. Follow the prompts and when you Custom Install on… page open the Applications list and select X11
  3. When its done you should see X11 under Applications > Utilities

Install VisualWorks – As far as I can figure this can be done one of two ways:

  1. I copied the vw7.4.1nc folder from by old Windows install (C:/Program Files/vw7.4.1nc) to my Documents folder on the Mac.
  2. You could also download the individual files/packages from the Cincom website. These are only used for base image, documentation, parcel loading, etc. You won’t actually be running the VM from here.

Install customized Mac Intel applicationLukas Renggli has created an application that starts up X11 and runs VisualWorks when you drop an image on the application. You can find the file here.

  1. Download the file and drag the application (its the only file in the zipped file) to your Application folder
  2. Edit the .bash_profile file in your home folder. You probably can’t see this file (if it does in fact exist) since Mac OS X hides files and folders that start with “.”. I was successful in opening the file even though I couldn’t see if. See below for instructions on how to see hidden files.
  3. Put the following line into the file: export VISUALWORKS=~/Documents/vw7.4.1nc/image . This is your working folder and doesn’t have to be the VW image folder. I use /Documents/Smalltalk/images. [Update] Apparently this does have to be the root of the VisualWorks folder structure. When it wasn’t I was running into strangeness when trying to load a new package from the public repository.

At this point you should be able to drag an image onto the visual-mac-intel-741d application and it should open.

Showing hidden files

In a terminal window type the following two commands:

defaults write AppleShowAllFiles TRUE
killall Finder

Finder will close and then re-open with the “.” files and folders showing. To hide the files and folders again execute these:

defaults write AppleShowAllFiles FALSE
killall Finder