4318
Comment:
|
2489
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
== Installationsanleitung für die Suche (NEU 13Jan13: ohne Apache) == | ## page was renamed from HomeoVim/SucheNeu == Installationsanleitung für die Suche == |
Line 3: | Line 4: |
=== 1. Cygwin Pakete nachinstallieren === | ''Wen's interessiert: hier der Link [[HomeoVim/SucheAlt|zur alten Installationsanleitung, die mit Apache]].'' |
Line 5: | Line 6: |
Zum Nachinstallieren unter cygwin, einfach die ''setup.exe'' (von der ursprünglichen Installation von cygwin) aufrufen, und so lange ''next'' klicken, bis man zur ''Select Packages'' Seite kommt. Falls die ''setup.exe'' nicht mehr da ist, einfach neu von http://www.cygwin.com/ runterladen, damit kann man auch für eine bestehende cygwin Installation Pakete nachinstallieren. | === 1. Ausführbare Programme für die Suche === |
Line 7: | Line 8: |
Folgende Pakete nachinstallieren (kann man alles auf einmal machen). Dazu am einfachsten rechts ''View'' von ''Category'' auf ''Full'' ändern, und dann für jedes Paket den Paketnamen (oft reicht schon ein Präfix davon) in das Suchfeld eintippen, und dann bei dem passenden Paket auf das ''Skip'' klicken. | Für Windows 7 sind die ausführbaren Programme (genannt "binaries") für die Suche bereits im Ordner ''Search/bin'' vorhanden. Eventuell funktionieren sie auch für andere Windows-Versionen. Falls nicht (merkt man spätestens in Schritt 2 unten), oder für andere Betriebssysteme (MacOS, Linux), müssen die binaries erst aus dem Quellcode kompiliert werden. [[http://ad-wiki.informatik.uni-freiburg.de/research/HomeoVim/SucheKompilieren|Hier die Anleitung dazu]]. |
Line 9: | Line 10: |
{{{ vim openssh wget unzip libboost-devel libexpat1-devel libiconv (nicht libiconv2), make (GNU version) }}} Das dauert eine Weile, während der man aber nichts machen muss bzw. auch was anderes mit dem Rechner machen kann. === 2. Google sparsehash installieren === Dazu in cygwin im Home Verzeichnis (oder wo immer gwünscht) Folgendes machen: {{{ mkdir install cd install wget http://sparsehash.googlecode.com/files/sparsehash-2.0.2.zip (oder wie immer die neueste Version ist) unzip sparsehash-2.0.2.zip cd sparsehash-2.0.2 ./configure make make install }}} === 3. STXLL installieren. === Dazu in cygwin im selben Ordner ''install'' wie oben Folgendes machen: {{{ wget http://sourceforge.net/projects/stxxl/files/stxxl/1.3.1/stxxl-1.3.1.zip (oder was immer die neueste Version ist) unzip stxxl-1.3.1.zip cd stxxl-1.3.1 make config_gnu make library_g++ }}} === 4. CompleteSearch installieren === Version aus unserem SVN auschecken im selben Ordner ''install'' wie oben, Unterordner ''completesearch''. Am einfachsten mit Tortoise SVN, da das ja eh schon installiert ist (für SVN von der cygwin Kommandozeile müsste das Paket ''subversion'' nachinstalliert werden, siehe 2) Explorer: Rechtsklick in Ordner Completesearch, SVN Checkout auswählen, URL = https://ad-svn.informatik.uni-freiburg.de/completesearch/codebase, username und password bei Hannah Bast erfragen. Dann in der Datei ''install/completesearch/Makefile'' die beiden folgenden Variablen wie folgt setzen (unter SECTION 1 fast ganz oben) {{{ CS_CODE_DIR = /home/$(USER)/install/completesearch STXXL_CONFIG = /home/$(USER)/install/stxxl-1.3.1/stxxl.mk }}} Dann den Code wie folgt kompilieren (das dauert eine Weile, weil fast 100.000 Zeilen Code): {{{ cd completesearch make build-all }}} Der letze Befehl wird eine Weile dauern (weil fast 100.000 Zeilen Code). === 5. Bauen des Indexes einrichten und testen === |
=== 2. Bauen des Indexes einrichten und testen === |
Line 77: | Line 15: |
cd ~/install/homeovim/Search ln -s ~/install/completesearch cp completesearch/server/startCompletionServer.exe . make parser make xml pall start |
cd /home/install/homeovim/Search ln -s ../../completesearch make xml make pall make start |
Line 84: | Line 22: |
=== 6. PHP installieren und testen === | === 2. PHP installieren === |
Line 88: | Line 26: |
In diesem Ordner dann die Datei ''php.ini-development'' nach ''php.ini'' kopieren, letztere editieren und sicher stellen, dass die folgenden Zeilen auskommentiert sind: | In diesem Ordner dann die Datei ''php.ini-development'' nach ''php.ini'' kopieren, letztere editieren und sicher stellen, dass die folgenden Zeilen auskommentiert sind (= Semikolon am Anfang entfernen): |
Line 92: | Line 30: |
extension=php_mbstring.dll | extension = php_mbstring.dll date.timezone = Europe/Berlin |
Line 100: | Line 39: |
{{{ | |
Line 102: | Line 40: |
}}} | |
Line 106: | Line 43: |
{{{ | |
Line 108: | Line 44: |
}}} | |
Line 112: | Line 47: |
{{{ | |
Line 114: | Line 48: |
}}} |
|
Line 119: | Line 51: |
=== 7. User Interface einrichten und testen === | === 3. User Interface einrichten und testen === |
Line 124: | Line 56: |
cd ~/install/homeovim/Search | cd /home/install/homeovim/Search |
Line 129: | Line 61: |
~/install/php/php.exe -S | touch access.log touch error.log /home/install/php/php.exe -S localhost:8080 |
Line 132: | Line 66: |
Jetzt sollte unter folgender URL die Suche erscheinen und funktionieren> | Jetzt sollte unter folgender URL die Suche erscheinen und funktionieren: http://localhost:8080/index.php . |
Line 134: | Line 69: |
{{{ http://localhost:<port>/homeovim/index.php }}} |
''Bemerkung: Falls php.exe irgendwelche shared libraries (dll) nicht findet, das hier nachinstallieren: http://www.microsoft.com/en-us/download/details.aspx?id=30679'' |
Installationsanleitung für die Suche
Wen's interessiert: hier der Link zur alten Installationsanleitung, die mit Apache.
1. Ausführbare Programme für die Suche
Für Windows 7 sind die ausführbaren Programme (genannt "binaries") für die Suche bereits im Ordner Search/bin vorhanden. Eventuell funktionieren sie auch für andere Windows-Versionen. Falls nicht (merkt man spätestens in Schritt 2 unten), oder für andere Betriebssysteme (MacOS, Linux), müssen die binaries erst aus dem Quellcode kompiliert werden. Hier die Anleitung dazu.
2. Bauen des Indexes einrichten und testen
In einem Cygwin Fenster folgendes machen:
cd /home/install/homeovim/Search ln -s ../../completesearch make xml make pall make start
2. PHP installieren
Neuste Version (muss mindestens 5.4 sein) runterladen von http://windows.php.net . ZIP Datei, Thread-Safe auswählen, und im selben Ordner install wie oben in einem neuen Unterordner php entpacken.
In diesem Ordner dann die Datei php.ini-development nach php.ini kopieren, letztere editieren und sicher stellen, dass die folgenden Zeilen auskommentiert sind (= Semikolon am Anfang entfernen):
extension_dir = "ext" extension = php_mbstring.dll date.timezone = Europe/Berlin
3. User Interface einrichten und testen
In einem cygwin Fenster:
cd /home/install/homeovim/Search cp -a completesearch/userinterface/autocomplete-php . cp -a autocomplete-php/autocomplete_*.css . cp -a autocomplete-php/index.php . cp -a autocomplete-php/images . touch access.log touch error.log /home/install/php/php.exe -S localhost:8080
Jetzt sollte unter folgender URL die Suche erscheinen und funktionieren: http://localhost:8080/index.php .
Bemerkung: Falls php.exe irgendwelche shared libraries (dll) nicht findet, das hier nachinstallieren: http://www.microsoft.com/en-us/download/details.aspx?id=30679