Table of Contents

Systémy hromadné obsluhy - verze pro Linux

Instalace a spuštění

    misko@localhost:~$ tar xzf sho_linux.tgz 
    misko@localhost:~$ cd sho
    misko@localhost:~/sho$  
      
    misko@localhost:~/sho$ make
    rm -f *.o
    rm -f *core*
    rm -f lyzari
    rm -f menza
    rm -f *~
    g++ `pth-config --cflags` -c -o simset.o simset.cc
    g++ `pth-config --cflags` -o random.o -c random.cc
    g++ `pth-config --cflags` -c -o simulation.o simulation.cc
    g++ `pth-config --cflags` -c -o thread.o thread.cc
    g++ `pth-config --cflags` -c -o eventnotice.o eventnotice.cc
    g++ `pth-config --cflags` -c -o process.o process.cc 
    g++ `pth-config --cflags` `pth-config --cflags` -c -o main.o main.cc
    g++ `pth-config --cflags` -c -o hlavni.o hlavni.cc
    g++ `pth-config --cflags` -c -o hlavni0.o hlavni0.cc
    g++ `pth-config --cflags` -L`pth-config --libdir` -o lyzari simset.o random.o simulation.o thread.o eventnotice.o process.o main.o hlavni.o `pth-config --libs`
    g++ `pth-config --cflags` -L`pth-config --libdir` -o menza simset.o random.o simulation.o thread.o eventnotice.o process.o main.o hlavni0.o `pth-config --libs`
      
    ./lyzari

Poznámky k překladu

Budete potřebovat:

  1. GNU g++, kompilátor ze sady gcc (zde) - testováno s verzemi 2.95.3 (debian, freebsd), 2.96 (redhat) a 3.2.3 (debian). S menšími problémy běhá i na GNU/Hurd.
  2. knihovnu GNU pth (zde) - pracuje s verzemi 1.3.0 a vyšší
  3. GNU make (zde)

Problémy při překladu:

          misko@localhost:~/sho$ make
          rm -f *.o
          rm -f *core*
          rm -f lyzari
          rm -f menza
          rm -f *~
          g++ `pth-config --cflags` -c -o simset.o simset.cc
          /bin/sh: pth-config: command not found
          g++ `pth-config --cflags` -o random.o -c random.cc
          /bin/sh: pth-config: command not found
          g++ `pth-config --cflags` -c -o simulation.o simulation.cc
          /bin/sh: pth-config: command not found
          In file included from process.h:7,
                           from simulation.h:10,
                           from simulation.cc:5:
          thread.h:9: pth.h: No such file or directory
          make: *** [simulation] Error 1

Řešení:

                apt-get install libpth-dev
                yum install pth-devel

Poděkování