Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Setting up xalan-xml following compiling xerces-c-3.1.1 and have this error message:
user@user:~$ export XALANCROOT=/home/user/xml-xalan/c
user@user:~$ export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
user@user:~$ cd xml-xalan/c
user@user:~/xml-xalan/c$ ./runConfigure -p linux -c gcc -x g++ -b 64
(-b 64 only for 64 bit machines, normally remove for default 32 bit install)
..........
However the next issue occurs for 'make' the install of xalan:
user@user:~/xml-xalan/c$ make all
....................................
/home/user/xml-xalan/c/src/xalanc/Utils/XalanMsgLib/XalanMsgLib.cpp:25: error: expected ‘,’ or ‘;’ before ‘namespace’
/home/user/xml-xalan/c/src/xalanc/Utils/XalanMsgLib/XalanMsgLib.cpp:74: error: expected ‘}’ at end of input
../../../../nls/include/LocalMsgData.hpp:34: warning: ‘xalanc_1_10::msgArray’ defined but not used
In the problem file 'XalanMsgLib.cpp':
Line 25: XALAN_CPP_NAMESPACE_BEGIN
Line 74: XALAN_CPP_NAMESPACE_END
Think I will use those packages instead as running into quite a few errors trying to compile and build xalan. Was able to do so with xerces. The aim is to have both packages installed to use with ovaldi.
I downloaded the source file for xalan and was able to compile it without any errors.
However I was trying to locate it in the following directories:
"Important: check whether Xalanc Library is really installed after the installation is completed. We can go to the directory /usr/local/lib and /usr/local/include to see whether there are files related to xalanc. If yes, then OK."
It is not located in either directory, only folders related to xerces.
I installed as follows:
user@user:~$ export XERCESCROOT=/home/user/xerces-c-src_2_8_0
user@user:~$ export XALANCROOT=/home/user/xalan-1.10/c
user@user:~$ export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
user@user:~$ cd xalan-1.10/c
user@user:~/xalan-1.10/c$ cd ~
user@user:~$ sudo su
root@user:/home/user#
root@user:/home/user# sudo chown -R user:user xalan-1.10 (directory was locked as root)
root@user:/home/user# exit
exit
user@user:~$ cd xalan-1.10/c
user@user:~/xalan-1.10/c$ ./runConfigure -p linux -c gcc -x g++ -b 64
user@user:~/xalan-1.10/c$ make
make -C src/xalanc all
.......................
make[1]: out of directory`/home/user/xalan-1.10/c/src/xalanc'
I am guessing that xalan is not installed correctly otherwise it would be located in those directories plus the 'make install' command doesn't work:
user@user:~/xalan-1.10/c$ sudo make install (same of just make install)
[sudo] password for user:
make -C src/xalanc install
make[1]: out of directory `/home/user/xalan-1.10/c/src/xalanc'
Makefile:126: /version.incl: No such file or directory
make[1]: *** there is no rule for this object `/version.incl' to do. Stop.
make[1]: out of directory `/home/user/xalan-1.10/c/src/xalanc'
make: *** [install] errors 2
It is looking for the above 'makefile:126: /version.incl'.
I think I will install xerces from source for ubuntu first, build the dependencies, make install and then to try to install xalan:
2.
add "export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH" to /etc/ld.so.conf
3.
you may need to change owner of source packages from root to normal user
4. Build Xerces
export XERCESCROOT=/home/user/xerces-c2-2.8.0+deb1
cd $XERCESCROOT
cd src/xercesc
./runConfigure -plinux -cgcc -xg++ -minmem -nsocket -rpthread -b64 -P /usr/local
make
sudo XERCESCROOT=$XERCESCROOT make install
5. Build Xalan
export XERCESCROOT=/usr/local
cd $XERCESCROOT
/usr/local$ cd ~
export XERCESCROOT=/home/user/xerces-c2-2.8.0+deb1
cd $XERCESCROOT
cd ~
export XALANCROOT=/home/user/xalan-1.10/c
cd $XALANCROOT
./runConfigure -p linux -c gcc -x g++ -b64 -P /usr/local
make
sudo XALANCROOT=$XALANCROOT make install
6.
Check the directories of /usr/local/lib and /usr/local/include to confirm the both Xerces and Xalan are both installed
The needs to be a wiki for a Ubuntu specific install of these XML libraries and packages as there is no definitive guide for this currently plus the install methods for other OS had to be interpreted in order to fit this installation.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.