bidnez account | 6 Jun 2013 23:53
Gravatar

Re: Node NPM - no formula available


hello, geoff, et al,

i was having similar issues yesterday and mistym in the #machomebrew channel of freenode.net irc helped me with this.

that is an older package of node.js with npm separated out of the homebrew formula, like node.js vers. 0.8.0.

the current stable version homebrew has a package for is node.js vers. 0.10.10, with npm included, so you no longer need the separate curl script for it (also why that curl script no longer works).

do —

$ brew update

and once that completes successfully (you might have some files and dependencies to add or move around, as i did, to get update to complete), then run —

$ brew install node

... which should install the latest node.js 0.10.10 and it's correct npm. you can verify after install by doing —

$ node -v

$ npm -v

that worked for me. hope this helps you.

—  faddah wolf
     portland, oregon

Sent from my slick, cool, white iPad 2012... 'cuz i am so '7337!!


On Jun 6, 2013, at 2:24 PM, Geoff Hoffman <ghoffman-tFexAHto8dUkTpSs8yxWuw@public.gmane.orgm> wrote:

Mac-mini:~ me$ brew install npm
Error: No available formula for npm 
Mac-mini:~ me$ brew install node npm
Error: No available formula for npm 
Mac-mini:~ me$ curl http://npmjs.org/install.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    85    0    85    0     0    335      0 --:--:-- --:--:-- --:--:--   867
sh: line 1: syntax error near unexpected token `newline'
sh: line 1: `<html>Moved: <a href="https://npmjs.org/install.sh">https://npmjs.org/install.sh</a>'

Thanks to this stackoverflow post 

I realized that the reason is because npm is now bundled with node, so the standalone npm install just fails with cryptic messages.

Hope it helps someone.

David Hall | 27 May 2013 17:23
Picon
Gravatar

Separating source and binary trees during build

I'm developing a formula which requires the binary tree to be outside the source tree during the build. This
is enforced by the CMakeLists file of the package.

I currently achieve this by:
def install
   # Build directory must be outside source directory tree
   srcDir = Dir.pwd
   mkdir '../build' do
     system "cmake", "#{srcDir}", "-Dmomentum:STRING=GEV", "-Dlength:STRING=MM", *std_cmake_args
     system "make"
     system "make install"
   end
 end

but this causes brew audit to complain
"Don't need to interpolate "srcDir" with system"

Any suggestions?

Adam Vandenberg | 24 Apr 2013 19:55
Picon
Gravatar

Fwd: merging suite-sparse fix in homebrew-science?

Forwarding to the Homebrew mailing list, hopefully someone can take a look at this.

---------- Forwarded message ----------
From: Andrew Janke <janke-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>
Date: Tue, Apr 23, 2013 at 9:35 PM
Subject: merging suite-sparse fix in homebrew-science?
To: flangy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org


Hi, Adam,

This is apjanke, a newbie Homebrew contributor on GitHub. Sorry for hassling you directly, but I saw you had worked on previous homebrew-science fixes, and I didn't know who to ask about this.

The octave build has been broken for a while and people have been asking about it in the issues. There's a pull request I made for suite-sparse that'll fix this that's been up a few days, but not merged in yet. Who can I talk to to get it merged in? Pull requests in homebrew-science don't seem to be picked up as fast as in the main homebrew repo.

Cheers,
Andrew


René Hansen | 9 Apr 2013 20:25
Picon
Gravatar

Fwd: Env in formulas

Hi all,


I'm trying to create a formula for gistit - https://github.com/jrbasso/gistit.

From the project readme, curl and jansson are the only two dependencies. It appears that the version of curl already present on OS X is sufficient, but the system version of autoconf is 2.61 and trying to build with that one yields an error:

    configure.in:1: error: Autoconf version 2.67 or higher is required

To that effect I've added depends_on for both autoconf and jansson. The thing is that autoconf is a keg_only formula, so if I need that, I have to manually add the homebrew version to path when building. I can do that as show in the following gist and then I can build gistit just fine.

My trouble begins when trying to incorporate this PATH fiddling into a homebrew formula, I just don't know how I can make my formula use the homebrew version of autoconf and not the system one. Preliminary formula is also included in the gist:


Any helpful comments much obliged.


Best regards,

René Hansen
Samuel John | 29 Mar 2013 00:56
Picon

Re: Re: gimp with python via homebrew

Yep. Let is know their answers.

Samuel John | 27 Mar 2013 22:32
Picon

Re: gimp with python via homebrew

Ryan Krauss <ryanwkrauss@...>:

> So, what would it take to build GIMP 2.8 natively with brew?

I don't know, perhaps looking what MacPorts does with GIMP or asking upstream.

I would prefer the native version over X11.

Sorry, can't comment in the pressure thing.

Sam

Samuel John | 26 Mar 2013 08:01
Picon

Re: gimp with python via homebrew

What Justin said is all true.

Ryan, congratulations to your Mac. Apt-get is pretty big and a good
tool and basically the only way to install on Ubuntu. We are smaller
but we keep pushing hard :-)

I'd love to have a gimp formula in brew, and I would review a pull
request - so if you get it working with brewed python and all, great!
Ping me, then or if you need help with it.

If you use brew to install stuff these keg_only formulae are made
available if another formula depends_on it (by setting up the ENV,
internally). Perhaps you might want to write a local gimp.rb formula
(see the formula cookbook in the wiki), so you can avoid having to
link --force.
brew install ./path/to/local/files/gimp.rb does work, too.

Bests
Sam

Ali Mashtizadeh | 25 Feb 2013 20:13

New Formula: Pull Request 17621

Hello Folks,

I understand there's a lot of requests in the pipe for homebrew, but I'm trying to get my request in to facilitate my research. If someone could help expedite the pull request that's been pending for 20 days now I would appreciate it. My code runs nothing by default and uses SSH for authentication so I'm not opening up the system to additional security holes.  It also has a read-only libevent based HTTP server for serving the repository, but this is mostly used for performance testing several scenarios or hosting public file systems.  I'm not what the purpose of the audit is that I'm waiting on?

https://github.com/mxcl/homebrew/pull/17621

Thank you in advance,
-- 
~ Ali Mashtizadeh
Panos Athanasiou | 15 Feb 2013 18:05
Picon

Installing hydra


Hello.
I tried to install hydra via homebrew.
The hydras' version that installed is 7.3
Any ideas how to update to latest version of hydra (7.4.1)?

p.s: Updating homebrew won't help, because the v7.4.1 there is not on homebrew database yet.

Thanks.

Jack Nagel | 5 Feb 2013 23:08
Picon
Gravatar

Re: Unsubscribe

http://librelist.com/help.html

On Tue, Feb 5, 2013 at 3:43 PM, Panos Athanasiou <panos.ips@...> wrote:
> I can't find anywhere how to Unsubscribe from mailing list

Kevin Davies | 25 Jan 2013 00:43
Picon

Problem building p7zip app (wxmac)

Hello,


Nice to meet you all. I have been struggling with getting a package that uses wxWidgets installed for some time. I am trying to modify the formula for p7zip so it will compile the app version of the program which is supported by the makefile. The package fails to brew with no obvious error. Maybe I am going about this the wrong way, I just don't know. Homebrew/Ruby is not familiar ground for me. I have been through the wiki and troubleshooting. I am a new to Mac (four months) and Homebrew (three weeks). 

Environment
My platform is MBP running OSX10.8.2. My homebrew installation is in ~/Packages. I have latest Xcode installed and its command line tools. I have a brew install of wxmac --use-llvm --devel with those params and it looks good. brew --doctor only complains of some unexpected dynlibs (usb and usbpp) which I think are unrelated to this project. 

Goal
Submit a new brew for an app version of p7zip or perhaps there is a way to incorporate this into the existing brew? 

Output
The compile seems to end without errors however brew says there is an error. Is the different output from "make app" not being recognised as a completed compile? See attached makefile for what it does.

-- begin brew  ---
# brew install p7zip --build-from-source
Already downloaded: /Library/Caches/Homebrew/p7zip-9.20.1.tar.bz2
==> make clean
==> make INCLUDE=/Users/rtfmoz/Packages/Cellar/p7zip/9.20.1/include INCLUDE=/Users/rtfmoz/Packages/include depend
==> make CC=cc $(ALLFLAGS) INCLUDE=/Users/rtfmoz/Packages/Cellar/p7zip/9.20.1/include INCLUDE=/Users/rtfmoz/Packages/include CXX=c++ $(ALLFLAGS) app
brew: superenv removed: -m64 -O
cc -m64 -O -DENV_MACOSX -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_REENTRANT -DENV_UNIX -DEXTERNAL_LZMA -DEXTERNAL_CODECS -DBREAK_HANDLER -DUNICODE -D_UNICODE -c -I. -I../../../../C -I../../../myWindows -I../../../include_windows -I../../.. ../../../../C/7zCrcOpt.c
brew: superenv removed: -m64 -O
c++ -m64 -O -DENV_MACOSX -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_REENTRANT -DENV_UNIX -DEXTERNAL_LZMA -DEXTERNAL_CODECS -DBREAK_HANDLER -DUNICODE -D_UNICODE  -o ../../../../bin/7z  mySplitCommandLine.o myAddExeFlag.o wine_date_and_time.o ConsoleClose.o ExtractCallbackConsole.o BenchCon.o List.o Main.o MainAr.o OpenCallbackConsole.o PercentPrinter.o UpdateCallbackConsole.o UserInputUtils.o  CommandLineParser.o CRC.o IntToString.o ListFileUtils.o StdInStream.o StdOutStream.o MyString.o MyWindows.o StringConvert.o StringToInt.o UTFConvert.o MyVector.o Wildcard.o  DLL.o Error.o FileDir.o FileFind.o FileIO.o FileName.o PropVariant.o PropVariantConversions.o System.o Time.o  CreateCoder.o FilePathAutoRename.o FileStreams.o FilterCoder.o ProgressUtils.o StreamUtils.o  ArchiveCommandLine.o ArchiveExtractCallback.o ArchiveOpenCallback.o DefaultName.o EnumDirItems.o Extract.o Bench.o ExtractingFilePath.o LoadCodecs.o OpenArchive.o PropIDUtils.o SetProperties.o SortUtils.o TempFiles.o Update.o UpdateAction.o UpdateCallback.o UpdatePair.o UpdateProduce.o  OutStreamWithCRC.o  CopyCoder.o Alloc.o Threads.o  7zCrc.o 7zCrcOpt.o -framework CoreFoundation
brew: superenv removed: -m64 -O


#
--- end brew ---

Modified formula

require 'formula'

class P7zip < Formula
  sha1 '1cd567e043ee054bf08244ce15f32cb3258306b7'

  option '32-bit'

  def install

    if Hardware.is_32_bit? or build.build_32_bit?
      mv 'makefile.macosx_32bits', 'makefile.machine'
    else
      mv 'makefile.macosx_64bits', 'makefile.machine'
    end

    system "make", "clean"
    system "make", "INCLUDE=#{prefix}/include INCLUDE=#{HOMEBREW_PREFIX}/include depend"
    system "make", "CC=#{ENV.cc} $(ALLFLAGS)",
                   "INCLUDE=#{prefix}/include INCLUDE=#{HOMEBREW_PREFIX}/include",
                   "CXX=#{ENV.cxx} $(ALLFLAGS)",
                   "app"
    system "make", "DEST_HOME=#{prefix}",
                   "DEST_MAN=#{man}",
                   "install"

    # install.sh chmods to 444, which is bullshit and breaks uninstalling
    system "chmod -R +w #{doc}"
  end
end

Any help is hugely appreciated!

Kevin
Attachment (makefile): application/octet-stream, 5774 bytes
Attachment (makefile.macosx_64bits): application/octet-stream, 359 bytes

Gmane