Tag: windows xp

Ruby DevKit不适用于WindowsXP上的RedCloth和其他gem

我是RoR的新手,没有太多的Web开发经验。 我现在常常放弃,但我需要一个RoR开发环境来完成一项工作,我不能选择该网站创建者的大脑,因为他是公司以外的人,并明确表示他完全不熟悉Windows(他开发在Mac上,我开始明白为什么……)。 这是我第一次发帖,所以要善待…… 目标:能够在本地计算机上查看基于RoR的站点,最好使用预先存在的XAMMP服务器,但使用rails服务器也可以。 环境: Windows XP Xammp 1.7.3 Ruby 9.1.2 DevKit 4.5.0。 我尝试过的:我开始按照本教程中的说明进行操作(在Windows机器上安装Xampp和Rails http://www.grapethinking.com/getting-rails-to-work-on-a-windows-machine- running-xampp )。 我成功完成了所有步骤,并能够创建一个rails应用程序并查看“Welcome Aboard”页面。 我从heroku( http://heroku.com/ )获得了该网站的本地副本,这是他们使用的ror托管服务。 我修改了apache配置文件以指向站点的公用文件夹,如Xampp和Rails教程的步骤5中所述。 此时,我转到localhost:3000时收到以下消息 Access forbidden! You don’t have permission to access the requested directory. There is either no index document or the directory is read-protected. If you think this is a server error, please […]

Ruby on Rails:如何在Windows后自动启动WEBrick服务器?

为了在Windows XP上运行我的Rails应用程序,我打开一个命令行,cd到应用程序的目录,然后运行rails server 。 我想自动执行此操作,这样每次打开计算机时,我所要做的就是在浏览器中键入localhost:3000 。 我怎么能这样做?

Ruby on Rails安装问题 – 如何使用WAMP MySQL安装?

我在Windows XP上安装了Ruby on Rails: 安装rubyinstaller-1.9.2-p0.exe gem安装导轨 gem安装mysql2 cd my_dir rails new my_app -d mysql 创建的config / database.yml包含以下MySQL配置: development: adapter: mysql2 encoding: utf8 reconnect: false database: first_development pool: 5 username: root password: host: localhost 但是,当我从my_dir运行rails服务器时 ,我收到以下错误: D:/Programs/Ruby192/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/mysql2 /mysql2.rb:2:in `require’: 126: The specified module could not be found. – D:/ Programs/Ruby192/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/mysql2/1. 9/mysql2.so (LoadError) … 以及以下弹出消息: The application […]

得到错误“getaddrinfo:没有这样的主机是已知的。 (Socke tError)“机械化gem

我尝试了下面的代码: require ‘mechanize’ agent = Mechanize.new{|a| a.ssl_version, a.verify_mode = ‘SSLv3′, OpenSSL::SSL::VERIFY_NONE} page = agent.get “https://gegsltraining.aravo.com/” page=page.link_with(:dom_class => “button”).click() 但是我的错误得到了以下错误。 D:\WIPData\Ruby\Scripts>mechanize_dowload.rb C:/Ruby193/lib/ruby/gems/1.9.1/gems/net-http-persistent-2.8/lib/net/http/persist ent/ssl_reuse.rb:29:in `initialize’: getaddrinfo: No such host is known. (Socke tError) from C:/Ruby193/lib/ruby/gems/1.9.1/gems/net-http-persistent-2.8/lib/net /http/persistent/ssl_reuse.rb:29:in `open’ from C:/Ruby193/lib/ruby/gems/1.9.1/gems/net-http-persistent-2.8/lib/net /http/persistent/ssl_reuse.rb:29:in `block in connect’ from C:/Ruby193/lib/ruby/1.9.1/timeout.rb:54:in `timeout’ from C:/Ruby193/lib/ruby/1.9.1/timeout.rb:99:in `timeout’ from C:/Ruby193/lib/ruby/gems/1.9.1/gems/net-http-persistent-2.8/lib/net /http/persistent/ssl_reuse.rb:29:in `connect’ from C:/Ruby193/lib/ruby/1.9.1/net/http.rb:755:in `do_start’ from […]

如果不使用Ruby和WMI进行轮询,我如何检测USB插入?

我阅读了以下文章: 使用Ruby和WMI检测USB驱动器 但是,这种方法需要我在循环中保持轮询。 是否可以注册并在插入/弹出USB时通知我的脚本? 我正在寻找一个Windows XP解决方案。

尝试在Windows XP中使用Heroku时找不到msvcrt-ruby18.dll

我有一个学生在Windows XP上开发,他在尝试运行heroku keys:add时遇到了一个奇怪的错误heroku keys:add 。 错误是: This application has failed to start because msvcrt-ruby18.dll was not found. Re-installing the application may fix this problem. 经过大约半个小时的尝试,我的google-fu在这一次失败了。 有人可以帮忙吗?

ruby和accdb(ms访问)

如果我有一个基本的Windows XP系统,ruby和一个ms access 2007文件(例如c:/foo/bar.accdb)文件,那么读取.accdb文件的最少侵入性方法是什么。 需要在xp系统上安装什么。 什么是特定的连接字符串。

在Windows XP中安装Ruby Curb gem

我正在尝试使用ruby 1.8进行文件上传,似乎没有好的开箱即用的解决方案。 他们似乎都需要一些第三方补丁或项目分支来工作。 我会使用机械化,但实际上我需要与xml api接口,而机械化似乎专门用于直接处理网页。 我已经尝试过RestClient但它没有开箱即用的多部分表单的function,你必须使用项目的分支才能使它工作。 类似的情况似乎存在于Net:HTTP我认为遏制将是要走的路,因为我可能想要使用multicurl反正我计划做的其他事情。 但是,在我的Windows机器上,我似乎无法安装路边gem。 gem install curb给出一个错误,说我需要指定curl库所在的位置..我已经尝试将选项传递给extconf但到目前为止没有运气。 这是没有任何选项的gem install curb的输出 C:\ruby\lib\ruby\gems\1.8\gems\curb-0.5.4.0>gem install curb Building native extensions. This could take a while… ERROR: Error installing curb: ERROR: Failed to build gem native extension. C:/ruby/bin/ruby.exe extconf.rb checking for curl-config… no checking for main() in curl.lib… no *** extconf.rb failed *** Could not create […]