Prethodna tema :: Sljedeća tema |
Autor/ica |
Poruka |
nuala Forumaš(ica)
Pridružen/a: 20. 02. 2011. (14:26:29) Postovi: (33)16
|
|
[Vrh] |
|
mdoko Forumaš(ica)
Pridružen/a: 30. 11. 2002. (22:17:12) Postovi: (71A)16
Spol:
Lokacija: Heriot-Watt University, Edinburgh
|
|
[Vrh] |
|
nuala Forumaš(ica)
Pridružen/a: 20. 02. 2011. (14:26:29) Postovi: (33)16
|
|
[Vrh] |
|
mdoko Forumaš(ica)
Pridružen/a: 30. 11. 2002. (22:17:12) Postovi: (71A)16
Spol:
Lokacija: Heriot-Watt University, Edinburgh
|
Postano: 12:36 čet, 16. 6. 2016 Naslov: |
|
|
[quote="nuala"]Teško je instalirati Dune na laptopu.
Probali smo na sve moguće načine i iz nekog razloga ne radi, uvijek fali neka datoteka koju je nemoguće skinuti ili link više ne postoji itd.
Ako koji praktikum bude slobodan popodne super možemo pisati projekt, a da ne gubimo ponovno vrijeme na instalaciju Dune paketa, a ako ne onda ćemo se vratiti natrag na tu mogućnost :(
Ako postoji neka dobra stranica sa pravim uputama koju možemo slijediti za instalaciju Duna super, jer bi nam upravo to trebalo.
Trenutačno smo bili probali sa stranice profesora Juraka i nažalost nismo uspjeli instalirati.[/quote]
Imam dva pitanja:
1. Na koji OS to pokušavate instalirati? Vidim da Debian ima Dune u package manageru, pa pretpostavljam da je dostupan i u drugim distribucijama.
2. Zašto morate baš fizički biti u praktikumu? Zar se ne može od doma spojiti na neki od kompjutera u praktikumu?
nuala (napisa): | Teško je instalirati Dune na laptopu.
Probali smo na sve moguće načine i iz nekog razloga ne radi, uvijek fali neka datoteka koju je nemoguće skinuti ili link više ne postoji itd.
Ako koji praktikum bude slobodan popodne super možemo pisati projekt, a da ne gubimo ponovno vrijeme na instalaciju Dune paketa, a ako ne onda ćemo se vratiti natrag na tu mogućnost
Ako postoji neka dobra stranica sa pravim uputama koju možemo slijediti za instalaciju Duna super, jer bi nam upravo to trebalo.
Trenutačno smo bili probali sa stranice profesora Juraka i nažalost nismo uspjeli instalirati. |
Imam dva pitanja:
1. Na koji OS to pokušavate instalirati? Vidim da Debian ima Dune u package manageru, pa pretpostavljam da je dostupan i u drugim distribucijama.
2. Zašto morate baš fizički biti u praktikumu? Zar se ne može od doma spojiti na neki od kompjutera u praktikumu?
_________________ Extraordinary claims require extraordinary evidence. – Carl Sagan
|
|
[Vrh] |
|
KITT Forumaš(ica)
Pridružen/a: 28. 09. 2013. (01:05:50) Postovi: (1C)16
|
Postano: 17:51 čet, 16. 6. 2016 Naslov: |
|
|
Isprobao sam [url=https://web.math.pmf.unizg.hr/nastava/nrpdj/Instalacija/dune_instalation.html]upute[/url] na virtualnoj mašini (Linux Mint 17 Cinnamon 32-bit).
Napomena, ja koristim korisničko ime "korisnik", svaku instancu riječi "korisnik" zamijenite svojim korisničkim imenom.
Redom.
Ovo prolazi:
[code:1]sudo apt-get update[/code:1]
Za ovo:
[code:1]sudo apt-get install gcc g++ pkg-config automake autoconf libtool bison flex gfortran gawk doxygen git cmake libsuperlu-dev libsuperlu4 mpi-default-bin mpi-default-dev[/code:1]
sam dobio:
[quote]E: Unable to locate package libsuperlu-dev
E: Unable to locate package libsuperlu4[/quote]
pa sam provjerio što se nudi:
[code:1]apt-cache search libsuper[/code:1]
odgovor:
[quote]libsuper-perl - control superclass method dispatch
libsuperlu3 - Direct solution of large, sparse systems of linear equations
libsuperlu3-dev - Direct solution of large, sparse systems of linear equations[/quote]
to je staro... (najnovija je verzija 5).
Pa sam za početak superlu izbacio i pokrenuo samo ovu naredbu:
[code:1]sudo apt-get install gcc g++ pkg-config automake autoconf libtool bison flex gfortran gawk doxygen git cmake mpi-default-bin mpi-default-dev[/code:1]
To je prošlo ok.
Ručna instalacija superlu:
Skinuti superlu: [url]http://crd-legacy.lbl.gov/~xiaoye/SuperLU/superlu_5.2.1.tar.gz[/url]
Raspakirati arhivu u neki folder, npr. folder pod imenom "superlu". Pod pretpostavkom da je taj folder u home folderu, otvoriti terminal i redom unositi ove naredbe:
[code:1]cd
cd superlu
mkdir build
cd build
cmake ..
make
sudo make install[/code:1]
Testiranje, kopirao sam: "/home/korisnik/superlu/EXAMPLES/superlu.c" u "/home/korisnik/Desktop/"
Terminal:
[code:1]korisnik@korisnik-VirtualBox ~/Desktop $ gcc superlu.c -lsuperlu -lblas[/code:1]
prolazi bez greške.
--------------------------
[b]Dune[/b]
u /home/ folderu napraviti podfolder "dune" i unutar "dune" foldera napraviti 5 podfoldera:
[code:1]dune-src
external
ext-libs
dune-libs
test[/code:1]
pa imamo:
[code:1]/home/korisnik/dune/dune-libs
/home/korisnik/dune/dune-src
/home/korisnik/dune/ext-libs
/home/korisnik/dune/external
/home/korisnik/dune/test[/code:1]
Profesor za primjer koristi 2.4.0 verziju, ja sam uzeo najnoviju.
U folder "/home/korisnik/dune/dune-src" skinuti:
http://www.dune-project.org/download/2.4.1/dune-common-2.4.1.tar.gz
http://www.dune-project.org/download/2.4.1/dune-geometry-2.4.1.tar.gz
http://www.dune-project.org/download/2.4.1/dune-grid-2.4.1.tar.gz
http://www.dune-project.org/download/2.4.1/dune-istl-2.4.1.tar.gz
http://www.dune-project.org/download/2.4.1/dune-localfunctions-2.4.1.tar.gz
http://www.dune-project.org/download/2.4.1/dune-grid-howto-2.4.1.tar.gz
http://dune-project.org/download/pdelab/2.4.1/dune-typetree-2.4.1.tar.gz
http://dune-project.org/download/pdelab/2.4.1/dune-pdelab-2.4.1.tar.gz
Također, u terminalu se cd-ati u "dune/dune-src" folder i pokrenuti ovu naredbu:
[code:1]git clone http://users.dune-project.org/repositories/projects/dune-alugrid.git[/code:1]
U folder "/home/korisnik/dune/external" skinuti:
http://conan.iwr.uni-heidelberg.de/download/ug-3.12.1.tar.gz
http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/parmetis-4.0.3.tar.gz
[b]Instalacija[/b]
U terminalu se cd-ati u "dune/external" folder, pokrenuti redom naredbe:
[code:1]tar xzf ug-3.12.1.tar.gz
cd ug-3.12.1/
./configure --enable-dune --enable-parallel --prefix=/home/korisnik/dune/ext-libs/UG/
make
sudo make install
cd ..[/code:1]
Zatim:
[code:1]tar xzf parmetis-4.0.3.tar.gz
cd parmetis-4.0.3
make config prefix=/home/korisnik/dune/ext-libs/metis/
make
sudo make install
cd metis
make config prefix=/home/korisnik/dune/ext-libs/metis/
make
sudo make install[/code:1]
Skinite https://web.math.pmf.unizg.hr/nastava/nrpdj/Instalacija/dune.opts i smjestite ga u "dune/dune-src" folder. Editirajte ga tako da svaku instancu stringa "puna/staza/do" zamijenite u "home/korisnik"
U terminalu se cd-ajte u folder "dune/dune-src" i pokrenite redom naredbe:
[code:1]tar xzf dune-common-2.4.1.tar.gz
tar xzf dune-geometry-2.4.1.tar.gz
tar xzf dune-grid-2.4.1.tar.gz
tar xzf dune-grid-howto-2.4.1.tar.gz
tar xzf dune-istl-2.4.1.tar.gz
tar xzf dune-localfunctions-2.4.1.tar.gz
tar xzf dune-pdelab-2.4.1.tar.gz
tar xzf dune-typetree-2.4.1.tar.gz
./dune-common-2.4.1/bin/dunecontrol --opts=dune.opts all
./dune-common-2.4.1/bin/dunecontrol --opts=dune.opts make install
[/code:1]
Zadnji korak je copy/paste s profesorove stranice:
[quote]Konačno potrebno je datoteku dune/dune-src/dune.opts kopirati u dune/dune-libs/. Prije kopiranja u toj se datoteci može izbaciti redak koji definira CMAKE_INSTALL_PREFIX kako korisnički programi ne bi završili u dune/dune-libs/ ako korisnik eventualno napravi make install. Korisnički programi nisu zamišljeni da se instaliraju u neke javne direktorije. [/quote]
Napomena: "Korekcije instalacijskog procesa" (profesorova stranica) ne treba raditi, u verziji 2.4.1 se sve ispravno kopira.
Napomena 2: Najnoviji UG je ug-3.13.0.tar.gz, ali ako se ta verzija instalira će naredba
[code:1]./dune-common-2.4.1/bin/dunecontrol --opts=dune.opts all[/code:1]
dati ovo:
[quote]/home/korisnik/dune/dune-src/dune-grid-2.4.1/dune/grid/uggrid.hh:1080:37: error: no type named ‘MultiGrid’ in ‘class Dune::UG_NS<3>’
typename UG_NS<dim>::MultiGrid* multigrid_;
/home/korisnik/dune/dune-src/dune-grid-2.4.1/dune/grid/uggrid/uggridindexsets.hh:331:9: error: no type named ‘UG_ID_TYPE’ in ‘class Dune::UG_NS<3>’
class UGGridIdSet : public IdSet<GridImp,UGGridIdSet<GridImp>,typename UG_NS<remove_const<GridImp>::type::dimension>::UG_ID_TYPE>
/home/korisnik/dune/dune-src/dune-grid-2.4.1/dune/grid/uggrid/uggridindexsets.hh:335:74: error: no type named ‘Element’ in ‘class Dune::UG_NS<3>’
typedef typename std::pair<const typename UG_NS<dim>::Element*, int> Face;
/home/korisnik/dune/dune-src/dune-grid-2.4.1/dune/grid/uggrid/uggridindexsets.hh:397:37: error: no type named ‘UG_ID_TYPE’ in ‘class Dune::UG_NS<3>’
typename UG_NS<dim>::UG_ID_TYPE id (const typename remove_const<GridImp>::type::Traits::template Codim<cd>::Entity& e) const
/home/korisnik/dune/dune-src/dune-grid-2.4.1/dune/grid/uggrid/uggridindexsets.hh:473:37: error: no type named ‘UG_ID_TYPE’ in ‘class Dune::UG_NS<3>’
typename UG_NS<dim>::UG_ID_TYPE subId (const typename remove_const<GridImp>::type::Traits::template Codim<0>::Entity& e,
make[2]: *** [lib/CMakeFiles/dunegrid.dir/__/dune/grid/io/file/dgfparser/dgfug.cc.o] Error 1
make[1]: *** [lib/CMakeFiles/dunegrid.dir/all] Error 2
make: *** [all] Error 2
--- Failed to build dune-grid ---
Terminating dunecontrol due to previous errors![/quote]
Isprobao sam upute na virtualnoj mašini (Linux Mint 17 Cinnamon 32-bit).
Napomena, ja koristim korisničko ime "korisnik", svaku instancu riječi "korisnik" zamijenite svojim korisničkim imenom.
Redom.
Ovo prolazi:
Za ovo:
Kod: | sudo apt-get install gcc g++ pkg-config automake autoconf libtool bison flex gfortran gawk doxygen git cmake libsuperlu-dev libsuperlu4 mpi-default-bin mpi-default-dev |
sam dobio:
Citat: | E: Unable to locate package libsuperlu-dev
E: Unable to locate package libsuperlu4 |
pa sam provjerio što se nudi:
Kod: | apt-cache search libsuper |
odgovor:
Citat: | libsuper-perl - control superclass method dispatch
libsuperlu3 - Direct solution of large, sparse systems of linear equations
libsuperlu3-dev - Direct solution of large, sparse systems of linear equations |
to je staro... (najnovija je verzija 5).
Pa sam za početak superlu izbacio i pokrenuo samo ovu naredbu:
Kod: | sudo apt-get install gcc g++ pkg-config automake autoconf libtool bison flex gfortran gawk doxygen git cmake mpi-default-bin mpi-default-dev |
To je prošlo ok.
Ručna instalacija superlu:
Skinuti superlu: http://crd-legacy.lbl.gov/~xiaoye/SuperLU/superlu_5.2.1.tar.gz
Raspakirati arhivu u neki folder, npr. folder pod imenom "superlu". Pod pretpostavkom da je taj folder u home folderu, otvoriti terminal i redom unositi ove naredbe:
Kod: | cd
cd superlu
mkdir build
cd build
cmake ..
make
sudo make install |
Testiranje, kopirao sam: "/home/korisnik/superlu/EXAMPLES/superlu.c" u "/home/korisnik/Desktop/"
Terminal:
Kod: | korisnik@korisnik-VirtualBox ~/Desktop $ gcc superlu.c -lsuperlu -lblas |
prolazi bez greške.
--------------------------
Dune
u /home/ folderu napraviti podfolder "dune" i unutar "dune" foldera napraviti 5 podfoldera:
Kod: | dune-src
external
ext-libs
dune-libs
test |
pa imamo:
Kod: | /home/korisnik/dune/dune-libs
/home/korisnik/dune/dune-src
/home/korisnik/dune/ext-libs
/home/korisnik/dune/external
/home/korisnik/dune/test |
Profesor za primjer koristi 2.4.0 verziju, ja sam uzeo najnoviju.
U folder "/home/korisnik/dune/dune-src" skinuti:
http://www.dune-project.org/download/2.4.1/dune-common-2.4.1.tar.gz
http://www.dune-project.org/download/2.4.1/dune-geometry-2.4.1.tar.gz
http://www.dune-project.org/download/2.4.1/dune-grid-2.4.1.tar.gz
http://www.dune-project.org/download/2.4.1/dune-istl-2.4.1.tar.gz
http://www.dune-project.org/download/2.4.1/dune-localfunctions-2.4.1.tar.gz
http://www.dune-project.org/download/2.4.1/dune-grid-howto-2.4.1.tar.gz
http://dune-project.org/download/pdelab/2.4.1/dune-typetree-2.4.1.tar.gz
http://dune-project.org/download/pdelab/2.4.1/dune-pdelab-2.4.1.tar.gz
Također, u terminalu se cd-ati u "dune/dune-src" folder i pokrenuti ovu naredbu:
Kod: | git clone http://users.dune-project.org/repositories/projects/dune-alugrid.git |
U folder "/home/korisnik/dune/external" skinuti:
http://conan.iwr.uni-heidelberg.de/download/ug-3.12.1.tar.gz
http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/parmetis-4.0.3.tar.gz
Instalacija
U terminalu se cd-ati u "dune/external" folder, pokrenuti redom naredbe:
Kod: | tar xzf ug-3.12.1.tar.gz
cd ug-3.12.1/
./configure --enable-dune --enable-parallel --prefix=/home/korisnik/dune/ext-libs/UG/
make
sudo make install
cd .. |
Zatim:
Kod: | tar xzf parmetis-4.0.3.tar.gz
cd parmetis-4.0.3
make config prefix=/home/korisnik/dune/ext-libs/metis/
make
sudo make install
cd metis
make config prefix=/home/korisnik/dune/ext-libs/metis/
make
sudo make install |
Skinite https://web.math.pmf.unizg.hr/nastava/nrpdj/Instalacija/dune.opts i smjestite ga u "dune/dune-src" folder. Editirajte ga tako da svaku instancu stringa "puna/staza/do" zamijenite u "home/korisnik"
U terminalu se cd-ajte u folder "dune/dune-src" i pokrenite redom naredbe:
Kod: | tar xzf dune-common-2.4.1.tar.gz
tar xzf dune-geometry-2.4.1.tar.gz
tar xzf dune-grid-2.4.1.tar.gz
tar xzf dune-grid-howto-2.4.1.tar.gz
tar xzf dune-istl-2.4.1.tar.gz
tar xzf dune-localfunctions-2.4.1.tar.gz
tar xzf dune-pdelab-2.4.1.tar.gz
tar xzf dune-typetree-2.4.1.tar.gz
./dune-common-2.4.1/bin/dunecontrol --opts=dune.opts all
./dune-common-2.4.1/bin/dunecontrol --opts=dune.opts make install
|
Zadnji korak je copy/paste s profesorove stranice:
Citat: | Konačno potrebno je datoteku dune/dune-src/dune.opts kopirati u dune/dune-libs/. Prije kopiranja u toj se datoteci može izbaciti redak koji definira CMAKE_INSTALL_PREFIX kako korisnički programi ne bi završili u dune/dune-libs/ ako korisnik eventualno napravi make install. Korisnički programi nisu zamišljeni da se instaliraju u neke javne direktorije. |
Napomena: "Korekcije instalacijskog procesa" (profesorova stranica) ne treba raditi, u verziji 2.4.1 se sve ispravno kopira.
Napomena 2: Najnoviji UG je ug-3.13.0.tar.gz, ali ako se ta verzija instalira će naredba
Kod: | ./dune-common-2.4.1/bin/dunecontrol --opts=dune.opts all |
dati ovo:
Citat: | /home/korisnik/dune/dune-src/dune-grid-2.4.1/dune/grid/uggrid.hh:1080:37: error: no type named ‘MultiGrid’ in ‘class Dune::UG_NS<3>’
typename UG_NS<dim>::MultiGrid* multigrid_;
/home/korisnik/dune/dune-src/dune-grid-2.4.1/dune/grid/uggrid/uggridindexsets.hh:331:9: error: no type named ‘UG_ID_TYPE’ in ‘class Dune::UG_NS<3>’
class UGGridIdSet : public IdSet<GridImp,UGGridIdSet<GridImp>,typename UG_NS<remove_const<GridImp>::type::dimension>::UG_ID_TYPE>
/home/korisnik/dune/dune-src/dune-grid-2.4.1/dune/grid/uggrid/uggridindexsets.hh:335:74: error: no type named ‘Element’ in ‘class Dune::UG_NS<3>’
typedef typename std::pair<const typename UG_NS<dim>::Element*, int> Face;
/home/korisnik/dune/dune-src/dune-grid-2.4.1/dune/grid/uggrid/uggridindexsets.hh:397:37: error: no type named ‘UG_ID_TYPE’ in ‘class Dune::UG_NS<3>’
typename UG_NS<dim>::UG_ID_TYPE id (const typename remove_const<GridImp>::type::Traits::template Codim<cd>::Entity& e) const
/home/korisnik/dune/dune-src/dune-grid-2.4.1/dune/grid/uggrid/uggridindexsets.hh:473:37: error: no type named ‘UG_ID_TYPE’ in ‘class Dune::UG_NS<3>’
typename UG_NS<dim>::UG_ID_TYPE subId (const typename remove_const<GridImp>::type::Traits::template Codim<0>::Entity& e,
make[2]: *** [lib/CMakeFiles/dunegrid.dir/__/dune/grid/io/file/dgfparser/dgfug.cc.o] Error 1
make[1]: *** [lib/CMakeFiles/dunegrid.dir/all] Error 2
make: *** [all] Error 2
— Failed to build dune-grid —
Terminating dunecontrol due to previous errors! |
|
|
[Vrh] |
|
Popara Forumaš(ica)
Pridružen/a: 17. 08. 2012. (19:05:50) Postovi: (3B)16
Spol:
Lokacija: Zadar/Zagreb
|
|
[Vrh] |
|
nuala Forumaš(ica)
Pridružen/a: 20. 02. 2011. (14:26:29) Postovi: (33)16
|
|
[Vrh] |
|
Popara Forumaš(ica)
Pridružen/a: 17. 08. 2012. (19:05:50) Postovi: (3B)16
Spol:
Lokacija: Zadar/Zagreb
|
|
[Vrh] |
|
|