How to make ZeroC Ice for Linux from source

in Help Center
Hello,
Another adventure getting going.
First, I cooked up some examples in the Windows C# .NET realm of things to start proving it out and works great.
Now making the transition into Linux, Ubuntu 10.04 LTS (x86) for development purposes, ultimately cross compiled to Linux ARM. Need a little help with the Linux x86 leg of the journey.
I extract the source and now I just run sudo make from the command prompt, possibly also sudo make installer? However, I'm getting some errors.
Possibly I am missing a tool in the tool chain? The Unix/Linux part is a bit rusty to me still.
Thank you...
Regards,
MichaelAttachment not found.
Another adventure getting going.
First, I cooked up some examples in the Windows C# .NET realm of things to start proving it out and works great.
Now making the transition into Linux, Ubuntu 10.04 LTS (x86) for development purposes, ultimately cross compiled to Linux ARM. Need a little help with the Linux x86 leg of the journey.
I extract the source and now I just run sudo make from the command prompt, possibly also sudo make installer? However, I'm getting some errors.
Possibly I am missing a tool in the tool chain? The Unix/Linux part is a bit rusty to me still.
Thank you...
Regards,
MichaelAttachment not found.
0
Comments
You're missing the mcpp third-party library, see the "Third-party libraries" section in the cpp/INSTALL.LINUX file from your Ice source distribution for the list of required 3rd party libraries.
You can download the third-party sources (with patches) from our download page. You will find instructions in the README file of the third-party source distribution for how to build each package. Note that you don't need to build all the third-parties included in the distribution. On Linux, you typically only need to build mcpp and possibly BerkeleyDB. Other 3rd parties are usually available from your distribution software repository.
Cheers,
Benoit.
Now have a different set of issues: probably needs the DB? What files do I need for it? Just the DB downloads?
Attachment not found.
Thank you...
You need to install bzip2, openssl and db dev packages, you could use the ones from ubuntu or build the ones in the Ice third party sources.
The ubuntu packages you need to install are: libbz2-dev, libdb4.8++-dev and libssl-dev
Note that there are also Ice 3.4 Ubuntu packages, note those packages are not maintained by ZeroC
You can install then with "sudo apt-get install zeroc-ice34"
If I just type slice2cpp for instance, I get:
However, when I qualify its full path, it seems to work:
That's with the requisite paths in my /etc/environment.
At a loss as to why I get different behavior, or do I need to configure scripts for each of the executables now?
The install directory is defined in cpp/config/Make.rules, look at the prefix definition at the beginning of the file.
Regards,
Jose
When I run slice2cpp I get the following error.
I've got the following in my .profile:
And I've even got this in my environment:
1) Create a file /etc/ld.so.conf.d/ice.conf. 2) Add the path of the lib directory to the file, and save it. 3) Run ldconfig as root to apply the changes.
The reason is that LD_LIBRARY_PATH is a protected environment variable and you cannot set it in the .profile, see https://help.ubuntu.com/community/EnvironmentVariables#File-location_related_variables