PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.ruby > Problems installing RRDtool gem under Windows
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Problems installing RRDtool gem under Windows

Réponse
 
LinkBack Outils de la discussion
Vieux 31/03/2008, 13h58   #1
Victor Reyes
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Problems installing RRDtool gem under Windows

[Note: parts of this message were removed to make it a legal post.]

Team,

I am trying to install RRDtool under MS Windows/XP.
I tried to install the gem and got the following errors:

C:\$user\downloads\Ruby and Friends>ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]

C:\$user\downloads\Ruby and Friends>gem install RubyRRDtool-0.6.0.gem
Building native extensions. This could take a while...
ERROR: While executing gem ... (RuntimeError)
Error instaling RubyRRDtool-0.6.0.gem:
ERROR: Failed to build gem native extension.

ruby extconf.rb install RubyRRDtool-0.6.0.gem
checking for main() in z.lib... no
checking for main() in png.lib... no
checking for main() in freetype.lib... no
checking for main() in art_lgpl_2.lib... no
checking for rrd_first() in rrd.lib... no
creating Makefile

nmake
'nmake' is not recognized as an internal or external command,
operable program or batch file.


Gem files will remain installed in
c:/ruby/lib/ruby/gems/1.8/gems/RubyRRDtool-0.6.0 for inspection.
Results logged to c:/ruby/lib/ruby/gems/1.8/gems/RubyRRDtool-0.6.0
/gem_make.out

I then tried the binary distribution (

rrdtool-1.2.27-w32.zip
<http://www.gknw.net/mirror/rrdtool/rrdtool-1.2.27-w32.zip>
06-Mar-2008 02:24 1.0M ZIP compressed archive) for Windows.

But when I try the sample pgm I get the error listed below.

C:\$user\downloads\Ruby and Friends\rrdtool-1.2.27-w32\rrdtool-1.2.27-w32>ls
-al
total 4146
drwx------ 2 ReyesV Domain+Users 512 Mar 31 08:49 .
drwx------ 3 ReyesV Domain+Users 512 Mar 28 15:39 ..
-rwx------ 1 ReyesV Domain+Users 113828 Feb 17 10:26 CHANGES
-rwx------ 1 ReyesV Domain+Users 15405 Feb 17 10:26 COPYING
-rwx------ 1 ReyesV Domain+Users 3693 Feb 17 10:26 COPYRIGHT
-rwx------ 1 ReyesV Domain+Users 60444 Feb 17 10:26
DejaVuSansMono-Roman.ttf
-rwx------ 1 ReyesV Domain+Users 2031 Feb 17 10:26 NEWS
-rwx------ 1 ReyesV Domain+Users 2545 Feb 17 10:26 README
-rwx------ 1 ReyesV Domain+Users 183 Mar 6 01:23 readme.txt
-rwx------ 1 ReyesV Domain+Users 960512 Mar 6 01:23 rrdcgi.exe
-rwx------ 1 ReyesV Domain+Users 959488 Mar 6 01:23 rrdtool.exe
-rwx------ 1 ReyesV Domain+Users 1090 Mar 28 15:59 rrdtoolTest00.rb

C:\$user\downloads\Ruby and Friends\rrdtool-1.2.27-w32\rrdtool-1.2.27-w32>ruby
rrdtoolTest00.rb
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require': no such file to load -- RRD (LoadError)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from rrdtoolTest00.rb:1


Suggestions will be greatly appreciated.

Thank you

Victor

  Réponse avec citation
Vieux 31/03/2008, 14h13   #2
Jano Svitok
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Problems installing RRDtool gem under Windows

On Mon, Mar 31, 2008 at 2:58 PM, Victor Reyes <victor.reyes@gmail.com> wrote:
> Team,
>
> I am trying to install RRDtool under MS Windows/XP.
> I tried to install the gem and got the following errors:
>
> C:\$user\downloads\Ruby and Friends>ruby -v
> ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
>
> C:\$user\downloads\Ruby and Friends>gem install RubyRRDtool-0.6.0.gem
> Building native extensions. This could take a while...
> ERROR: While executing gem ... (RuntimeError)
> Error instaling RubyRRDtool-0.6.0.gem:
> ERROR: Failed to build gem native extension.
>
> ruby extconf.rb install RubyRRDtool-0.6.0.gem
> checking for main() in z.lib... no
> checking for main() in png.lib... no
> checking for main() in freetype.lib... no
> checking for main() in art_lgpl_2.lib... no
> checking for rrd_first() in rrd.lib... no
> creating Makefile
>
> nmake
> 'nmake' is not recognized as an internal or external command,
> operable program or batch file.
>
>
> Gem files will remain installed in
> c:/ruby/lib/ruby/gems/1.8/gems/RubyRRDtool-0.6.0 for inspection.
> Results logged to c:/ruby/lib/ruby/gems/1.8/gems/RubyRRDtool-0.6.0
> /gem_make.out
>
> I then tried the binary distribution (
>
> rrdtool-1.2.27-w32.zip
> <http://www.gknw.net/mirror/rrdtool/rrdtool-1.2.27-w32.zip>
> 06-Mar-2008 02:24 1.0M ZIP compressed archive) for Windows.
>
> But when I try the sample pgm I get the error listed below.
>
> C:\$user\downloads\Ruby and Friends\rrdtool-1.2.27-w32\rrdtool-1.2.27-w32>ls
> -al
> total 4146
> drwx------ 2 ReyesV Domain+Users 512 Mar 31 08:49 .
> drwx------ 3 ReyesV Domain+Users 512 Mar 28 15:39 ..
> -rwx------ 1 ReyesV Domain+Users 113828 Feb 17 10:26 CHANGES
> -rwx------ 1 ReyesV Domain+Users 15405 Feb 17 10:26 COPYING
> -rwx------ 1 ReyesV Domain+Users 3693 Feb 17 10:26 COPYRIGHT
> -rwx------ 1 ReyesV Domain+Users 60444 Feb 17 10:26
> DejaVuSansMono-Roman.ttf
> -rwx------ 1 ReyesV Domain+Users 2031 Feb 17 10:26 NEWS
> -rwx------ 1 ReyesV Domain+Users 2545 Feb 17 10:26 README
> -rwx------ 1 ReyesV Domain+Users 183 Mar 6 01:23 readme.txt
> -rwx------ 1 ReyesV Domain+Users 960512 Mar 6 01:23 rrdcgi.exe
> -rwx------ 1 ReyesV Domain+Users 959488 Mar 6 01:23 rrdtool.exe
> -rwx------ 1 ReyesV Domain+Users 1090 Mar 28 15:59 rrdtoolTest00.rb
>
> C:\$user\downloads\Ruby and Friends\rrdtool-1.2.27-w32\rrdtool-1.2.27-w32>ruby
> rrdtoolTest00.rb
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require': no such file to load -- RRD (LoadError)
> from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require'
> from rrdtoolTest00.rb:1


You need to have VC6 installed and its environment setup before
running gem install (call vsvars32.bat).
After you do that, make sure nmake.exe in in your %PATH%.

The binary distribution doesn't contain the ruby extension, you are
looking for binary GEM, but rubyforge has only source one.

Jano

  Réponse avec citation
Vieux 31/03/2008, 14h29   #3
Victor Reyes
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Problems installing RRDtool gem under Windows

[Note: parts of this message were removed to make it a legal post.]

I assumed VC6 = Visual C Version 6. If this is correct, then that does it
for me, as I can't get a copy of that software.
Is this the case even if a run the binary?

Thanks

Victor

On 3/31/08, Jano Svitok <jan.svitok@gmail.com> wrote:
>
> On Mon, Mar 31, 2008 at 2:58 PM, Victor Reyes <victor.reyes@gmail.com>
> wrote:
> > Team,
> >
> > I am trying to install RRDtool under MS Windows/XP.
> > I tried to install the gem and got the following errors:
> >
> > C:\$user\downloads\Ruby and Friends>ruby -v
> > ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
> >
> > C:\$user\downloads\Ruby and Friends>gem install RubyRRDtool-0.6.0.gem
> > Building native extensions. This could take a while...
> > ERROR: While executing gem ... (RuntimeError)
> > Error instaling RubyRRDtool-0.6.0.gem:
> > ERROR: Failed to build gem native extension.
> >
> > ruby extconf.rb install RubyRRDtool-0.6.0.gem
> > checking for main() in z.lib... no
> > checking for main() in png.lib... no
> > checking for main() in freetype.lib... no
> > checking for main() in art_lgpl_2.lib... no
> > checking for rrd_first() in rrd.lib... no
> > creating Makefile
> >
> > nmake
> > 'nmake' is not recognized as an internal or external command,
> > operable program or batch file.
> >
> >
> > Gem files will remain installed in
> > c:/ruby/lib/ruby/gems/1.8/gems/RubyRRDtool-0.6.0 for inspection.
> > Results logged to c:/ruby/lib/ruby/gems/1.8/gems/RubyRRDtool-0.6.0
> > /gem_make.out
> >
> > I then tried the binary distribution (
> >
> > rrdtool-1.2.27-w32.zip

>
> > <http://www.gknw.net/mirror/rrdtool/rrdtool-1.2.27-w32.zip>

>
> > 06-Mar-2008 02:24 1.0M ZIP compressed archive) for Windows.
> >
> > But when I try the sample pgm I get the error listed below.
> >
> > C:\$user\downloads\Ruby and Friends\rrdtool-

> 1.2.27-w32\rrdtool-1.2.27-w32>ls
> > -al
> > total 4146
> > drwx------ 2 ReyesV Domain+Users 512 Mar 31 08:49 .
> > drwx------ 3 ReyesV Domain+Users 512 Mar 28 15:39 ..
> > -rwx------ 1 ReyesV Domain+Users 113828 Feb 17 10:26 CHANGES
> > -rwx------ 1 ReyesV Domain+Users 15405 Feb 17 10:26 COPYING
> > -rwx------ 1 ReyesV Domain+Users 3693 Feb 17 10:26 COPYRIGHT
> > -rwx------ 1 ReyesV Domain+Users 60444 Feb 17 10:26
> > DejaVuSansMono-Roman.ttf
> > -rwx------ 1 ReyesV Domain+Users 2031 Feb 17 10:26 NEWS
> > -rwx------ 1 ReyesV Domain+Users 2545 Feb 17 10:26 README
> > -rwx------ 1 ReyesV Domain+Users 183 Mar 6 01:23 readme.txt
> > -rwx------ 1 ReyesV Domain+Users 960512 Mar 6 01:23 rrdcgi.exe
> > -rwx------ 1 ReyesV Domain+Users 959488 Mar 6 01:23 rrdtool.exe
> > -rwx------ 1 ReyesV Domain+Users 1090 Mar 28 15:59

> rrdtoolTest00.rb
> >
> > C:\$user\downloads\Ruby and Friends\rrdtool-

> 1.2.27-w32\rrdtool-1.2.27-w32>ruby
> > rrdtoolTest00.rb
> > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> > `gem_original_require': no such file to load -- RRD (LoadError)
> > from

> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> > `require'
> > from rrdtoolTest00.rb:1

>
>
> You need to have VC6 installed and its environment setup before
> running gem install (call vsvars32.bat).
> After you do that, make sure nmake.exe in in your %PATH%.
>
> The binary distribution doesn't contain the ruby extension, you are
> looking for binary GEM, but rubyforge has only source one.
>
>
> Jano
>
>


  Réponse avec citation
Vieux 31/03/2008, 15h19   #4
Phillip Gawlowski
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Problems installing RRDtool gem under Windows

Answer: Because it makes it difficult to follow a conversation.
Question: Why is Top-posting bad?

Victor Reyes wrote:
> Is this the case even if a run the binary?


If the binary gem contains the pr-compiled extension, you won't need a
compiler to compile it. If there is no pre-compiled extension available,
then you won't be able to use the gem.

Ask the maintainers of the package, if they can supply a pre-compiled
binary.

Another solution: http://www.linux.org/

--Phillip Gawlowski

  Réponse avec citation
Vieux 31/03/2008, 17h28   #5
Jano Svitok
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Problems installing RRDtool gem under Windows

On Mon, Mar 31, 2008 at 3:29 PM, Victor Reyes <victor.reyes@gmail.com> wrote:
> I assumed VC6 = Visual C Version 6. If this is correct, then that does it
> for me, as I can't get a copy of that software.
> Is this the case even if a run the binary?


What you are looking for is rrd extension, that is a .dll linked
against ruby and librrd.
It makes a bridge between librrd and ruby - it allows you to call
librrd from ruby.

In order to obtain the dll you have to compile it. Your assumption was
right - VC6 is Visual C++ 6.
It might be possible to use mingw gcc to compile it though.

I have VC6 installed, but unfortunately, the code #includes unistd.h,
that is not included with VC6.
So I can't here. Try the mingw32 way. You'll need the development
package of rrdtool - at least .h and .lib files.

Note: ruby extensions (=dlls) have .so extension (=file suffix)
instead of usual .dll.

Another way to use rrdtool could be calling the exe file with proper
parameters and parsing the result.
For this you don't need the extension.

J.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 18h27.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,15111 seconds with 13 queries