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

problem installing #7397

Closed
dimis40 opened this issue Nov 7, 2015 · 15 comments
Closed

problem installing #7397

dimis40 opened this issue Nov 7, 2015 · 15 comments

Comments

@dimis40
Copy link

@dimis40 dimis40 commented Nov 7, 2015

I am trying to install it on mac os x using curl and i receive this error code

(23) Failed writing body (0 != 4096)

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Nov 7, 2015

Post the full output.
Alternatively use homebrew.

@dimis40
Copy link
Author

@dimis40 dimis40 commented Nov 10, 2015

I use the curl version

curl 7.37.1

2015-11-09 23:55 GMT+02:00 G Alexander notifications@github.com:

what version of curl? and where is it? the OS X default is generally
outdated.
which curl
curl --version

don't use php from homebrew use the one from here, better maintained with
more extensions pre-built
http://php-osx.liip.ch


Reply to this email directly or view it on GitHub
#7397 (comment).

@gaming-hacker
Copy link

@gaming-hacker gaming-hacker commented Nov 10, 2015

where is it?
at bash prompt > which curl

stop deleting my comments or i'll refuse to help or push my changes back to your repo.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Nov 10, 2015

Stop posting nonsense and unrelated stuff.

@gaming-hacker
Copy link

@gaming-hacker gaming-hacker commented Nov 10, 2015

how is diagnosing curl unrelated? no more help from then, i'll let people grab my fork and help them even if not related to code.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Nov 10, 2015

I'm about 3rdparty php.
I'm closing this issue since no requested info was provided. As I've already mentioned you can use homebrew to install youtube-dl just fine.

@dstftw dstftw closed this Nov 10, 2015
@dimis40
Copy link
Author

@dimis40 dimis40 commented Nov 10, 2015

ok i will use homebrew

thanks

2015-11-10 18:53 GMT+02:00 Sergey M. notifications@github.com:

I'm about 3rdparty php.
I'm closing this issue since no requested info was provided. As I've
already mentioned you can use homebrew to install youtube-dl just fine.


Reply to this email directly or view it on GitHub
#7397 (comment).

@aminozuur
Copy link

@aminozuur aminozuur commented Oct 6, 2016

I am trying to reinstall youtube-dl after a fresh OS X Sierra install and I am running into the same 'failed writing error' problem.

@Hrxn
Copy link

@Hrxn Hrxn commented Oct 6, 2016

When (or where) exactly does this problem occur?
Here? sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl

If I had to guess, OS X / macOS has some security mechanism to prevent software from 'untrusted' sources, I think they call it Gatekeeper or something..

@aminozuur
Copy link

@aminozuur aminozuur commented Oct 6, 2016

I just disabled Gatekeeper (in Sierra you'll have to use this terminal command) to allow all apps. But after that, installing youtube-dl using the above command still does not work :(.

I'm still getting the same error:
curl: (23) Failed writing body (0 != 16360)

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Oct 6, 2016

Post the output of the following command:
sudo curl -v -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
And please also check whether root has write access to /usr/local/bin/ or not.

@aminozuur
Copy link

@aminozuur aminozuur commented Oct 6, 2016

Yan1215, I just did.
TL;DR: it returns the 'Failed writing body' error once again..

Here is the full paste:
http://pastebin.com/3bym48pf

I am doing this from from my main admin account, so I guess it has write access.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Oct 6, 2016

From your log I guess there's no /usr/local/bin/. Could you create it manually and try again?

sudo mkdir -p /usr/local/bin/

You may want to add /usr/local/bin/ to $PATH, too.

@aminozuur
Copy link

@aminozuur aminozuur commented Oct 6, 2016

I think I created the directory. Although, when I run /usr/local/bin/youtube-dl, it returns No such file or directory. hmm.

I still continued and added the directory to $PATH. When I run 'echo $PATH' it now returns:
echo $PATH /usr/local/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin/

But when I try to run youtube-dl, it now says Permission denied.

I understand these these errors are the results of my own ignorance regarding CLI #damn

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Oct 7, 2016

Could you try: python /usr/local/bin/youtube-dl

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

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.