Monday, September 8, 2014

Using ANDLineChartView

ANDLineChartView is and easy to use view based class for displaying animated line chart. The source code is available in Github and the compilation steps is bit different compared to other chart SDKs and can be cracked open like given below. 
as per the instructions, need to run the pod install install the pod file. But this resulted in the below message 
-bash: pod: command not found 
The pod utility is not installed as it appeared. To resolve this issue, the cocoa pods needs to be installed from the github location,   
Even though there is another previous blog about installing cocoa pods, it is almost forgotten since no real life samples were done. Considering this as good opportunity, looked at the instructions in the cocoa pods site in the reference and the summary is like below. 
In short, the cocoa pods utilise a pod file which is a text file listing all the dependancies. Cocoapods will resolve dependancies between libraries, fetch the resulting source code, then link it together in the Xcode workspace to build the project. 

Installation of the cocoa pods is like below. 

Cocoapods is built with Ruby and it will be installable with the default ruby available on OS X. Below command said that it will install the gem and is given below. 

sudo gem install cocoapods 

This seems to be getting hung for a long time. and finally came back with the below error

ERROR:  Error installing cocoapods:
activesupport requires Ruby version >= 1.9.3.

One of the blog post was mentioning that executing the below statement could resolve the issue:

rvm install 1.9.3

however, doing this resulted in "rvm: command not found"

Did the below two steps which worked for most of the people

rm -rf ~/.rvm 
curl -L https://get.rvm.io | bash -s stable 

But this did not fully resolve the problem, and had to do the below as well. 

source ~/.rvm/scripts/rvm 
type dvm | head -n 1 

the output was 

rvm is a function 
The suggestion s to add the source ~/.rvm/scripts/rvm to the ~/.bash_profile file. for time being did not do this. 

Now trying again with the command 

Now trying again with the command rvm install 1.9.3

This created a system memory not available message as the hard disk was running low on memory.
this resulted in the below issue 

Error running 'requirements_osx_port_libs_install apple-gcc42 libyaml libksba',
showing last 15 lines of /Users/retheesh/.rvm/log/1410182167_ruby-1.9.3-p547/package_install_apple-gcc42_libyaml_libksba.log
To report a bug, follow the instructions in the gu

No comments:

Post a Comment