Start a Conversation

Unsolved

This post is more than 5 years old

D

3017

December 30th, 2009 07:00

Testing SDK on Ubuntu: Is it possible?

Hello!

I'm developing a Java application which should write on a Centera CAS using the SDK.

The production machine will run a Red Hat Linux, but for development only, I need to use an Ubuntu 9.04 Desktop.

Is it possible? I ran the installation script and added the default installation directory to the PATH environment variable, but I'm having a

java.lang.UnsatisfiedLinkError: com.filepool.natives.FPLibraryNative.setLastError(I)V

when calling

vPool = new FPPool (poolAddress);

The code used to work on Windows, which I cannot temporarily use. I don't need performance or special features, just writing and reading some files...

Thank you advance and have a happy new year!

2 Intern

 • 

337 Posts

December 30th, 2009 07:00

HI

You should not have issues between the two platforms.

Did you install the java stuff required?

After installing the sdk, please vi /etc/ld.so.conf and add the pass for your os bit size eg /usr/local/Centera_SDK/32/ and then run a ldconfig.

Holger

6 Posts

December 30th, 2009 08:00

Thanks, you helped me find out where to investigate further, but I added

include /usr/local/Centera_SDK/lib/32/

to ld.so.conf and nothing changed.

I guess I'll need to do something else...

20 Posts

December 30th, 2009 19:00

Did you install SDK for Linux GCC-4? Are you using 64-bit or 32-bit Ubuntu? Did you set LD_LIBRARY_PATH to /usr/local/Centera_SDK/lib/32 or 64?

Please check those things to verify that loading of SDK libraries is ok.

Thank you

Happy new year

YT

6 Posts

January 3rd, 2010 06:00

Sorry for the delay, but unfortunately I'm here again on the same thread...

  • I checked that I had downloaded and installed the correct version of the libraries.
  • I reverted /etc/ld.so.conf to its original configuration
  • I ran

               sudo ldconfig /usr/local/Centera_SDK/lib/32

  • I checked that the libraries were loaded using

               ldconfig -p        and saw that they were

Still no success, though, and I get the same error...

I still didn't set the LD_LIBRARY_PATH successfully: I tried setting it in various ways, none of which actually create the variable persistently (they all work when I change existing variables, but LD_LIBRARY_PATH is not set by default)! I found on Ubuntu forums that this variable is not used, so I thought that once libraries are loaded, everything should be ok... NOPE...

Please, what suggestions do you have?


Thank you again in advance!

6 Posts

January 4th, 2010 01:00

Hello again!

I found the issue: The Java VM machine on Ubuntu didn't use the system libraries and I had to specify

-Djava.library.path=/usr/local/Centera_SDK/lib/32

Thanks for your help!

No Events found!

Top