Arduino IDE Library installation problem

I'm running version 0022ubuntu0.1 on Ubuntu 11.1

The IDE library is at /usr/share/arduino/libraries, with the library examples in subdirectories in the individual libraries. I'm trying to install the phi_prompt library modified to use a serial LCD. To do this I renamed the directory to PhiPrompt (to use the same naming style as other installed libraries) and put the examples in a 'examples' sub directory - similar to the already installed libraries. So I end up with:

/usr/share/arduino/libraries/PhiPrompt/examples

The problem I'm having is that the IDE doesn't 'see' the PhiPrompt examples in the 'Examples' drop-down menu. The PhiButtons examples that I'd previously installed are visible, as are all the other library examples. I've looked at directory and file permissions and there seems to be no problems there, and at every change I've made I've closed and re-opened the IDE. It's weird and I've never met anything like it - about the only thing I've not tried is a magical incantation!

What do I have to do to make the new library visible to the IDE, please?

JIm

User added libraries should go in the ~/arduino/libraries directory (or look in the preferences dialog in case it was changed).

mkdir -p ~/arduino/libraries

If you change the directory name, you obviously have to change the file names within the directory as well (and change the name of the #include in the .cpp file). Did you do that?
What are the file extensions of the examples?

WizenedEE:
User added libraries should go in the ~/arduino/libraries directory (or look in the preferences dialog in case it was changed).

The only library directory is /usr/share/arduino/libraries. There's no arduino directory in ~/ and creating one isn't found by the IDE. There's no library path in the IDE preferences or in the ~/.arduino/preferences.txt(?) file. There's also no examples subdirectory in the ~/sketchbook directory and if I put one there it's not found.

If you change the directory name, you obviously have to change the file names within the directory as well. Did you do that?

Errr, no!

That was it - I hadn't changed the example names to the base name of the directory. I've done it now and the examples are now found.

Thanks for the helpful reply.

Jim

Where do your sketches get saved? Wherever that is, there should be a libraries subdirectory there, which is where you put downloaded libraries. The examples for each library should be inside that libraries directory.