I’m digging around in PhoneGap to build a quick prototype we need.
When I navigate to the
~/cordova-2.1.0/bin$
and run
./create ~/jdphonegap com.jdphonegap.app JDPhoneGap
I get the following error
unexpected operator
./create: 48: ./create: function: not found
I’m not the only one:
https://groups.google.com/forum/?fromgroups=#!topic/phonegap/uI_rmd-Gto0
A little help?
Change the first line in
createscript from#! /bin/shto
#!/bin/bashDownload
commons-codec-1.6from main server:http://archive.apache.org/dist/commons/codec/binaries/commons-codec-1.6-bin.tar.gz
Extract the
commons-codec-1.6.jarand place it to thecordova-android/framework/libs/(need to createlibs)Alternatively change the URL of this package in
createscript at line 96Install
antif you don’t have it: http://archive.apache.org/dist/ant/ant-current-bin.zip, extract and add the antbinfolder in your PATHExample for
antinstalled in/usr/local:export PATH=/usr/local/ant/bin:$PATH
Then you can run the
createscript as documented.