« Back to Technical Questions

Can't package using ver1.1.1's pkg_bundle.sh

Combination View Flat View Tree View
Threads [ Previous | Next ]
I've had the following problem. ( No problems with ver 1.0.4)
Pls tell me how to package correctly.

1. Packaging process doesn't progress at the specific step
//// Log ////
#
# /opt/axp-sdk.1.1.1/tools/pkg_build.sh
--project-dir '/source/ciscoapp/package' --auth-bundle
'/opt/axp-sdk.1.1.1/keys/auth_bundle.sig' --private-key
'/opt/axp-sdk.1.1.1/keys/private.key' --name 'ciscoapp' --version '1'
--description 'HelloWorld ver1' --source-dir '/source/ciscoapp/build'
--disk-limit '10M' --memory-limit '64M' --cpu-limit '1000'
--postinstall 'bin/post-install.sh'
SLIM Packaging Utility. (C) 2007 Cisco Systems, Inc
Checking dependencies...
Generated swap option: OFF
Creating project directories...
Generated Application UUID: 29027b4c-f830-4ddc-b2f0-d70e7f54dd51
Preparing configuration for the core packaging tool...
Creating runtime signatures...
Generating a list of files to package...
Preparing package manifest...
Processing manifest file information... <<<----- Here.
////////

2. At that step, [APP_BUILD_DIR]/package/pkg/core.log shows the following.
//// core.log ////
Replacing keywords in
/source/ciscoapp/package/templates/ciscoapp_manifest.template... done.
Replacing keywords in
/source/ciscoapp/package/templates/ciscoapp_package_spec.template...
done.
Replacing keywords in
/source/ciscoapp/package/templates/helloworld_manifest.template...
done.
Replacing keywords in
/source/ciscoapp/package/templates/helloworld_package_spec.template...
done.
Replacing keywords in
/source/ciscoapp/package/templates/pingapp_manifest.template... done.
Replacing keywords in
/source/ciscoapp/package/templates/pingapp_package_spec.template...
done.

Checking for installed files that are not in packaging file list...
The following files/directories in the install directory are missing
from packaging file list.
/opt/axp-sdk.1.1.1/lib/pkg/bin/fgrep: error while loading shared
libraries: libpcre.so: cannot open shared object file: No such file or
directory
/opt/axp-sdk.1.1.1/lib/pkg/bin/fgrep: error while loading shared
libraries: libpcre.so: cannot open shared object file: No such file or
directory
Do you wish to continue packaging without these files(y,n)? Please
answer y to continue, no to exit:
////////

Thanks in advance.
Makoto

I had the same issue on 2 different development machines.
The fix is to add in this sym link:
ln -s /lib/libpcre.so.0 /usr/lib/libpcre.so

More about the fix here:
http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ax/1.0/release/notes/axprn.html#wp46007

Edited by: carl.j.hanks.boeing.com on Oct 21, 2008 10:00 AM

Thanks for your help.
It works fine!


Makoto