Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

ruby - Problems with the rails console, RVM and readline -


i've installed rvm way of making sure local development version of ruby same server's particular app work on (ruby 1.8.7). i've done this, , installed ruby 1.8.7 ok. however, when try start rails console error:

readline unable required, if need completion or history install readline reinstall ruby. may follow 'rvm notes' dependencies and/or read docs page http://rvm.beginrescueend.com/packages/readline/ . sure 'rvm remove x ; rvm install x' re-compile ruby readline support after obtaining readline libraries. couldn't load wirble: no such file load -- wirble 

i've read notes on page error refers (http://rvm.beginrescueend.com/packages/readline/), , followed instructions, involve installing readline, uninstalling ruby 1.8.7, installing ruby 1.8.7 again readline support. (actually page uses ruby 1.9.2 example i'm assuming should work 1.8.7 well. perhaps that's not case).

but, still same error. has else been through , figured out?
grateful advice - max

edit - i'm using ubuntu 9.10 btw in case that's relevant.

edit - here's output rvm info asked below:

$ rvm info  system:    system:     uname:       "linux max-laptop 2.6.31-22-generic #68-ubuntu smp tue oct 26 16:38:35 utc 2010 i686 gnu/linux"     bash:        "/bin/bash => gnu bash, version 4.0.33(1)-release (i486-pc-linux-gnu)"     zsh:         " => not installed"    rvm:     version:      "rvm 1.1.6 wayne e. seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]"    homes:     gem:          "not set"     ruby:         "not set"    binaries:     ruby:         "/usr/bin/ruby"     irb:          "/usr/bin/irb"     gem:          "/usr/bin/gem"     rake:         "/usr/bin/rake"    environment:     path:         "/home/max/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/var/lib/gems/1.8/bin:/home/max/software/svnmerge:/home/max/.gem/ruby/1.8/bin:/home/max/work/e_learning_resource/trunk/public/assets/dvd_files/bin:/opt/firefox:/home/max/.rvm/bin:/home/max/.rvm/bin"     gem_home:     ""     gem_path:     ""     my_ruby_home: ""     irbrc:        ""     rubyopt:      ""     gemset:       "" 

i had similar problem 1.9.2 on ubuntu 10.04, symptoms identical. in order work:

rvm pkg install readline 

or prior rvm version 1.6.32, need following command

rvm package install readline 

then:

apt-get install ncurses-dev 

and taking instructions @ http://rvm.beginrescueend.com/packages/readline/

cd $home/.rvm/src/ruby-1.9.2-p0/ext/readline ruby extconf.rb -- --with-readline-dir="$home/.rvm/usr" make install 

i had done system rvm install on server, needed this:

cd $home/.rvm/src/ruby-1.9.2-p0/ext/readline ruby extconf.rb -- --with-readline-dir="/usr/local/rvm/usr" make install 

after able have full access console.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -