Forum .LRN Q&A: installing xotcl

Collapse
Posted by john zhang on
Dear all,

I following the exactly the following instructions in trying to install xotcl:

wget http://media.wu-wien.ac.at/download/xotcl-1.5.1.tar.gz
The following commands can be used to compile XOTcl and install it into the appropriate places of the specified aolserver. We assume that the aolserver is installed under /usr/local/aolserver:

cd xotcl-1.5.1 CC=gcc;export CC ./configure --enable-threads --enable-symbols --prefix=/usr/local/aolserver --exec-prefix=/usr/local/aolserver --with-tcl=/usr/src/tcl8.4.13/unix
Use appropriate paths for aolserver4 and your tcl version.

make make install-aolAfter the "make install-aol

However, after "make", i got the following errors:

"XoTclGetClass" declared 'static' but never defined
'CallStackGetFrame' declared....
'XOTcl_DeprecatedCmd' defined but not used
'NSTail' defined but not used....

etc.

Could some one enlighten me on what direction I should go to get it installed?

thanks.

john

Collapse
2: Re: installing xotcl (response to 1)
Posted by Gustaf Neumann on
dear John,

did you use line-breaks as in described
https://www.openacs.org/xowiki/en/xotcl-core ?

Did configure run correctly on your site (with Tcl should point to the Tcl version you have used for your AOLserver installation)?

Collapse
3: Re: installing xotcl (response to 2)
Posted by john zhang on
Dear Gustaf,

Thank you so much for your reply!

To your questions:
1) I have not started installing xotcl-core yet because I was stuck in installing xotcl:

2) Here are the exact code I used on my FreeBSD machine:

# wget http://media.wu-wien.ac.at/download/xotcl-1.5.2.tar.gz
# tar xvzf xotcl-1.5.2.tar.gz
# setenv CC=gcc
# cd xotcl-1.5.2
#./configure --enable-threads --enable-symbols --prefix=/usr/local/aolserver --exec-prefix=/usr/local/aolserver --with-tcl=/usr/local/lib/tcl84/

#make

At this point, the machine begin to out put a series of warnings, the final one is Error Code 1.

I tried to "make install" by ignoring the warning. It did not work.

In addition, I installed aolserver with success. And I installed tcl8.4.11 before I started installing xotcl.

Again, thank you!

John

Collapse
4: Re: installing xotcl (response to 3)
Posted by Gustaf Neumann on
John,

configure is not supposed to end with an error, one should take errors from configure serious. what error does it report?

Collapse
5: Re: installing xotcl (response to 4)
Posted by john zhang on
Dear Gustaf,

sorry I confused you. the error came out when "make" has been issued. at the end of the list of warnings (that are produced by "make"), there is "error code 1".

thanks.

john

Collapse
6: Re: installing xotcl (response to 5)
Posted by Gustaf Neumann on
when configure runs without errors, then the problem must be somewhere else.

you wrote:

"XoTclGetClass" declared 'static' but never defined
'CallStackGetFrame' declared....
'XOTcl_DeprecatedCmd' defined but not used
'NSTail' defined but not used....

Please report the first the first error message, you got, and as well the command leading to the error message. there is no function "XoTclGetClass", only a "XOTclGetClass", and this is quite later in the file. seems, as if you picked a few random messages you are seeing.

what os you are working with? which compiler do you use?

Collapse
7: Re: installing xotcl (response to 6)
Posted by john zhang on
my OS is FreeBSD 6.1. the screen only left me the last few lines of the messages.
Collapse
8: Re: installing xotcl (response to 7)
Posted by Gustaf Neumann on
you can always redirect the output to a file.

however, there is a freebsd port for xotcl,
This "port" is actually the freebsd installer, i think, it asks whether it should install xotcl as an oacs module. This port was developed by martin matuska, who works in my institute. If i remember correctly, xotcl is already included in the newest freebsd release.
http://groups.google.at/group/mailing.freebsd.cvs/browse_frm/thread/334c8e1dcb1e327b/7e80190cc9a17823?lnk=st&q=xotcl+freebsd&rnum=1&hl=de#7e80190cc9a17823

martin made as well a port for openacs + dotlrn
http://groups.google.at/group/mailing.freebsd.ports-bugs/browse_frm/thread/1447b203aa457c77/027d2ccd2046a650?lnk=st&q=openacs+freebsd&rnum=1&hl=de#027d2ccd2046a650

Collapse
9: Re: installing xotcl (response to 8)
Posted by john zhang on
This is really helpful.
Many thanks, Gustaf!!!