Autor Tópico: Configuração TCL  (Lida 2010 vezes)

calexandrep

  • Newbie
  • *
  • Mensagens: 9
  • Karma: +0/-0
Configuração TCL
« Online: Agosto 15, 2006, 07:42:54 pm »
Olá pessoALL,

Eu estou tentando configurar um portal para gerenciamento de projetos. Este portal será baseado no software ProjectOpen (www.project-open.com). Este software é baseado em TCL e requer a instalação de um servidor AOLServer 4.5 (www.aolserver.com), um banco de dados PostgreSQL 7.4 e um framework OpenACS 5.2 (www.openacs.org)...todas essas exigências estão relacionadas ao TCL.

Bom, eu estou usando uma máquina com openSuSE 10.1 e já instalei o TCL 8.4 via YaST. Infelizmente não estou conseguindo cumprir a 1a etapa que é a instalação do AOLServer. Segundo o readme do AOLServer, ao instalar o TCL é necessário configurá-lo com "threads and libraries" habilitadas usando o seguinte comando: "./configure --prefix=/usr/local/aolserver --enable-threads" Mas como eu instalei via YaST, não foi possível configurar desse modo.

Agora qdo tento instalar o AOLServer ocorre um erro durante a etapa de configuração:

DELL-P3-800:/usr/local/aolserver # /usr/bin/tclsh8.4 ./nsconfig.tcl
Executing ./configure TCLSH=/usr/bin/tclsh8.4 --prefix=/usr --with-tcl=/usr/lib
checking for Tcl configuration... found /usr/lib/tclConfig.sh
checking for existence of /usr/lib/tclConfig.sh... loading
configure: error: must build tcl with --enable-threads
child process exited abnormally
    while executing
"exec ./configure TCLSH=/usr/bin/tclsh8.4 --prefix=/usr --with-tcl=/usr/lib >&@ stdout"
    ("eval" body line 1)
    invoked from within
"eval exec $configure >&@ stdout"
    invoked from within
"if [string equal $tcl_platform(platform) unix] {
        set configure [list ./configure TCLSH=$tclsh --prefix=$install --with-tcl=$tcldir/lib]
        if $debug {
..."
    (file "./nsconfig.tcl" line 114)
DELL-P3-800:/usr/local/aolserver #

****************************************

Daí pergunto para quem entende de TCL...como faço para habilitar as opções "threads" e "library" após a configuração e instalação do mesmo?

Segue abaixo o trecho do readme do AOLServer que trata da instalação:

3. Compiling and installing AOLserver

AOLserver is known to compile and run on Windows XP, FreeBSD, Linux,
Solaris, and Mac OS/X 10.4.  Ports to other modern Unix platforms
such as HP/UX should be easy.  To compile and install AOLserver:

3a.     Download, configure, build and install Tcl 8.4 or better
   with threads and shared libraries enabled.  To do so,
   download the latest release from http://tcl.tk and follow
   the instructions in the included README.  You may install
   Tcl within the directory you intend to install AOLserver
   (e.g., /usr/local/aolserver) or in some other location.
   The following should work:

   Unix:

   % gunzip < tcl8.4.11-src.tar.gz | tar xvf -
   % cd tcl8.4.11/unix
   % ./configure --prefix=/usr/local/aolserver --enable-threads
   % make install

   Windows:

   c:\tcl\srcdir> cd win
   c:\tcl\srcdir\win> nmake -f makefile.vc \
      INSTALLDIR=c:\aolserver OPTS=threads,thrdalloc,symbols \
      install
   

3b.     On Unix, if you don't have GNU make (Linux make is GNU
   make), install it as AOLserver's makefiles require it.  If
   you're not sure if you have GNU make, try "make -v" to
   check.  You can get GNU make at http://www.gnu.org.


3c.     Configure, build, and install AOLserver.  The build process
   requires a working, installed Tcl, and supports Unix and
   Windows with the same makefiles and a few supporting Tcl
   scripts.  The following should work:

   Windows:

   c:\aolserver\srcdir> c:\aolserver\bin\tclsh84.exe nsconfig.tcl
   c:\aolserver\srcdir> nmake install

   Unix:

   % /usr/local/aolserver/bin/tclsh84 ./nsconfig.tcl
   % gmake install

   The nsconfig.tcl script is designed to work on Unix and
   Windows.  The tclsh used to execute the script must be from
   the installed Tcl location you intend to use for AOLserver
   as nsconfig.tcl will determine certain config settings from
   the tclsh environment.  In addition, two options may be
   specified:

        -install dir    Specify path to install (default: Tcl directory)
        -debug          Debug build with symbols and without optimization.

   On Windows, nsconfig.tcl will create include\ns.mak directly.

   On Unix, nsconfig.tcl will call the configure shell script
   with the appropriate options to create include/ns.mak.  You
   may also run configure directly although it has few additional
   features.


3d.     Once the binaries are built and installed, create and edit
   a config file, nsd.tcl by convention.  A sample is provided
   to get started:

   % cd /usr/local/aolserver
   % cp base.tcl nsd.tcl
   % vi nsd.tcl

        Additional configuration examples can be found in the
        examples/config directory.

3e.   Try running the server in a shell window:

   % cd /usr/local/aolserver
   % bin/nsd -ft nsd.tcl

********************************************

Valeu e até mais....

Obs.: Tenho interesse em manter contato com desenvolvedores de TCL para possíveis contratos futuros (2007).

Alexandre[/list]

Comunidade de Usuários do openSUSE

Configuração TCL
« Online: Agosto 15, 2006, 07:42:54 pm »

atf

  • Membro
  • ***
  • Mensagens: 120
  • Karma: +0/-0
Re: Configuração TCL
« Responder #1 Online: Agosto 15, 2006, 10:02:34 pm »
Parece que você escolheu mal. Suse-10 é melhor para "desktop" e já entrega tudo pronto.
Para configurar um servidor com um serviço específico e, ao que parece, cheio de exigências básicas, você terá que compilar os componentes com as devidas especificações, inclusive o TCL e, provavelmente o TK.
Para fazer isso no Suse, você vai bagunçar todo o padrão dele e acabar com um monstro na mão.
Para servidores desse tipo escolha uma distribuição mais simples como Gentoo ou Slack, cuja base padronizada é apenas o essencial.
atf
LinuxUser#142898

calexandrep

  • Newbie
  • *
  • Mensagens: 9
  • Karma: +0/-0
Re: Configuração TCL
« Responder #2 Online: Agosto 16, 2006, 12:45:03 pm »
Olá,

O project-open só roda em SuSE ou RedHat...

Inteh...

atf

  • Membro
  • ***
  • Mensagens: 120
  • Karma: +0/-0
Re: Configuração TCL
« Responder #3 Online: Agosto 16, 2006, 03:30:38 pm »
É!?!? deve ser um "estrondo"  >:(
atf
LinuxUser#142898