Project

General

Profile

Installation Help Requested (Mac OS)

Added by Keith Lucas over 14 years ago

Hello, I may or may not have successfully installed Wt 3.0.0 on my Mac 0S X version 10.5.8 machine.

However, my installation of mod_fastcgi 2.4.6 causes the Apache2 server to fail to start.

So, now I want to test one of the Wt examples through the wthttpd, but when I try the last line in the instructions which is:

$ ../../build/examples/X/X.wt --docroot . --http-address 0.0.0.0 --http-port 8080

I get a command not found error. I am unclear on how the .wt file extension was supposed to become executable.

If someone could give me some clear instructions, I would be grateful. I have searched the web to try to find every possible text written about installing Wt. Obviously, I'm not a guru, so I may ask for more clarification. Thanks.

Keith


Replies (2)

RE: Installation Help Requested (Mac OS) - Added by Keith Lucas over 14 years ago

Note to self:

I have figured out why the file didn't execute. When I had tried before, I was in the directory of the .wt file and so I had just typed the filename (such as X.wt) with the options as well.

I was able to execute it by adding ./ before the name. Like this:

./treeviewdragdrop.wt --docroot . --http-address 0.0.0.0 --http-port 8080

Far be it from me to know why this should work this way, but I'm learning.

After running that line, then I got some output starting with:

  702 - [notice] "Wt: initializing built-in httpd"
[notice] "Reading Wt config file: /etc/wt/wt_config.xml (location = './treeviewdragdrop.wt')"
[notice] "Starting server: http://0.0.0.0:8080"

So I knew it was working. Just a note (necessary for people like me), the command prompt does not return.

So, I went the address to check it (http://127.0.0.1:8080/) and the example was working.

When I did that, some more lines outputted on the Terminal window.

I think I have a few more issues to clear up to get the example to work perfectly.

RE: Installation Help Requested (Mac OS) - Added by Keith Lucas over 14 years ago

Because I found the installation process to be rather difficult to figure out, and the install instructions to be incomplete,

I have created a blog post detailing the commands I used to install ICU, Boost, FastCGI, and Wt on my Mac.

http://keith-lucas.blogspot.com/2009/12/how-to-install-wt-on-mac-os.html

I hope it is helpful as an example.

    (1-2/2)