Last active
December 12, 2015 09:48
-
-
Save carloespinosa/4753922 to your computer and use it in GitHub Desktop.
Installation of the old WSO2 WSF/C framework and Ruby C extensions in Mac OS X 10.8.2, GCC 4.2 by source with Homebrew. Also updated deprecated C syntax definitions in some of the Ruby C Extensions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WSO2 WSF/C | |
http://dist.wso2.org/products/wsf/c/2.0.0/wso2-wsf-c-src-2.0.0.zip | |
1) brew install libxml-2 | |
2) brew link libxml2 | |
3) brew install autoconf | |
# Remove the "-Wno-long-double" command line function in the config files since newer gcc (4.2) versions don't support this anymore. | |
4) grep -rl "\-Wno\-implicit\-function\-declaration" . | xargs perl -pi -e 's/-Wno-implicit-function-declaration//' | |
5) grep -rl "\-Wno\-long\-double" . | xargs perl -pi -e 's/-Wno-long-double//' | |
6) ./configure --prefix=/opt/wso2/wsf_c CC="gcc-4.2" CXX="g++-4.2" CPPFLAGS="-DHAVE_GETIFADDRS" | |
7) make | |
8) make install | |
9) chown -R {user-name} /opt/wso2/wsf_c | |
WSO2-WSF-Ruby-src-1.1.0 extension (https://github.com/carloespinosa/wso2-wsf-ruby-src-1.1.0) | |
1) brew install libtool | |
2) brew install automake | |
3) copy lib files from /opt/wso2/wsf_c/modules/rampart to /opt/wso2/wsf_c/lib | |
4) ruby extconf.rb && make && make install (main directory, wsservice directory, wsdlc directory) | |
5) Add to rbconfig.rb in specified rvm gemset | |
CONFIG["WSFC_HOME"] = "/opt/wso2/wsf_c" | |
CONFIG["WSF_LOG_DIR"] = "/var/log/" | |
CONFIG["WSF_LOG_LEVEL"] = "3" | |
CONFIG["WSF_RUBY_HOME"] = "/opt/wso2/wsf_ruby" | |
6) ruby install.rb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment