Ruby on Rails Friday, September 18, 2015

Hello sorry @colin .i am a new one to this forum as well as ruby so if any mistake made by me then i am sorry.
well the output of $ apt-cache policy gcc is
gcc:
  Installed: 4:4.8.2-1ubuntu6
  Candidate: 4:4.8.2-1ubuntu6
  Version table:
 *** 4:4.8.2-1ubuntu6 0
        500 http://in.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status

Though @coli u had told me to try out sudo apt-get install libxslt1-dev libxml2-dev command ,its working fine showing that

libxslt1-dev is already the newest version.
libxml2-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 490 not upgraded.

And after it i try to install rails by gems install rails but the same error again comes up.
i had try to install nokogiri by trying out sudo gem install nokogiri -v '1.6.6.2' -- --use-system-libraries --with-xml2-include=/usr/include/libxml2 --with-xml2-lib=/usr/lib
command & it was working fine. So help me guys..

On Monday, September 14, 2015 at 3:34:22 PM UTC+5:30, Prasanna Moharana wrote:

Hello every body am very new to this group.
i have some issue regarding Rails installation.Though i have installed Ruby,bundler etc i was trying to install rails using gem install rails command but there are some error like

ERROR:  Error installing rails:
    ERROR: Failed to build gem native extension.

    /home/prasanna/.rvm/rubies/ruby-2.2.3/bin/ruby -r ./siteconf20150914-3856-mtv6bq.rb extconf.rb
checking if the C compiler accepts ... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/home/prasanna/.rvm/rubies/ruby-2.2.3/bin/$(RUBY_BASE_NAME)
    --help
    --clean


so can any body please help me to tackle this..

PS.Tried -sudo apt-get install mkmf ,
gem install mkmf
build essential command etc..so please help me to get rid of these..

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5afac354-e48d-430f-abc4-f4da6aa51e7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment