感谢楼主……但实在忍受不了蜗牛速度了
这里有Wikisrv作者的blog
http://haukap.net/category/ipod-touch-iphone/
还有维基百科源文件的下载地址(中文)
http://download.wikimedia.org/zhwiki/latest/
里面的zhwiki-latest-pages-articles.xml.bz2就是,用迅雷200K/s
app地址:
http://www.haukap.com/WikiServer/WikiServer_0_20.zip
原作者的安装说明 可惜是针对Mac的
I’ve just uploaded a new version. I think there are some great enhancements:
Xapian is no longer needed. Indexing is a lot faster and the index itself is much smaller. Indexing the English edition took about 40 minutes, the German is prepared in less than 13. Still perl/grep is used so as soon as these are replace by a native C++ program I assume the English index is ready in less than half an hour.
The basic server is now only one single file.
The server starts as a daemon if you’re launching it with the “-v-” switch.
There is a nice generic application for the iPod Touch/iPhone. It has a familiar icon and allows you to start/stop the server and launch the browser. Manually starting the server using ssh is not necessary anymore! (great if you need to reboot your toy)
I found out that many people were not able to install the software on their devices. The need to install Xapian was to difficult. So now, if you’re on a Mac, everything is ready in the new package. For the other OSs the source for the indexer is included.
Here is the new installation instruction (Mac OS X, see some annotations at the end):
Download the package here: WikiServer v0.20
Unzip the package (on the Mac this is done automatically and you will find a new folder in your downloads folder)
Download the Wikipedia archive files:
en:
http://download.wikimedia.org/en ... es-articles.xml.bz2
de:
http://download.wikimedia.org/de ... es-articles.xml.bz2
Place the downloaded archive file into the “Indexer” folder (inside the unzipped package)
Open a terminal, navigate to the “Indexer” folder and enter “make data”. For the German version please first edit the “Makefile” and replace “en” with “de” at the start of the file.
While the file is splitted and then the index is build copy the contents of the “Applications” and “private” folders from the “iPhone or iPod Touch” folder inside the package to you’re device. Use the provided directory structure below the “private” folder. Finally you should have the “WikiSrv.app” in your “Applications” folder and a folder name “Wikipedia” inside the “Media” directory.
The new application icon didn’t shows up automatically on the home screen. Either reboot you’re device (press and hold the home and on/off button some seconds) or install/uninstall an application using the “Installer.app”. Sending a “SIGHUP” to the “SummerBoard.app” works also. Any better ideas?
As soon as the index is done you have a folder called “en” (or “de”) inside the “Indexer” folder. Copy everything to the “~/MediaWikipedia/en” (or …/de) folder. Be sure not to delete the contents of the destination folder, especially for the German version the “language.config” file is needed. An also be sure not to end up with something like “Wikipedia/en/en/…” or so.
Start the “WikiSrv.app”, enable the server with the slider and launch you’re Safari.
Enter a search phrase. “test” is a good one for the first start.
As before: No warranty that you’re device is not crashing or so. Mine does it not but who knows?
Anyway: Have fun!
If you’re not using Mac OS X:
You need to compile the “indexarticles.cpp”. If your c++ tool chain (using gcc) is working from the command line simply enter “make indexarticles”. I will check if the source happily compiles using Visual C++ on Windows also. If not it should be easy to fix. No rocket science technology used. I promise. But probably you will get into trouble when it comes to use perl and grep. As soon as I find the time I will do a stand alone application for indexing.
偶E文不行 哪位大大搞定了麻烦告知一下步骤
