At 09:32 AM 8/7/2006, Ilian Kitchukov wrote:
I found it discussed but not solved in the GATE forums. The problem is that under Windows an URL for a file should startwith the "file:/" prefix and under Linux for some reason with "file://" (2 slashes).
Do you have a link to the relevant GATE discussion? I've come across this problem before with GATE and other Java applications. A URL is a URL and as far as I can tell from RFC3986 (http://www.ietf.org/rfc/rfc3986.txt) a URL of the form file:/some/path should be perfectly valid on any system, and not accepting it is most likely a bug. I suspect that Linux and FreeBSD/Mac OSX behave very similarly in this regard and on my system the following code:
System.out.println(new File(".").getCanonicalFile().toURL().toExternalForm());
prints:
file:/Users/suderman/Documents/workspace/URLTest
Then you should be able to load the storage with GATE. There are, however, two more ways to have the corpus annotated in GATE:
Excellent. I should be able to do what I need, although I'm sure to be back with more questions. Fortunately we are working with a small set of documents so speed or storage space isn't an issue. I just want a way to peek into the system and see what the gazetteer is doing as I tweak Jape grammars etc.
As for the installator problem, I guess it still remains. It is probably caused by some access permissions for the user you're installing KIM under
That seems to be the case and I suspect Mac OSX doesn't like the user installing applications into /usr/local and would prefer they went into /Applications. Even if I launch the installer with su or sudo the installer uses my user account when attempting to install the KIM files. However, creating the /usr/local/kim-platform directory with the correct permissions before running the installer solves the problem. The exact sequence of commands is:
cd /usr/local sudo mkdir kim-platform sudo chown your-user-id kim-platform cd ~/Desktop sudo open kim.install.1.6.8.7.app/I've also attached the error log that is generated when I click the "Choose" button when selecting the installation directory or when selecting where to create the startup icons. The installer hangs (with all the buttons greyed out) if I try to change either of these settings. This is likely a bug in the installer or with Java on Mac OSX and fortunately it doesn't happen when it is time to select the Tomcat directory!
I should also mention that the startup icons don't work on the Mac. When I double click on any of the icons the file opens up in a text editor rather than starting the application. Unfortunately I haven't been able to find a Mac user that knows what the [Desktop entry] files are supposed to do in OSX.
Cheers, Keith
mac-osx-install-errors.log
Description: Binary data
_______________________________________________ NOTE: Please REPLY TO ALL to ensure that your reply reaches all members of this mailing list. KIM-discussion mailing list [email protected] http://ontotext.com/mailman/listinfo/kim-discussion_ontotext.com
