Author Topic: Como instalar DB Main (arquivo tar.gz)  (Read 2315 times)

Offline flordelis7

  • Usuário Ubuntu
  • *
  • Posts: 9
    • View Profile
Como instalar DB Main (arquivo tar.gz)
« on: 27 de March de 2012, 22:21 »
Olá!

Sou iniciante em Linux, e uso o Ubuntu 11.10. Vou fazer um trabalho, e tenho que instalar um programa de modelagem para banco de dados chamado DB Main. No site do programa, baixei o pacote para Linux e chama-se dbm-915-linux-setup.tar.gz . Eu não sei instalá-lo e gostaria de uma ajuda. Eu entrei dentro dele e nele tem um arquivo chamado readme.html, com umas instruções de instalação, mas eu não consegui fazer. Abaixo o arquivo:


Linux

Two kings of installation are possible:

Installation for single user
Extract the dbm-9xx-linux-setup.tar.gz or dbm-deasy-9xx-linux-setup.tar.gz (with the DEASY plug-in) archive in the directory of your choice:
cd ~/db-main
tar -xf dbm-9xx-linux-setup.tar.gz (or tar -xf dbm-deasy-9xx-linux-setup.tar.gz)

Edit the .bashrc file (.profile in some environment) in the home directory and add the following lines (adapt the ~/db-main/bin directory to the one chosen previously):

export DB_MAIN_BIN=~/db-main/bin
export PATH=$DB_MAIN_BIN:$PATH
export LD_LIBRARY_PATH=$DB_MAIN_BIN:$DB_MAIN_BIN/../java/jre/lib/i386/client:$LD_LIBRARY_PATH
#CLASSPATH modification only for dbm-deasy-9xx-linux-setup.tar.gz
export CLASSPATH=.:$DB_MAIN_BIN/../plugins/deasy/lib/jidbmjava.jar:$DB_MAIN_BIN/../plugins/deasy/lib/sqlite-jdbc-3.6.20.1.jar:$CLASSPATH


Installation for all users
Extract the dbm-9xx-linux-setup.tar.gz archive in /usr/local/db-main (or any other directory of your choice):
cd /usr/local/db-main
sudo tar -xf dbm-9xx-linux-setup.tar.gz (or sudo tar -xf dbm-deasy-9xx-linux-setup.tar.gz)

Change the permissions so that any user can execute db_main:

sudo chmod a+x /usr/local/db-main/bin/db_main

Edit the global bash profile for all users (something like /etc/bash.bashrc) and add the following lines (adapt the /usr/local/db-main/bin directory to the one chosen previously):
export DB_MAIN_BIN=/usr/local/db-main/bin
export PATH=$DB_MAIN_BIN:$PATH
export LD_LIBRARY_PATH=$DB_MAIN_BIN:$DB_MAIN_BIN/../java/jre/lib/i386/client:$LD_LIBRARY_PATH
#CLASSPATH modification only for dbm-deasy-9xx-linux-setup.tar.gz
export CLASSPATH=.:$DB_MAIN_BIN/../plugins/deasy/lib/jidbmjava.jar:$DB_MAIN_BIN/../plugins/deasy/lib/sqlite-jdbc-3.6.20.1.jar:$CLASSPATH

To run DB-MAIN, there are also two approaches:

Execute the file db_main as a normal user from the command prompt.

Create a shortcut in your desktop that calls a shell file that contains something like this:

#!/bin/sh
export DB_MAIN_BIN=/the-path-to-the-db-main-bin-directory
export PATH=$DB_MAIN_BIN:$PATH
export LD_LIBRARY_PATH=$DB_MAIN_BIN:$DB_MAIN_BIN/../java/jre/lib/i386/client:$LD_LIBRARY_PATH
#CLASSPATH modification only for dbm-deasy-9xx-linux-setup.tar.gz
export CLASSPATH=.:$DB_MAIN_BIN/../plugins/deasy/lib/jidbmjava.jar:$DB_MAIN_BIN/../plugins/deasy/lib/sqlite-jdbc-3.6.20.1.jar:$CLASSPATH
cd /the-path-to-the-db-main-bin-directory/
db_main


Adapt the-path-to-the-db-main-bin-directory to your environment, save the shell file in the DB-MAIN bin directory (called db_main.sh for example) and give the execute permissions for all users.

Finally, put the following command in the shortcut:

/bin/sh /the-path-to-the-db-main-bin-directory/db_main.sh

A file db_main.ini is created in the .db_main directory of the user's home directory when DB-MAIN is run for the first time.



Obrigada!

Offline irtigor

  • Equipe Ubuntu
  • Usuário Ubuntu
  • *****
  • Posts: 4.344
  • Delete, delete, delete!
    • View Profile
Re: Como instalar DB Main (arquivo tar.gz)
« Reply #1 on: 28 de March de 2012, 21:46 »
Qual foi o problema? Faça passo após passo com calma, e se não conseguir, copie e cole a saída aqui.
Outra coisa que pode te ajudar é o manual do programas usados (man tar, man cd...).

Offline flordelis7

  • Usuário Ubuntu
  • *
  • Posts: 9
    • View Profile
Re: Como instalar DB Main (arquivo tar.gz)
« Reply #2 on: 29 de March de 2012, 17:37 »
Um amigo instalou para mim, mas muito obrigada pela atenção! ^^

Offline cin01s2

  • Usuário Ubuntu
  • *
  • Posts: 2
    • View Profile
Re: Como instalar DB Main (arquivo tar.gz)
« Reply #3 on: 08 de April de 2012, 10:43 »
Estou com o mesmo problema, alguém pode me ajudar?

Uso Ubuntu 11.10 64 bits

Offline irtigor

  • Equipe Ubuntu
  • Usuário Ubuntu
  • *****
  • Posts: 4.344
  • Delete, delete, delete!
    • View Profile
Re: Como instalar DB Main (arquivo tar.gz)
« Reply #4 on: 08 de April de 2012, 13:07 »
Sim: faça o passo a passo, se não funcionar copie/cole a saída aqui.