我目前正在使用Web开发类,我们正在使用Ruby on Rails.
我使用的是Ruby v1.9.2和Rails v3.1.1.
当我尝试执行'rails server'时,我的初始问题就出现了.
我会收到以下错误:
C:\Sites\rorProjects\basicRoRProject>rails server
C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/execjs-1.2.13/lib/execjs/runtimes.rb:47:in `autodetect': Could not find a JavaScript runtime.
See https://github.com/sstephenson/execjs for a list of available runtimes.(ExecJS::RuntimeUnavailable)
Run Code Online (Sandbox Code Playgroud)
我做了一些阅读,普遍的共识是安装宝石'execjs'和'therubyracer'.'execjs'安装得很好,但是当我尝试安装'therubyracer'时,我收到以下错误:
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing therubyracer: ERROR: Failed to build gem native extension.
C:/RailsInstaller/Ruby1.9.2/bin/ruby.exe extconf.rb
*** 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 …Run Code Online (Sandbox Code Playgroud) 我在Windows 7上(我完全承认我不了解权限模型.我正在其他标签中阅读它.)我的用户是管理员.当我尝试运行"python distribute_setup.py"时,我得到"写入失败...权限被拒绝"错误然后"错误:无法创建或删除安装目录中的文件".
我刚从python.org安装了Python 3.2.2 MSI安装程序.
我正在安装32位Python,即使我在64位Windows上,因为我将有一些需要它的依赖项(pyglet,一个OpenGL库.)
我下载distribute_setup.py并从命令行运行"python distribute_setup.py".
在大量无用文本的中途,这个喷出了一些隐藏的错误消息:
root: Generating grammar tables from E:\Program Files (x86)\Python3.2.2\Lib\lib2to3\PatternGrammar.txt
root: Writing grammar tables to E:\Program Files (x86)\Python3.2.2\Lib\lib2to3\PatternGrammar3.2.2.final.0.pickle
root: Writing failed:[Errno 13] Permission denied: 'E:\\Program Files (x86)\\Python3.2.2\\Lib\\lib2to3\\PatternGrammar3.2.2.final.0.pickle'
Run Code Online (Sandbox Code Playgroud)
这三行重复约二十次,然后:
Scanning installed packages
No setuptools distribution found
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: 'E:\\Program Files (x86)\\Python3.2.2\\Lib\\site-packages\\test-easy-install-5924.write-test'
Run Code Online (Sandbox Code Playgroud)
目录"E:\ Program Files(x86)\ Python3.2.2\Lib"允许管理员"完全控制".我的用户是管理员(并且选中的权限复选框都是灰色的 …
我有一个NSIS安装程序,可以在Windows 8上安装我的非Metro应用程序.
安装后,我的安装程序安装的所有可执行文件都将显示在Metro风格的"开始"屏幕上.有没有办法避免这种情况?甚至卸载程序也会显示在列表中,这在我看来很糟糕.
什么是避免安装的.exe显示在Metro风格的"开始"屏幕上的最佳方法?
我正在阅读django书,他们的指示对我不起作用.人们正在谈论编辑他们的路径并在评论中需要完整的路径,而我真的不知道他们所说的是诚实的.我得到django正确安装,但我不能为我的生活弄清楚这一点.任何对人民意见的建议或解释都将不胜感激.
我知道其他人在安装RVM时遇到了问题,但我已经调查了他们的问题/答案,但没有帮助.我使用Ubuntu 11.10,和我在这里按照快速安装方向:https://rvm.beginrescueend.com/rvm/install/
第一步很好用:
~$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
Downloading RVM from wayneeseguin branch stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 125 100 125 0 0 909 0 --:--:-- --:--:-- --:--:-- 1524
100 799k 100 799k 0 0 1059k 0 --:--:-- --:--:-- --:--:-- 1059k
Upgrading the RVM installation in /home/nsmith/.rvm/
RVM sourcing line found in: /home/nsmith/.bash_history.
Upgrade Notes:
* No new notes to display. …Run Code Online (Sandbox Code Playgroud) 我正在尝试执行与mysql数据库交互的perl脚本.我在RHEL 5.5,我的mysql版本是5.0.77.它返回错误,它需要DBI.pmperl模块.我尝试通过cpan使用安装它perl -MCPAN -e "install DBI.pm".它尝试一些超时的ftp服务器.
我尝试从cpan的repo手动安装.DBI.pm安装正确,我继续DBD.pm但cpan repo只有mysql 4的DBD.pm.
我迷路了...任何指针?
我有愚蠢的问题,上面找不到答案.
我试图从https://github.com/paytonrules/selenium-on-rails安装Selenium,
他们说:
安装:
在Rails上安装Selenium:脚本/插件安装
我应该在哪里写这些文字?
从rails根目录终端 - 没有影响.
我甚至没有文件夹"script"中的文件夹"plugin",并且创建没有帮助.拜托,请为我解决这个问题
我在R中安装"Rcpp"软件包时遇到问题.安装命令适用于所有软件包但不适用于此软件包.R错误是:
包'Rcpp'不可用(对于R版本2.15.0)
我正在使用Windows Vista.Please帮助.
在最近升级到Eclipse Eclipse之后,我遇到了一个问题,eclipse不再能够记住重启和工作区交换机之间的某些设置.类似于哪些视角是开放的,某些设置如"[x] Open Dashboard"(spring ide)似乎在重新启动eclipse时恢复到出厂设置.
我使用Ubuntu,由于历史原因,我在/ opt/eclipse中维护我的eclipse安装.安装由root拥有,除了一些升级问题之外,这实际上并不是一个问题 - 直到Juno发布.
我已经尝试了chown -R我自己:在eclipse安装目录中,我已经验证了我自己的用户确实可以编辑所有文件.不过,这些观点似乎已经重置.
有没有其他地方eclipse存储这些信息,哪些可能仍然由root拥有?
我尝试安装pytable模块.我使用win7 x32,python 2.7.3(x32),cython 0.16,visual studio 2008(9.0).在cmd.exe'以管理员身份运行'时写:'python setup.py install --hdf5 ="C:\ Program Files\HDF Group\HDF5\1.8.9"'.
但是有未解析的外部符号和构建失败:
* Found numpy 1.6.2 package installed.
* Found numexpr 2.0.1 package installed.
* Found Cython 0.16 package installed.
* Found HDF5 headers at ``C:\Program Files\HDF Group\HDF5\1.8.9\include``, libra
ry at ``C:\Program Files\HDF Group\HDF5\1.8.9\lib``.
* Could not find LZO 2 headers and library; disabling support for it.
* Could not find LZO 1 headers and library; disabling support for it.
* Could not find bzip2 headers and library; …Run Code Online (Sandbox Code Playgroud) install ×10
python ×3
ruby ×2
distribute ×1
django ×1
eclipse ×1
eclipse-juno ×1
gem ×1
hdf5 ×1
javascript ×1
nsis ×1
perl ×1
permissions ×1
postgresql ×1
pytables ×1
r ×1
rcpp ×1
rhel ×1
rvm ×1
selenium ×1
ubuntu ×1
ubuntu-11.10 ×1
windows ×1
windows-7 ×1
windows-8 ×1