Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add to homebrew for installation #10

Open
AndrewSB opened this issue Dec 3, 2016 · 14 comments
Open

add to homebrew for installation #10

AndrewSB opened this issue Dec 3, 2016 · 14 comments

Comments

@AndrewSB
Copy link

AndrewSB commented Dec 3, 2016

http://brew.sh

@rahul286
Copy link

I am on a slow internet connection, so can't download Xcode today. :-(

I wish this was distributed as a brew package.

@jonasrauber
Copy link

jonasrauber commented Jan 9, 2017

Are you planning to do this?

@RoySegall
Copy link

I don't have access to xcode since I'm not a developer so if we have any .dmg file or a script that would be awesome.

@evanmhm
Copy link

evanmhm commented Jan 11, 2017

You can just get Xcode from the App Store without a developer account, but a brew package would be pretty cool.

@RoySegall
Copy link

I not familiar with the xCdoe environment so I'm struggling with this one. I did the build but where is the compiled file?

@einsteinx2
Copy link

@RoySegall If you look in the Products group on the left panel of Xcode you'll see it there, and you can right click it to show in finder.

However, the easiest way to build it is to just clone the repo, cd into the directory, run xcodebuild with no options, then the file will be in ./build/Release/sudo in that folder

@rahul286
Copy link

I managed to get it working using Xcode only.

Below are all commands I needed to run from start to end:

git clone https://github.com/mattrajca/sudo-touchid
cd sudo-touchid
xcodebuild 
cd build/Release
sudo chown root:wheel sudo && sudo chmod 4755 sudo
sudo cp - sudo /usr/local/bin

pbrit added a commit to pbrit/sudo-touchid that referenced this issue Feb 2, 2017
@jeremymlane
Copy link

@rahul286 I needed to do the following instead. Just the last two lines are different.

git clone https://github.com/mattrajca/sudo-touchid
cd sudo-touchid
xcodebuild 
cd build/Release
sudo cp sudo /usr/local/bin
sudo chown root:wheel /usr/local/bin/sudo && sudo chmod 4755 /usr/local/bin/sudo

@idoo
Copy link

idoo commented Apr 17, 2017

@mattrajca do we have a chance to merge it?

@RoySegall
Copy link

Does running the homebrew commands in the commit will do the trick?

@idoo
Copy link

idoo commented Apr 18, 2017

@RoySegall yep, you it just add custom formula to your brew
just run, and keep hope, that paulche didn't change that formula in future ;)

brew tap paulche/sudo-touchid
brew install sudo-touchid

@brunojdo
Copy link

Hi guys, I follow the homebrew method and broke my sudo.
sudo: /usr/local/bin/sudo must be owned by uid 0 and have the setuid bit set
To fix this problem I had to enable the Root user: How to and fix the permissions of sudo symlink /usr/local/bin/sudo. I execute the last command of @jeremymlane.

@rahul286
Copy link

@jeremymlane I thought

sudo cp ./sudo /usr/local/bin
sudo chown root:wheel /usr/local/bin/sudo && sudo chmod 4755 /usr/local/bin/sudo

will create a problem because sudo in the second line would be used from /usr/local/bin/sudo.

I tested your method and it did not create any problem.

@AFakeman
Copy link

anton  ~  brew tap paulche/sudo-touchid
anton  ~  brew install sudo-touchid
==> Installing sudo-touchid from paulche/sudo-touchid
==> Cloning https://github.com/mattrajca/sudo-touchid
Cloning into '/Users/anton/Library/Caches/Homebrew/sudo-touchid--git'...
remote: Counting objects: 632, done.
remote: Compressing objects: 100% (492/492), done.
remote: Total 632 (delta 102), reused 569 (delta 102), pack-reused 0
Receiving objects: 100% (632/632), 3.16 MiB | 1.97 MiB/s, done.
Resolving deltas: 100% (102/102), done.
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
==> xcodebuild
Error: undefined method `undent' for #<String:0x00007ffb740caab8>
Please report this bug:
  https://docs.brew.sh/Troubleshooting
/usr/local/Homebrew/Library/Taps/paulche/homebrew-sudo-touchid/sudo-touchid.rb:27:in `caveats'
/usr/local/Homebrew/Library/Homebrew/caveats.rb:17:in `caveats'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/forwardable.rb:202:in `empty?'
/usr/local/Homebrew/Library/Homebrew/formula_installer.rb:610:in `caveats'
/usr/local/Homebrew/Library/Homebrew/formula_installer.rb:659:in `finish'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:322:in `install_formula'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:253:in `block in install'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:251:in `each'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:251:in `install'
/usr/local/Homebrew/Library/Homebrew/brew.rb:87:in `<main>'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants