rrdtool Perl Library Module #12090
rrdtool Perl Library Module #12090
Comments
Currently the rrdtool formula does this opoo "Using system Ruby. RRD module will be installed to /Library/Ruby/..." if which_ruby == "/usr/bin/ruby"
opoo "Using system Perl. RRD module will be installed to /Library/Perl/..." if which_perl == "/usr/bin/perl"
args = ["--disable-dependency-tracking", "--prefix=#{prefix}", "--mandir=#{man}"]
args << "--enable-perl-site-install" if which_perl == "/usr/bin/perl"
args << "--enable-ruby-site-install" if which_ruby == "/usr/bin/ruby" instead of installing things into its keg. Thoughts? |
Right, this was kind of a cop-out in the first place. I don't use this software with or without a Ruby module to have more insight. |
@jacknagel This actually doesn't work, since Fix in 393941d. @chleggett Can you confirm whether this fixes it for you? |
Ah, it used to be a string, but when I updated it to use the |
rrdtool was trying to compare Pathname paths to strings, which would never return true as intended. Hopefully fixes Homebrew#12090.
rrdtool was trying to compare Pathname paths to strings, which would never return true as intended. Hopefully fixes Homebrew#12090.
rrdtool was trying to compare Pathname paths to strings, which would never return true as intended. Hopefully fixes Homebrew#12090.
I've run into a similar issue... I have a which perl /Users/leedo/perl5/perlbrew/perls/perl-5.16.2/bin/perl Yet when I Some more info: [leedo@trillian rrdtool-1.4.7]$ brew --config HOMEBREW_VERSION: 0.9.3 HEAD: 1b5f55486f2835558726169a6315bd7311eb8c4a HOMEBREW_PREFIX: /usr/local HOMEBREW_CELLAR: /usr/local/Cellar CPU: quad-core 64-bit ivybridge OS X: 10.8.2-x86_64 Xcode: 4.5.2 CLT: 4.5.0.0.1.1249367152 LLVM-GCC: build 2336 Clang: 4.1 build 421 X11: 2.7.2 => /opt/X11 System Ruby: 1.8.7-358 Perl: /Users/leedo/perl5/perlbrew/perls/perl-5.16.2/bin/perl Python: /usr/bin/python Ruby: /Users/leedo/.rbenv/shims/ruby |
Nowadays, brew explicitly strips the If you want to play with fire, pass the |
I experience the same situation as leedo. Some more background information: a tool called 'perlbrew' enables you to install a private perl version in your home folder. This enables you to install a Perl version that is completely separate from the system Perl. This is nice if you require another version of Perl and if you don't want to make changes to the system Perl. Your 'private' Perl versions are installed in ~/perl5/perlbrew/... However, I don't succeed in installing RRDtool for this Perl version using this recipe. I already tried passing the --env=std option to brew when installing but I get:
I have two questions:
|
Update: apparently the command to set the env to std is:
This time this recipe correctly detects and uses the locally-installed perl. To install it, first remove the installation that used the system Perl:
Then apply the first command in this post to install the recipe for the correct Perl version. Now the module is installed under
After setting the environment variable PERL5LIB like this
All is working fine for me. |
At some point we should update ruby and perl support to be en par with python, so that using custom perls would work in superenv, too. |
I've sent in a pull request to document this in the warning message that is generated when you brew rrdtool. #21564 |
I am trying to create a formula for smokeping which will depend on the rrdtool formula. Specifically the RRDs perl module.
I am having trouble confirming that the RRDs perl module is installed correctly by the rrdtool formula.
Can anyone else test and confirm?
Let me know.
Thanks.
The text was updated successfully, but these errors were encountered: