Syntext Forums - Serna Enterprise XML Editor, Serna Free XML Editor
(#21 (permalink))
Old
PFH PFH is offline
Junior Member
 
Posts: 15
Join Date: Oct 2009
Default And the next error... - 11-12-2009, 11:20 AM

cp /home/.../trunk/3rd/python/install/lib/python2.6/lib-dynload/binascii.so /home/.../trunk/build/serna/app/pkg/opt/serna-free-4.2/python/lib/python2.6/lib-dynload/binascii.so; chmod 755 /home/.../trunk/build/serna/app/pkg/opt/serna-free-4.2/python/lib/python2.6/lib-dynload/binascii.so
strip --strip-unneeded /home/.../trunk/build/serna/app/pkg/opt/serna-free-4.2/python/lib/python2.6/lib-dynload/binascii.so
gmake[1]: *** No rule to make target `/home/.../trunk/3rd/python/install/lib/python2.6/lib-dynload/bz2.so', needed by `/home/.../trunk/build/serna/app/pkg/opt/serna-free-4.2/python/lib/python2.6/lib-dynload/bz2.so'. Stop.
gmake[1]: Leaving directory `/home/.../trunk/build/serna/app'
make: *** [.pkg_dir] Error 2
make: Leaving directory `/home/.../trunk/build/serna/app'
Reply With Quote
(#22 (permalink))
Old
kondor's Avatar
линукс-покемон
 
Posts: 49
Join Date: Apr 2009
Default 11-12-2009, 12:32 PM

Haven't met such issue before. Seems python is built w/o bz2 library support: try to install libbz2-dev package and rebuild.

BTW, I suppose that Serna may work ignoring this one:
Code:
cd build/serna/bin
. envserna.sh
./serna
Update:
I tested it out on clear installation of Ubuntu 9.10. This error happens on RPM packaging stage so you can ignore this.


Get the latest updates on Syntext Blog
Reply With Quote
(#23 (permalink))
Old
PFH PFH is offline
Junior Member
 
Posts: 15
Join Date: Oct 2009
Default The next error - 11-13-2009, 08:27 AM

Hallo Kondor,

how does one "ignore" an error message, when the build process dies - as it does with the latest error message:

srcdir="/home/.../trunk/serna/app"; export srcdir; \
top_srcdir="/home/.../trunk"; export top_srcdir; \
top_builddir="/home/.../trunk/build"; export top_builddir; \
THIRD_DIR="/home/.../trunk/3rd"; export THIRD_DIR; \
RELEASE="20091113"; export RELEASE; \
RPM_TOPDIR="/home/.../trunk/rpm"; export RPM_TOPDIR; \
RPM_PREP_MAKEFILE="/home/.../trunk/serna/app/rpm/Makefile"; export RPM_PREP_MAKEFILE; \
RPM_SPEC="/home/.../trunk/build/serna/app/serna.spec"; export RPM_SPEC; \
RPM_PREFIX="/opt"; export RPM_PREFIX; \
PKG_ROOT="/home/.../trunk/build/serna/app/pkg"; export PKG_ROOT; \
MAKEFILE_INSTALL="/home/.../trunk/build/serna/app/Makefile.install"; export MAKEFILE_INSTALL; \
RPM_VERSION="4.2.0"; export RPM_VERSION; \
VERSION_ID="4.2"; export VERSION_ID; \
PLUGIN_NAME=""; export PLUGIN_NAME; \
PLUGIN_DLL=""; export PLUGIN_DLL; \
/home/.../trunk/tools/buildsys/dist/make-rpm.sh && /home/.../trunk/serna/app/serna_postrpmbuild.sh
+ [ x/home/.../trunk = x ]
+ . /home/.../trunk/tools/buildsys/dist/functions
+ require srcdir top_builddir THIRD_DIR RELEASE RPM_PREP_MAKEFILE MAKEFILE_INSTALL RPM_SPEC RPM_TOPDIR PKG_ROOT RPM_PREFIX
/home/.../trunk/tools/buildsys/dist/make-rpm.sh: 1: Bad substitution
make: *** [rpm] Error 2
make: Leaving directory `/home/.../trunk/build/serna/app'
Reply With Quote
(#24 (permalink))
Old
kondor's Avatar
линукс-покемон
 
Posts: 49
Join Date: Apr 2009
Default 11-13-2009, 10:32 AM

Quote:
Originally Posted by PFH View Post
how does one "ignore" an error message, when the build process dies - as it does with the latest error message:
Again: it is RPM packaging stage error. It does not affect on how Serna is built. You may no need to build RPM on Ubuntu.

It seems happens because of incompatibility of shell interpreters. In Ubuntu: /bin/sh is symlinked to /bin/dash which may have some restrictions not accepted by the packaging script. I've found a workaround: replace the first line in tools/buildsys/dist/make-rpm.sh in the way:
Code:
#!/bin/sh -x
with
Code:
#!/bin/bash -x
And no to go again over the whole build process execute the following command in build/serna/app dir:
Code:
make pkg
P.S. and do not forget to install rpm package required by the script:
Code:
sudo apt-get install rpm
.


Get the latest updates on Syntext Blog
Reply With Quote
(#25 (permalink))
Old
PFH PFH is offline
Junior Member
 
Posts: 15
Join Date: Oct 2009
Default Serna seems to have built, but ... - 11-27-2009, 12:14 PM

Hallo Kondor,

Serna has 'finished' the build without complaints for the first time.
What can be checked to be sure that the build was successful?
I ask this because install.sh is not to be found and INSTALL just says,
"3. Installing Serna
Serna can be installed using standard installation methods for each OS
it can be built on. "

I found and started a skript named tgz-install.sh and it said
Enter installation prefix [/opt]:
Installing Serna to: /opt/serna-free-4.2.0-20091116-linux

but then gave up with Installation aborted

Any suggestions?
Reply With Quote
(#26 (permalink))
Old
PFH PFH is offline
Junior Member
 
Posts: 15
Join Date: Oct 2009
Default Any chance of getting a response to my message of a week ago - 12-03-2009, 08:29 AM

Hallo Kondor,

Any chance of getting a response to my message of a week ago?
Reply With Quote
(#27 (permalink))
Old
kondor's Avatar
линукс-покемон
 
Posts: 49
Join Date: Apr 2009
Default 12-05-2009, 08:43 AM

Quote:
Originally Posted by PFH View Post
Any chance of getting a response to my message of a week ago?
Hello,

Sorry for the delay with reply, I have lots of work.

Quote:
Originally Posted by PFH View Post
What can be checked to be sure that the build was successful?
Standard *nix-shell approach: comparing exit code of launched application with 0.
Code:
[serna-free]$ ./build.sh && echo "Serna build success"
Serna cannot be directly installed from the build directory. Use packed Serna distribution located as build/serna/serna-free-X.X.X-YYYYMMDD-linux.tgz. Or you may run Serna directly from the build directory:
Code:
[serna-free]$ cd build/serna/bin
[bin]$ . envserna.sh
[bin]$ ./serna


Get the latest updates on Syntext Blog
Reply With Quote
Reply

Bookmarks

Tags
build, libxml, publishing

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.1
vBulletin Skin developed by: vBStyles.com