You have to install simple-templater first!

12 views
Skip to first unread message

Luan

unread,
Jan 23, 2010, 4:44:14 PM1/23/10
to Rango Project
Hi everyone,

I tried to work on tutorial but I got the error message when running

rango create project blog --models=post,tag,comment --
controllers=posts

luan@luan-laptop:~$ sudo /opt/ruby/bin/gem install simple-templater
rango
Successfully installed simple-templater-0.0.1.4
Successfully installed rango-0.2.1
2 gems installed
Installing ri documentation for simple-templater-0.0.1.4...
Installing ri documentation for rango-0.2.1...
Installing RDoc documentation for simple-templater-0.0.1.4...
Installing RDoc documentation for rango-0.2.1...
luan@luan-laptop:~$
luan@luan-laptop:~$
luan@luan-laptop:~$ rango
You have to install simple-templater first!


My question is that I already installed rango, why it said that I had
to install simple-templater first?

Any ideas?

Thanks,
Luan

botanicus

unread,
Jan 24, 2010, 12:25:40 PM1/24/10
to Rango Project
Hi Luan,

Rango doesn't have any dependencies, because you use just a subset of
Rango if you want to. I. e. http://github.com/botanicus/rango-in-rails
resp. http://github.com/botanicus/rango-in-merb use just templating
layer which obviously doesn't need simple-templater etc.

The output you posted doesn't necessary mean you have it right,
because you might have more Ruby installations and in case you don't
have properly setup your $PATH you might call wrong rango script. I
just tried, it works fine for me.

Jakub

Luan

unread,
Jan 24, 2010, 2:58:28 PM1/24/10
to Rango Project
Thanks Jakub,


When I do which rango, I got this

luan@luan-laptop:~$ which rango
/opt/ruby/bin/rango
luan@luan-laptop:~$


And I have ruby in my path

luan@luan-laptop:~$ cat .bash_profile
export OC4J_HOME=/opt/oc4j

export JAVA_HOME=/opt/java
export ECLIPSE_HOME=/opt/eclipse
export GROOVY_HOME=/opt/groovy

export GRAILS_HOME=/opt/grails
export TNS_ADMIN=/opt/oracle
export ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1
export RUBY_HOME=/opt/ruby

export NLS_LANG=AMERICAN_AMERICA.UTF8
export PATH=$ORACLE_HOME/bin:$RUBY_HOME/bin:$JAVA_HOME/bin:$OC4J_HOME/
bin:$ECLIPSE_HOME:$GROOVY_HOME/bin:$GRAILS_HOME/bin:$PATH:~/.gem/ruby/
1.9.1/bin

export AWT_TOOLKIT=MToolkit

Thanks,
Luan

On Jan 24, 11:25 am, botanicus <stas...@101ideas.cz> wrote:
> Hi Luan,
>
> Rango doesn't have any dependencies, because you use just a subset of
> Rango if you want to. I. e.http://github.com/botanicus/rango-in-rails

> resp.http://github.com/botanicus/rango-in-merbuse just templating

botanicus

unread,
Jan 24, 2010, 3:09:21 PM1/24/10
to Rango Project
Well it doesn't mean anything actually, rather show me:

which gem
which ruby
which rango

> > resp.http://github.com/botanicus/rango-in-merbusejust templating

Luan

unread,
Jan 28, 2010, 11:13:15 PM1/28/10
to Rango Project
Hi Jakub,

Thanks for your help again. Here is my ruby/gem/rango install

luan@luan-laptop:~/app/rango/tutorial$ which gem
/opt/ruby/bin/gem
luan@luan-laptop:~/app/rango/tutorial$ which ruby
/opt/ruby/bin/ruby
luan@luan-laptop:~/app/rango/tutorial$ which rango
/opt/ruby/bin/rango

Then I installed rango as below

luan@luan-laptop:~$ sudo /opt/ruby/bin/gem install simple-templater
rango

[sudo] password for luan:
[Version 0.0.1] Imported from Rango
[Version 0.0.1] bin/simple-templater can generate a project or a stub
[Version 0.0.1] it can find all gems with simple-templater.scope file
in the root
[Version 0.0.1] it has hooks running before & after templater
[Version 0.0.1] it knows how to work with diff stubs
[Version 0.0.1] it can have variables in file names of stub files
[Version 0.0.1] it can have collections in file names of stub files
[Version 0.0.1] it use Erubis for processing templates (all files
ending with .rbt)
[Version 0.0.1] it has context and hooks for interaction with user
(ARGV/STDIN)
Successfully installed simple-templater-0.0.1.5


Successfully installed rango-0.2.1
2 gems installed

Installing ri documentation for simple-templater-0.0.1.5...


Installing ri documentation for rango-0.2.1...

Updating class cache with 1485 classes...
Installing RDoc documentation for simple-templater-0.0.1.5...


Installing RDoc documentation for rango-0.2.1...

luan@luan-laptop:~$ ls


later I created a rango project as in tutorial

luan@luan-laptop:~/app/rango/tutorial$
luan@luan-laptop:~/app/rango/tutorial$ rango create project blog --
models=post,tag,comment --controllers=postsYou have to install simple-
templater first!
luan@luan-laptop:~/app/rango/tutorial$


Thanks for all the help!

Luan

Reply all
Reply to author
Forward
0 new messages