-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
libpsl build from source code fails due to missing public_suffix_list.dat, but if download it fails with File "/usr/lib64/python3.6/encodings/idna.py", line 165, in encode raise UnicodeError("label too long") #247
Comments
You should NOT be running autogen.sh or
Sure, this sounds like it was easy for you to handle.
The
The "recursive" is important, as it correctly downloads the public suffix list for you.
... but yes, you should be able to download a brand new copy with curl. However, please note that GitHub itself is offering you an HTML file, not a public suffix list. The HTML file contains the GitHub UI with an embeddable syntax-highlighted and line-delimited GUI view of the contents of the actual public suffix list. To download a file from github, please visit it in your browser and locate the "Raw" or "download raw file" buttons in the top right corner of the GitHub UI. It will offer you a link with the word "blob" in the URL replaced by "raw" -- that link is a valid download link for the raw file instead of useless HTML. (libpsl doesn't suggest using curl on that url, it simply links you to the webpage for the public suffix list.)
Ultimately the best way is to use the official release tarball of libpsl, not the raw development sources. Although with a bit of effort (installing dependencies like gettext, manually acquiring the public suffix list) you can use the raw development sources too. :) |
Why is this happening? How can I find out if someone has access through another computer? I would appreciate any feedback back |
1 similar comment
Why is this happening? How can I find out if someone has access through another computer? I would appreciate any feedback back |
@franca6 as I pointed out in the comment before you, this problem is solved by using the Releases download, and avoiding the GitHub autogenerated archive. Please confirm whether that worked for you. |
Hi,
I've tried to build libpsl within an UBI8 container, and I got a lot of issues, starting with dependencies like:
./autogen.sh
(orautoreconf -fi
), is missingautopoint
binary (which should be part ofgettext
package, but on UBI8 is not in that package, and there is nogettext-devel
alternative) => I had to download thegettext
source package and built id too :( ); 👎./autogen.sh
&./configure
working, then the following error appeared atmake
command: 👎Then I looked into the source code of
Makefile
, and noticed this declaration:PSL_FILE = $(top_srcdir)/list/public_suffix_list.dat
, based on which I saw that in the./list/
folder was nopublic_suffix_list.dat
.Ok, I've read the README.md again, and I noticed that I have to download that file from https://github.com/publicsuffix/list/blob/master/public_suffix_list.dat , which I did by running the following command:
curl -sSL https://github.com/publicsuffix/list/blob/master/public_suffix_list.dat > ./list/public_suffix_list.dat
but then the
make
command failed with: 👎Ok, I said, let's do what's written in README.md and run the command:
./src/psl-make-dafsa --output-format=binary list/public_suffix_list.dat psl.dafsa
, but it failed with the same error as above: 👎Ok, I said maybe that script
src/psl-make-dafsa
is quite outdated (since I saw mentioned "Copyright 2014 The Chromium Authors...", but nothing else like a version, a release date, etc.) 👎I've tried to search on all the Internet about this script if I could get it (maybe there's a new version of it), but I found this version for EL8 (which should be compatible with UBI8): https://yum.oracle.com/repo/OracleLinux/OL8/distro/builder/x86_64/getPackage/psl-make-dafsa-0.20.2-6.el8.x86_64.rpm , but after I've installed it and runt the command
psl-make-dafsa --output-format=binary list/public_suffix_list.dat psl.dafsa
, I got the exact same error:👎But in case I'm doing something wrong, could you please guide me insto installing compiling and installing this library from the source code ?
PS: Everything started when I wanted to build the latest version of curl & libcurl (8.10.1) from the source code, which now requires libpsl (which looks like is no more optional like in lower versions like 8.7.0).
The text was updated successfully, but these errors were encountered: