问题标签 [macports]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
macos - 在 Snow Leopard - libxml2 上安装一些 gem 时出错
升级到雪豹后,我发现安装一些gem不再起作用,包括webrat,mechanize等。每次我得到这个错误:
不,我没有尝试用 macports 安装它,因为几年前我发现我无法轻松降级/管理端口时,我放弃了 macports。从那时起,我已经非常习惯于手工从源代码构建,这是我第一次遇到超出我知识范围的东西。我愿意被说服回到 macports,但前提是没有简单的解决方案我会错过。
看起来 libxml2 实际上并没有丢失,也许只是过时了?...
扩展输出
ruby - 如何让 ruby-svm 在 macports 的 /opt/local 中查找库?
我想安装 Ruby SVM。我已经有正常设置的macports,并且通过端口安装了libsvm就好了。但是当我去编译rubysvm时,它会出错。:(
Ruby SVM:http : //rubysvm.cilibrar.com/download/(尽管大多数链接是 404) libsvm:http ://www.csie.ntu.edu.tw/~cjlin/libsvm/
尝试这个:
...你得到错误:
我试过这个,没有成功:
我该如何解决?
ruby - 在 macports 上安装了 fxruby,现在 rubygems 坏了
我使用安装了 fxruby
正如书中建议的那样。
它工作正常,我的 hello world 程序正常工作。
但是,现在,我编写的其他代码已损坏,每当我尝试使用任何依赖 gem 的代码时,它都不起作用。当我
$ruby -e "require 'rubygems'"
在我的代码中这样做时,它给出了
当我RUBYOPT="rubygems"
在我的 .bash_profile 中设置我的
(上面写着“ubygems”,前面没有“r”,不知道为什么)
http://newsgroups.derkeiler.com/Archive/Comp/comp.lang.ruby/2008-08/msg00351.html建议我对照我的红宝石位置检查我的宝石位置,我得到:
我认为这意味着宝石被混淆了,但不知道如何补救。有任何想法吗?没有宝石真可惜。
- -更新 - -
忘记列出版本:
wxwidgets - Installing more than one active variant using macports
I am using macports to install wxWidgets. I would like both the release and debug version of the library installed I used macports to install the release version by running sudo port install wxwidgets
, and then used sudo port install wxwidgets +debug
to install the debug variant. When I run port installed wxwidgets
, it shows them both installed, but only one of them is active. When I run wx-config, it only shows the one that is marked as active. Is there a way to get both release and debug as active so that wx-config knows about both variants at the same time?
php - What's an appropriate include_path PHP/PEAR setting for Macports?
I'm using Macports for my PHP development. I thought that everything associated with Macports should be located under/opt/local, but I can't load the PEAR::Mail_Mime package I just installed through PEAR. I did confirm that the path to pear is /opt/local/bin/pear, but I have no idea where it dumped the package files, so I don't know how to include them in my path. Any pointers?
mysql - Mac 上的 Mysql 5.1:查询缓存不起作用
我想知道是否有人可以指出我正确的方向。我已经在我的 Snow Leopard OSX 机器上设置了一个本地 Mysql 5.1 沙箱,我安装了 Macports Mysql 5.1,并且从所有外观来看,它都在运行。它需要查询,数据库正在工作等。唯一奇怪的是,查询缓存不起作用。我之前已经让它在 linux 中运行,并让它在 5.0 xammp 安装中运行,但我对为什么它在这个设置中不起作用感到困惑。
一些细节...
在我看来,一切都设置正确,这些设置与我在 5.0 和 4.1 上使用的设置基本相同。大多数查询都是可缓存的,我并没有专门排除缓存。我不知道是 Mac 问题,MacPorts 问题,还是 5.1 问题,还是我个人的问题。有人能看出我的设置有什么问题吗?
好的,一些额外的信息。这似乎与 Innodb 有关。MyISAM 查询似乎缓存得很好。
我的 inno 设置:
svn - 在 Mac 上使用有效的 python 绑定将 SVN 转换为 Mercurial 不起作用
我尝试将本地 SCN 存储库(及其所有历史记录)转换为 Mercurial。我正在使用 Mac (10.6.2)。因此,我使用 Macports 作为包管理工具。
我开始转换:
结果是,它开始正常工作,但过了一会儿,它停止了。那就是输出:
我搜索了你的邮件列表,找到了在我的本地 python 安装中测试 svn 绑定的说明。正如您在以下输出中看到的那样,它们的工作原理:
作为附加信息,这里是我使用 MacPorts 安装的所有软件包的完整列表:
感谢并感谢您的帮助!
apache - 共享 httpd.conf
httpd.conf
我正在尝试在多台 OS X 机器上共享一个文件。我正在使用Dropbox来管理文件并使其对两台机器都可用。我遇到的问题是该httpd.conf
文件必须从我的主目录中的某个位置加载虚拟主机配置文件,并且每台机器上的路径都不同。
我尝试引用该${HOME}
变量,但是,虽然它在手动启动 Apache 时有效,但当 Apache 尝试在启动时启动时,该变量不可用。我通过问这个问题了解到这一点。
作为下一步,我创建~/.MacOSX/environment.plist
并创建了一个新的环境变量,我称之为HTTPD_CONF_BASE_PATH
指向每台机器上正确的主目录(例如/Users/rwilkerson
)。不幸的是,Apache 似乎不喜欢我的自定义变量。它被系统识别——我可以echo
很好地识别它——但如果引用了该值, Apache 将不会在启动时启动或手动启动。
Apache 对它会承认哪些环境变量那么敏感吗?我在这里还有其他选择吗?我没有我想尝试的东西了。
perl - Apache 不会使用 Macports Perl5.8.9 执行 CGI
我试图让 perl 在我的 Apache 2 macports 安装下运行。我希望有经验的 perl 极客可以帮助我。我有...
- 让 Apache 运行得很好。Macports 使用 perl5 占位符和 perl5.8.9 安装它。
- 安装了 mod_perl2。
- 运行脚本来配置 httpd.conf。
- 重启阿帕奇。
在 htdocs 中编写了以下测试脚本
/li>
我得到的只是打印到屏幕上的脚本内容。我错过了一步吗?我需要在 .conf 文件中进行一些额外的配置吗?
mysql - Mac OS X 10.5.8 上 Rails 2.3.5 的 MySQL 绑定
我有一个使用 macports 设置的 rails 环境。我最近更新了 macports,它似乎有断轨的副作用。当我尝试启动 rails 服务器时,我得到:
$ ./script/server
=> Booting WEBrick
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
/opt/local/lib/ruby/vendor_ruby/1.8/i686-darwin9/mysql.bundle: dlopen(/opt/local/lib/ruby/vendor_ruby/1.8/i686-darwin9/mysql.bundle, 9): Library not loaded: /opt/local/lib/mysql5/mysql/libmysqlclient.15.dylib (LoadError)
Referenced from: /opt/local/lib/ruby/vendor_ruby/1.8/i686-darwin9/mysql.bundle
Reason: image not found - /opt/local/lib/ruby/vendor_ruby/1.8/i686-darwin9/mysql.bundle
我已经尝试使用我在网上找到的各种配置多次重新安装 mysql gem,但似乎没有任何帮助。此外,当我尝试使用 rake 时,我得到:
rake db:migrate
Rails requires RubyGems >= 1.3.1 (you have 1.0.1). Please
宝石更新--系统and try again.
虽然:
gem --version
1.3.6
这里发生了什么?