Skip to content

agrabovskis/pkg-64bit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

64-bit adjustments for Glassfish pkg

Adjusted source-code to enable the use of bundled "pkg" tool of Glassfish 4 in 64 bit OS. The main guidelines are taken from [this blog post] (https://blog.kumina.nl/2010/07/glassfish-3-0-1s-pkg-tool-using-debians-python-packages/) and updates from [this forum thread] (https://www.java.net/forum/topic/glassfish/glassfish/how-make-pkg-work-glassfish-4-kubuntu-1404-x64). Steps to run the "pkg" under 64 bit OS-es:

  1. apt-get install python-dev gcc python-cherrypy python-mako python-openssl python-ply python-pycurl python-simplejson
  2. Download _actions.c from this project (you can clone the project if you have git installed on the server)
  3. gcc -I/usr/include/python2.7 -shared -fpic -O2 _actions.c -o _actions.so
  4. Hit the "pkg" tool: /opt/glassfish/bin/pkg
  5. mv /opt/glassfish/pkg/bin/pkg /opt/glassfish/pkg/bin/pkg.orig
  6. Download pkg from this project and copy to /opt/glassfish/pkg/bin/pkg
  7. mkdir /opt/glassfish/pkg/custom-lib
  8. cp -r /opt/glassfish/pkg/vendor-packages/pkg /opt/glassfish/pkg/custom-lib
  9. cp _actions.so /opt/glassfish/pkg/custom-lib/pkg/actions/_actions.so
  10. download init.py from this folder
  11. cp __init__.py /opt/glassfish/pkg/custom-lib/pkg/actions/__init__.py
  12. enjoy

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published