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

ubuntu install update #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

ubuntu install update #4

wants to merge 2 commits into from

Conversation

edsu
Copy link

@edsu edsu commented May 24, 2014

Just a little bit of cleanup on the install doc. I modified the ubuntu install instructions so that they also used requirements.txt (simplejson wasn't mentioned). I also put all the apt packages into one install line.

I noticed that I needed to install libz-dev on Ubuntu 13.10 before I could build lxml. I got this error:

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -I/home/ubuntu/.virtualenvs/pillbox/build/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

x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.linux-x86_64-2.7/lxml/etree.so

/usr/bin/ld: cannot find -lz

collect2: error: ld returned 1 exit status

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

----------------------------------------

Cleaning up...

  Removing temporary dir /home/ubuntu/.virtualenvs/pillbox/build...
Command /home/ubuntu/.virtualenvs/pillbox/bin/python -c "import setuptools;__file__='/home/ubuntu/.virtualenvs/pillbox/build/lxml/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-72GjJH-record/install-record.txt --single-version-externally-managed --install-headers /home/ubuntu/.virtualenvs/pillbox/include/site/python2.7 failed with error code 1 in /home/ubuntu/.virtualenvs/pillbox/build/lxml

Exception information:
Traceback (most recent call last):
  File "/home/ubuntu/.virtualenvs/pillbox/local/lib/python2.7/site-packages/pip/basecommand.py", line 134, in main
    status = self.run(options, args)
  File "/home/ubuntu/.virtualenvs/pillbox/local/lib/python2.7/site-packages/pip/commands/install.py", line 241, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/home/ubuntu/.virtualenvs/pillbox/local/lib/python2.7/site-packages/pip/req.py", line 1298, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/home/ubuntu/.virtualenvs/pillbox/local/lib/python2.7/site-packages/pip/req.py", line 625, in install
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  File "/home/ubuntu/.virtualenvs/pillbox/local/lib/python2.7/site-packages/pip/util.py", line 670, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command /home/ubuntu/.virtualenvs/pillbox/bin/python -c "import setuptools;__file__='/home/ubuntu/.virtualenvs/pillbox/build/lxml/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-72GjJH-record/install-record.txt --single-version-externally-managed --install-headers /home/ubuntu/.virtualenvs/pillbox/include/site/python2.7 failed with error code 1 in /home/ubuntu/.virtualenvs/pillbox/build/lxml

@ghost
Copy link

ghost commented May 29, 2014

@edsu Ubuntu was used during development, but we're not using it now, so I can't check the libs-dev dependency or not using sudo for some of the others. Since I'm pretty new to GitHub can you recommend a way we can keep both your instructions and ours?

@edsu
Copy link
Author

edsu commented May 30, 2014

If you aren't going to support Ubuntu as an installation environment I suggest removing the instructions for Ubuntu altogether.

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

Successfully merging this pull request may close these issues.

1 participant