Giter Site home page Giter Site logo

Comments (11)

GoPerry avatar GoPerry commented on May 12, 2024 1

For Ubuntu16.04 , i meet same build error about opensslv.h .

Solution: apt-get install libssl-dev

from certbot.

ChuckIT avatar ChuckIT commented on May 12, 2024

Took this approach to but once libssl-dev was installed
python setup.py install --user
fails with

SWIG/_evp.i:12: Error: Unable to find 'openssl/opensslconf.h'
SWIG/_ec.i:7: Error: Unable to find 'openssl/opensslconf.h'
error: Setup script exited with error: command 'swig' failed with exit status 1

Investigation yields that the the following option may be missing from the call to swig

-I/usr/include/x86_64-linux-gnu

I can verify through find that
/usr/include/x86_64-linux-gnu/openssl/opensslconf.h
exists on my system
Thanks

from certbot.

kuba avatar kuba commented on May 12, 2024

What is your OS? Please try pip install --user M2Crypto and if that fails while headers are available, then it's M2crypto bug and should be reporter in their tracker.

from certbot.

ChuckIT avatar ChuckIT commented on May 12, 2024

I'm running a fresh updated install of Ubuntu 14.04.1 (3.13.0-39-generic) with the following installed Apt-get install gitApt-get install lamp-server^Git clone https://Github ‎.com/letsencrypt/lets-encrypt-preview.gitApt-get install python....etcChecked for opensslconf.h...not found so installed Apt-get install libssl-devOpensslconf.h was now there.I tried to run pip install M2Crypto but needed pip installed so afterApt-get install pipAnd running Sudo pip install M2Crypto The package installed correctly Running python setup.py install --user now ran cleanly. ‎Could this have something to do with installing pip? Ran into problem with. / letsencrypt after that but that may be an apache server configuration issue. I'll retry to see if pip install made a difference. Thanks Chuck Peeren (226)[email protected] From: Jakub WarmuzSent: Thursday, November 20, 2014 15:01To: letsencrypt/lets-encrypt-previewReply To: letsencrypt/lets-encrypt-previewCc: ChuckSubject: Re: [lets-encrypt-preview] Unable to find 'openssl/opensslv.h' (#37)What is your OS? Please try pip install M2Crypto and if that fails while headers are available, then it's M2crypto bug and should be reporter in their tracker.

—Reply to this email directly or view it on GitHub.

from certbot.

jdkasten avatar jdkasten commented on May 12, 2024

Did you get it working? If you describe the problem when running ./letsencrypt.py I can probably help debug.

from certbot.

kuba avatar kuba commented on May 12, 2024

On fresh trusty, before apt-get install libssl-dev I do get:

Searching for M2Crypto
Reading https://pypi.python.org/simple/M2Crypto/
Best match: M2Crypto 0.22.3
Downloading https://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-0.22.3.tar.gz#md5=573f21aaac7d5c9549798e72ffcefedd
Processing M2Crypto-0.22.3.tar.gz
Writing /tmp/easy_install-8lmR2l/M2Crypto-0.22.3/setup.cfg
Running M2Crypto-0.22.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-8lmR2l/M2Crypto-0.22.3/egg-dist-tmp-OQQjc_
SWIG/_m2crypto.i:30: Error: Unable to find 'openssl/opensslv.h'
SWIG/_m2crypto.i:33: Error: Unable to find 'openssl/safestack.h'
SWIG/_evp.i:12: Error: Unable to find 'openssl/opensslconf.h'
SWIG/_ec.i:7: Error: Unable to find 'openssl/opensslconf.h'
error: Setup script exited with error: command 'swig' failed with exit status 1

but, then, after sudo apt-get install libssl-dev it installs correctly.

from certbot.

schoen avatar schoen commented on May 12, 2024

I think strictly speaking this is an upstream bug in the Python M2Crypto package, so having our own dependency on libssl-dev could be seen as a workaround rather than a fix to the underlying bug.

from certbot.

kuba avatar kuba commented on May 12, 2024

M2Crypto needs openssl headers to compile. It doesn't look like a bug, does it?

from certbot.

schoen avatar schoen commented on May 12, 2024

I'm not quite sure how pip is supposed to handle the need for development headers.

Now that I think of it, I have gotten header-related errors when installing things in pip before, and I then used my system package manager to get them, so I guess that's a common occurrence that isn't regarded as an upstream bug.

from certbot.

ChuckIT avatar ChuckIT commented on May 12, 2024

‎Thanks I can confirm that the updated procedure works for me now on a fresh install. The only issue is that the procedure does not enable the new site I did it manually and restarted apache and the https site came up. Thanks again. Chuck Peeren [email protected] From: James KastenSent: Friday, November 21, 2014 20:09To: letsencrypt/lets-encrypt-previewReply To: letsencrypt/lets-encrypt-previewCc: ChuckSubject: Re: [lets-encrypt-preview] Unable to find 'openssl/opensslv.h' (#37)Closed #37 via 2a5364b.

—Reply to this email directly or view it on GitHub.

from certbot.

jdkasten avatar jdkasten commented on May 12, 2024

Hmm... alright. I really haven't tested nearly as much as I should have on Ubuntu 14.04 Apache 2.4. The configurator code was originally designed on Ubuntu 12.04 running Apache 2.2. I am guessing it might have to do with 2.4 requiring that all configuration files in sites-available/enabled to end in *.conf. (2.2 didn't have this restriction) At least that is what held me up when I did my setup on Apache 2.4. (I did record the demo video on 2.4 but I haven't messed around with many configurations)

I am really glad you got it up and running, solved the DVSNI challenge, issued and installed a cert.

I will be tackling and updating the apache_configurator.py class over the weekend to handle 2.4 properly. Hopefully hardening the code quite a bit and solving issues like sites not enabling properly. Any insight you have would be greatly appreciated or if you would like to dive in with me... I accept patches!

Thanks for your interest in the project and for helping us work through the problems with installation!

from certbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.