-
-
Save jordansissel/894043 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nightfall(~/projects/homebrew) % uname -a | |
Linux nightfall 2.6.35-28-generic #49-Ubuntu SMP Tue Mar 1 14:39:03 UTC 2011 x86_64 GNU/Linux | |
nightfall(~/projects/homebrew) % bin/brew install wget | |
Warning: Xcode is not installed! Builds may fail! | |
==> Downloading http://ftp.gnu.org/gnu/wget/wget-1.12.tar.bz2 | |
File already downloaded and cached to /home/jls/Library/Caches/Homebrew | |
==> Downloading patches | |
######################################################################## 100.0% | |
==> Patching | |
patching file src/openssl.c | |
==> ./configure --disable-debug --prefix=/home/jls/projects/homebrew/Cellar/wget/1.12 --disable-iri | |
==> make install | |
Warning: /home/jls/projects/homebrew/bin is not in your PATH | |
You can amend this by altering your ~/.bashrc file | |
==> Summary | |
/home/jls/projects/homebrew/Cellar/wget/1.12: 51 files, 2.5M, built in 24 seconds | |
nightfall(~/projects/homebrew) % ./Cellar/wget/1.12/bin/wget -q -O- "http://www.random.org/integers/?num=5&min=1&max=100&col=5&base=10&format=plain&rnd=new" | |
zsh: permission denied: ./Cellar/wget/1.12/bin/wget | |
# For some reason the binary isn't chmodded executable. Fix it. | |
nightfall(~/projects/homebrew) !126! % chmod 755 ./Cellar/wget/1.12/bin/wget | |
nightfall(~/projects/homebrew) % ./Cellar/wget/1.12/bin/wget -q -O- "http://www.random.org/integers/?num=5&min=1&max=100&col=5&base=10&format=plain&rnd=new" | |
75 34 1 27 69 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Package it | |
nightfall(~/projects/homebrew) !1! % fpm -s dir -t deb -C Cellar/ --prefix /opt/homebrew -n wget -v 1.12 -d "openssl (>= 0.9.8)" wget/ | |
# Inspect the package | |
nightfall(~/projects/homebrew) % dpkg -c wget-1.12-1.amd64.deb | |
... <output cut > ... | |
-rw-r--r-- root/root 4108 2009-09-20 15:59 ./opt/homebrew/wget/1.12/README | |
-rw-r--r-- root/root 2104 2009-09-02 01:45 ./opt/homebrew/wget/1.12/AUTHORS | |
-rw-r--r-- root/root 68739 2009-09-21 20:39 ./opt/homebrew/wget/1.12/ChangeLog | |
drwxr-xr-x root/root 0 2011-03-30 00:23 ./opt/homebrew/wget/1.12/etc/ | |
-rw-r--r-- root/root 4499 2011-03-30 00:23 ./opt/homebrew/wget/1.12/etc/wgetrc | |
drwxr-xr-x root/root 0 2011-03-30 00:23 ./opt/homebrew/wget/1.12/bin/ | |
-rwxr-xr-x root/root 394490 2011-03-30 00:23 ./opt/homebrew/wget/1.12/bin/wget | |
drwxr-xr-x root/root 0 2011-03-30 00:23 ./opt/homebrew/wget/1.12/share/ | |
... <output cut> ... | |
# Install it. | |
nightfall(~/projects/homebrew) % sudo dpkg -i wget-1.12-1.amd64.deb | |
(Reading database ... 172303 files and directories currently installed.) | |
Preparing to replace wget 1.12-1 (using wget-1.12-1.amd64.deb) ... | |
Unpacking replacement wget ... | |
Setting up wget (1.12-1) ... | |
# Run it | |
nightfall(~/projects/homebrew) % /opt/homebrew/wget/1.12/bin/wget | |
wget: missing URL | |
Usage: wget [OPTION]... [URL]... | |
Try ‘wget --help’ for more options. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment