Hi Keith,
find comments inlined.
> 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 start
>>with 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
>
I don't have a link, I just searched my GATE-discussion mail archive
and found out that the first one to raise this question at all was again me,
more than 2 years ago. But I got no relevant answer then, so I skipped
posting it again.
An URL is an URL indeed. I have absolutely no problem writing
file:/path/filename /* with one slash */
using any Linux program or browsing from console.
The only problem I have is calling
gate.DataStore.setStorageUrl() method which takes String,
i.e. I'm not supposed to pass an URL nor am responsible for parsing the
string.
So this is why I made a patch. Can't think of anything more clever.
>>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.
The version available currently on OntoDemo server 1.6.8.7 already
solves this issue, so you can skip bothering about that problem.
Hoewver, hold on a little, and better download the newest one that
we are about to release, with some more fixes and updated documentation.
>>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/
Yeah, I see from the log, that no matter that you did 'sudo'
the user name the installer uses is the one you logged with.
I think it takes these variables from the environment as given in the log:
user.name
user.home
user.dir
etc.
and these don't change when you do 'sudo'. So either must log as root
or give some write permissions to your user. Or install in folders
you have permissions for.
> 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 could guess the problem may be one of the following, as I left the
default folder for aliases to be the same as on Linux i.e.
/usr/bin/../kim-platform
- those /.. may get it crushing, though it works on Linux
- it is possible it tries to open the file dialog in read-write mode with
the default folder
(I cannot control this from anywhere) and may be again a question of
permissions.
So, in general, you could use directly the edit box, as you probably do.
But you can also help me if you can tell me which of the following
means what and which is more appropriate for the app and for the aliases:
Clean-Up at Startuo Folder
Preferences Folder
User Application Folder
The Dock
These (above) are the MacOSX native folders that the installer offers me.
It would be great if I could obtain some folders with equal meaning to
Program Files
Start Menu
Desktop
as in Windows. And I hope this will make the install more handy.
> 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.
Honestly, I don't really expect them to work. As I don't expect them to
work on all kinds of Linux. The desktop entry format still does not follow
a standard for all distributions, and MacOSX is not even Linux
we must admit. My initial idea was to create some folder with icon-links
as in Windows' program menu - soon found out this was not so simple on Linux
:)
And even if they work I prefer starting everything from the console :)
But if you can provide me some info on how desktop icons are being
created and handled under MacOSX I could try making a separate
script that creates them especially for OSX, different from the one I use
with Linux.
Greetings,
Ilian
_______________________________________________
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