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

Unable to complete install #37

Closed
stevespringett opened this issue May 18, 2015 · 8 comments
Closed

Unable to complete install #37

stevespringett opened this issue May 18, 2015 · 8 comments

Comments

@stevespringett
Copy link

Running Ubuntu 14.04

Ran:
sudo apt-get install python-pip sqlite3
sudo pip install https://github.com/mitsuhiko/flask/tarball/master
sudo pip install owasp-skf

installing owasp-skf fails with error:

creating build/temp.linux-x86_64-2.7/src/lxml

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip_build_root/lxml/src/lxml/includes -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w

src/lxml/lxml.etree.c:8:22: fatal error: pyconfig.h: No such file or directory

#include "pyconfig.h"

                  ^

compilation terminated.

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1


Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-SZKpc9-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/lxml
Storing debug log for failure in /home/user/.pip/pip.log

@blabla1337
Copy link
Owner

Hi Steve,

It seems you are still missing some packages, can you try this first:
sudo apt-get install python-dev libxml2-dev libxslt-dev

Greetz,
Glenn

@RiieCco
Copy link
Collaborator

RiieCco commented May 18, 2015

Hey Steve,

Thanx for the heads up!

I am goin to spawn an Ubuntu myself to see if the installer might be
incomplete.

2015-05-18 21:40 GMT+02:00 Steve Springett notifications@github.com:

Running Ubuntu 14.04

Ran:
sudo apt-get install python-pip sqlite3
sudo pip install https://github.com/mitsuhiko/flask/tarball/master
sudo pip install owasp-skf

installing owasp-skf fails with error:

creating build/temp.linux-x86_64-2.7/src/lxml

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2
-Wall -Wstrict-prototypes -fPIC
-I/tmp/pip_build_root/lxml/src/lxml/includes -I/usr/include/python2.7 -c
src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o
-w

src/lxml/lxml.etree.c:8:22: fatal error: pyconfig.h: No such file or
directory

#include "pyconfig.h"

              ^

compilation terminated.

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize,
'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))"
install --record /tmp/pip-SZKpc9-record/install-record.txt
--single-version-externally-managed --compile failed with error code 1 in
/tmp/pip_build_root/lxml
Storing debug log for failure in /home/user/.pip/pip.log


Reply to this email directly or view it on GitHub
#37.

@stevespringett
Copy link
Author

Thanks for the quick replies.

Executing:
sudo apt-get install python-dev libxml2-dev libxslt-dev
got me a bit further, but later complained that:
/usr/bin/ld: cannot find -lz

Ran
sudo apt-get install lib32z1-dev
and the install was able to complete

However, /opt/owasp-skf doesn't exist, so I'm not sure where the installer put it.

@RiieCco
Copy link
Collaborator

RiieCco commented May 18, 2015

Hey Steve,

The installer put's it somewhere near:

/usr/local/lib/python2.7/site-packages/skf

could differ a bit from your device but it puts it in the python folder

2015-05-18 21:58 GMT+02:00 Steve Springett notifications@github.com:

Thanks for the quick replies.

Executing:
sudo apt-get install python-dev libxml2-dev libxslt-dev
got me a bit further, but later complained that:
/usr/bin/ld: cannot find -lz

Ran
sudo apt-get install lib32z1-dev
and the install was able to complete

However, /opt/owasp-skf doesn't exist, so I'm not sure where the installer
put it.


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

@stevespringett
Copy link
Author

Found it in dist-packages.
Ran:
sudo python skf.py

I see the generated password and the following:
Running on https://127.0.0.1:5443/

Does it only bind to the loopback? It doesn't respond when connecting via it's external IP address and the machine is headless.

Running:
wget --no-check-certificate https://127.0.0.1:5443
works and I'm able to get index.html

@blabla1337
Copy link
Owner

Yeah from a security point of view we did not want to do this as a default setting.
You can change in the skf.py the 127.0.0.1 to 0.0.0.0

Start skf.py again and now it's external facing.

Also i would suggest to not run it as root ^^

@stevespringett
Copy link
Author

:) Thank you.

Had to sudo chown -R user:user skf so that I did not have to run it as root. And changed the ip to 0.0.0.0 and I'm able to login.

@blabla1337
Copy link
Owner

Check ^^
Thanks for the feedback, we improved the Ubuntu installation part

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

3 participants