rlucia writes: "Now we have some patches to The FreeBSD Ports Collection to make it working on Darwin 1.3 (as shipped with Mac OS X). I also patched pkg_* from FreeBSD source tree to use with Darwin. The work is at early stage but I could compile and install (also deinstall) lots of packages."
I built a hello world simple application that built great. That simply means that it compiled. I did this in my home directory in a terminal application. It compiles to a.out. When I try to run this application it says I cannot find a.out. Any clues on how I can make this work?
[Editor's Note: This is the most detailed how-to I've received in six months' running this site! I have not used the tutorial, mainly because I already have this group of programs running, but this looks like a very good step-by-step on how to get them installed. -rob.]
[Second editor's note: I received a referral to another site with a step-by-step guide for compiling all three of these programs from source; I haven't used it, but it's a similar step-by-step tutorial, but it doesn't use any package files.]
Compiled and partly written by Vip Malixi with contributions from Scott Anguish, René Voorburg, Matthew Vaughn. The following tutorial is a comprehensive set of instructions for installing a new version of Apache (1.13.19), along with PHP 4.04 and mySQL 3.23.28. In order to follow these instructions, you will need to have (a) root access [detailed elsewhere on the site] and (b) the developer tools installed.
If you'd like to see how this is done, please read the rest of this article for a thorough, step-by-step guide to the process.
Not sure if this is by any means useful, but here you go:
You can run more than one instance of the same Cocoa app, for example two Clock apps running under the different process id, from the command line. It is pretty simple to do:
Using Finder, navigate to the app you want to run
Control-click, then select the 'Show Package Contents' item
Open ./Contents/MacOS folder. There is usually only one executable file.
Drag and drop the file on the terminal window. This prints a path to the file.
Put '&' at the end of the path and type return
Repeat 5 and 6
Now, you have two processes of the app.
Caveat: GUI apps are not intended to be executed by this way. If more than one instances are running, they access the same configuration files, e.g. a preferences file. So, there is a chance to corrupt these files. Do it at your own risk and just for entertainment.
mySQL is a free SQL database program that can work in conjunction with PHP (see PHP hint elsewhere here) to create dynamically generated web sites, such as this one. It's important to me, as I use mySQL and PHP locally to test new elements for this site, and it was getting to be a pain booting back to the Public Beta every time I had to work on something. I tried running the mySQL installer package from the PB, but it failed (not sure why). So I'd been waiting on a new installer package, to make things easy. Last night, I got tired of waiting :-).
I received an email stating that a new binary package was available on the iDisk of 'skribble', so I went and checked it out. Go to www.mac.com, click on the iDisk tab, sign on with your ID, and then enter 'skribble' in the box for "Open Public Folder" section to mount that folder. You'll see the binary for mySQL. I downloaded this and installed it, but couldn't quite get it running - but it may have been user error. It did not install the 'var' directory, where mySQL keeps the databases. You may have better luck than I, so it might be worth a shot.
After a few minutes of mucking around with it (without success), I "rm"ed the mysql directory, and decided to go straight to the source (literally), and grabbed the files from mysql.com to try and build it myself. I was successful, and now have a fully functional PHP 4.04 and mySQL 3.23.36 installation on my OS X machine! Read the rest of the article if you'd like instructions on how to build it yourself -- it's really not that hard!
[Editor's note: See the comments for a discussion on a number of alternative methods to making this work]
I have a number of apps/scripts that I've built that can only be launched from the command line. Is there any way to either:
A) Make these double-clickable for launching
B) Create a simple app that basically executes the same commands I would type in the terminal window
For example, I have a bulletin-board client that I run locally. At present, the only way to run it is to either type the full path to it, put a link to it in a bin folder, or be in the same folder and type ./bbs . What I really want is an icon that I can double click which will open a terminal window and execute a file in a given path.
I have Tomcat 3.2.1 Servlet engine running in standalone mode right now, but I want to integrate it with Apache. I can't figure out how to build mod_jk on OS X using the Jakarta docs. Also, when configuring tomcat, will it be able to find everything using JAVA_HOME given that things are in completely different places that a traditional JDK installation?
In addition, there are some other great UNIX tips on that page, including a "renice" command for the Window Manager that may potentially speed up your window redraw. I've added the site to the links section as well.
I have managed to compile on Mac OS X final the "vim" editor from www.vim.org - version 5.7, but syntax highlighting is working WITHOUT COLORS - syntax elements are highlighted only by "underline" attribute, not by colors. Does anybody know:
a. how to activate colors in vim in Mac OS X?
b. how to run vim as gvim, i.e. in graphical mode?