search for: ruby_platform

Displaying 20 results from an estimated 49 matches for "ruby_platform".

2004 Dec 12
3
Re: Problem building wxRuby: htmlproc.h not found
I''ve heard of this before. Try running this line and send me the output ruby -e "p RUBY_PLATFORM" Nick Andreas Schwarz wrote: > I''m trying to build wxRuby 6.0 on Linux (Ubuntu). When I run make I get > an error because htmlproc.h is not found (it does not exist in the Linux > version of wxWidgets). I see that the html* object files are removed > from $objs in th...
2003 Sep 23
0
Cygwin & wxRuby
Mod required to extconf.rb supplied with wxruby-0.1.0.tgz to make it compile wxRuby for the cygwin platform. $ diff wxruby/src/extconf.rb wxruby-my/src/extconf.rb 19,20c19 < < if /linux/ =~ RUBY_PLATFORM or /i386-freebsd/ =~ RUBY_PLATFORM --- > if /linux/ =~ RUBY_PLATFORM or /i386-freebsd/ =~ RUBY_PLATFORM or /cygwin/ =~ RUBY_PLATFORM 24c23,24 < $LDFLAGS += " `wx-config --libs` -Wl,--version-script,./version-script " --- > $LDFLAGS += " `wx-config --libs` " &g...
2013 Oct 28
1
Using puppetlabs_spec_helper on Windows 7
...er runs on Windows 7 to test my Puppet modules. Is this supported ? Because I encountered some problems: 1. symlinks were not created on Windows 7 (even if the functionnality are availabe). To manage that I added to rake_tasks.rb an ugly function: def make_link(source,target) ruby_platform = RbConfig::CONFIG[''host_os''] if RUBY_PLATFORM =~ /mswin|mingw|cygwin/ then #Windows Stuff source_win=source.tr("/","\\") target_win=target.tr("/","\\") `call mklink /D #{target_win} #{source_win}` elsif...
2012 Jan 20
2
Build a ruby gem and conditionally specify dependencies
...only way I can see to add dependencies to a gem is to use add_dependency method within a Gem::Specifiction block in a .gemspec file Gem::Specification.new do |s| # ... standard setup stuff # conditionally set dependencies s.add_dependency "rb-inotify", "~> 0.8.8" if RUBY_PLATFORM =~ /linux/ i s.add_dependency "rb-fsevent", "~> 0.4.3.1" if RUBY_PLATFORM =~ / darwin/i s.add_dependency "rb-fchange", "~> 0.0.5" if RUBY_PLATFORM =~ /mswin| mingw/i end Based on all of the docs and threads I found on the net, I would have expecte...
2005 Sep 02
2
About.rbw.patch
This patch file allows the About menu item in the bigdemo sample to work. _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2006 Sep 17
11
ShapedWindow.rbw
These patches implement wxRegion and the ShapedWindow sample. I stole the ruby image from ruby-lang.org. Shamelessly. Maybe someone has a better image we can use for the shaped window. It didn''t seem to make sense to use the Python image. I''d like something even bigger than what I stol^h^h^h^hmade, preferably. Image goes in icons. I had to %ignore one function in wxRegion.
2008 Jul 26
4
Mongrel on Ruby 1.8.6 w/ patchlevel 279 (Win)
Hi, I can''t install Mongrel on Ruby 1.8.6 (patchlevel 279), using Windows XP. My environment: C:\ruby18>gem environment RubyGems Environment: - RUBYGEMS VERSION: 1.2.0 - RUBY VERSION: 1.8.6 (2008-07-17 patchlevel 279) [i386-mingw32] - INSTALLATION DIRECTORY: c:/ruby18/lib/ruby/gems/1.8 - RUBY EXECUTABLE: c:/ruby18/bin/ruby.exe - EXECUTABLE DIRECTORY: c:/ruby18/bin -
2006 Apr 26
8
script/server lighttpd on Windows
Has anyone been able to get script/server to successfully use lighttpd on a Windows box? When I try to start the server I get: PROBLEM: Lighttpd is not available on your system (or not in your path) So then I add "C:\lighttpd\sbin" to the path for the console session, and it still fails with the same error. If anyone has some success with this I sure would like to know. Webrick
2006 Jul 16
0
Patch for selecting MySQL socket in app_generator.rb
.../applications/app/app_generator.rb *** old/app_generator.rb 2006-07-16 00:07:05.310476266 -0400 --- new/app_generator.rb 2006-07-16 00:07:32.973448980 -0400 *************** class AppGenerator < Rails::Generator::B *** 109,115 **** end def mysql_socket_location ! RUBY_PLATFORM =~ /mswin32/ ? MYSQL_SOCKET_LOCATIONS.find { |f| File.exists?(f) } : nil end --- 109,115 ---- end def mysql_socket_location ! RUBY_PLATFORM !~ /mswin32/ ? MYSQL_SOCKET_LOCATIONS.find { |f| File.exists?(f) } : nil end -- Posted via http://www.ruby-forum.com/.
2006 May 04
1
conditional require? conditional action code?
Greetings all. I have some controller code that uses win32ole (only available on windows). This code is now solid, and I''d now like to resume development on (any) other OS(grin). But alas, the controller bails because the OS specific library can''t be found. Can I conditionally specify action code compilation (and a require ''win32ole'') based on OS or
2008 Jan 03
1
models loading
Hi there, In the latest releases bdrb attempts to load all models during startup routine. We have models that depend on the particular RUBY_PLATFORM but they live in the same models directory. It seems that the inability to load them stops bdrb. Could the models requiring / loading be done one demand, the same as Rails does? thanks, emil
2007 Oct 05
2
Mongrel PID file permissions
...y owned by the user/group, but their permissions is 0666. Is that normal ? Shouldn''t it be something like 0664 ? Just curious to know if I''m wrong. Configurator has this (line 77): # Writes the PID file but only if we''re on windows. def write_pid_file if RUBY_PLATFORM !~ /mswin/ log "Writing PID file to #{@pid_file}" open(@pid_file,"w") {|f| f.write(Process.pid) } end end The comment''s wrong, and we probably need a File.chmod call there somewhere. Should I submit a patch ? Thanks ! -- Fran?ois Beausoleil...
2005 Jul 26
3
Wx::Html* widgets
Hello, I''m having problems using the widgets Wx::Http*, such as Wx::HtmlWindow, Wx::HtmlEasyPrinting, etc.. The error I got is "uninitialized constant Wx::HtmlWindow". The code is correct since I''m trying to execute samples in the html/ directory. All other samples work. I can''t even see that widgets doing require ''wxruby'';
2006 Nov 25
3
[PATCH] HTTP accept filter support for FreeBSD
...cf_http&sektion=9 -- Thomas ''Freaky'' Hurst http://hur.st/ -------------- next part -------------- --- mongrel.rb.orig Sat Nov 25 05:19:12 2006 +++ mongrel.rb Sat Nov 25 08:41:20 2006 @@ -666,10 +666,17 @@ end def configure_socket_options - if /linux/ === RUBY_PLATFORM + case RUBY_PLATFORM + when /linux/ # 9 is currently TCP_DEFER_ACCEPT - $tcp_defer_accept_opts = [9,1] - $tcp_cork_opts = [3,1] + $tcp_defer_accept_opts = [Socket::SOL_TCP, 9, 1] + $tcp_cork_opts = [Socket::SOL_TCP, 3, 1] + when /freebsd/ +...
2007 Jan 30
2
error finding library when running test program
...t;, "ogl", "smiley"] icons = Wx::RadioBox.new(panel, ID_ICON, "&Icons", Wx::Point.new (20,5), Wx::DEFAULT_SIZE, iconNames, 1, Wx::RA_SPECIFY_COLS) evt_radiobox(ID_ICON) {|event| on_change_icon(event)} if Wx::RUBY_PLATFORM == "WXMSW" set_icon(Wx::Icon.new("./icons/wxwin.ico")) else set_icon(Wx::Icon.new("./icons/wxwin16x16.xpm")) end show(true) #true is the default value, so it may be left off end def on_change_icon(event)...
2004 Oct 01
14
wxruby-swig on Windows & possible release
I''m trying to build wxruby-swig on windows with the idea of building a windows installer for it. I think that this would go a long way toward encouraging windows developers to try out wxruby-swig. What do you think? Are we far enough along to contemplate a release? Building wxruby-swig on windows is actually going pretty smoothly, but I want to build it with vc++ 7.1 to match the
2006 Apr 18
12
Update on SWIG
SWIG 1.3.29 isn''t going to cut it for us. We''ll have to wait until 1.3.30, unless I can hack together a nasty workaround for a problem with the object tracking. It seem that each SWIG module gets its own hash for tracking objects. This means that, for example, you create a find dialog (in FindReplaceDialog.cpp) events you get from it (from FindDialogEvent.cpp)
2006 Feb 17
7
Re: Problem building wxRuby: htmlproc.h not found
...he HTML files (by accident). It''s the whole reason we need to remove the functionality for linux. Nick Zach Dennis wrote: >/ Nick wrote: />/ />>/ />>/ I''ve heard of this before. Try running this line and send me the output />>/ />>/ ruby -e "p RUBY_PLATFORM" />>/ />>/ Nick />>/ />>/ />>/ Andreas Schwarz wrote: />>/ />>>/ I''m trying to build wxRuby 6.0 on Linux (Ubuntu). When I run make I />>>/ get an error because htmlproc.h is not found (it does not exist in />>>/ the Linux...
2009 Dec 01
12
Rails 2.3.5 - Cannot install plugin
I''m always get the message "Plugin not found: ["git://github.com/ aaronchi/jrails.git"]" when trying to install a rails plugin, even for SVN or GIT. After google search, some people suggest that replace "git://" with "http://" and add "/" at the end of the url. I tried and it still does not work. I used the ruby 1.9.1-p243 and rails
2006 Sep 27
11
Installation success, execution failed
Hello, after I wasn''t able to install wxruby via gem (404) I downloaded the file from rubyforge and installed it on my intel mac. No failure the so I tried to start the minimal.rb with ruby -r/r?/ ubegems <path>... This didn''t work so I tried to do it in irb but the same error occured: irb(main):001:0> require ''rubygems'' => true