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

[Install failed] Can't install in ubuntu 22.04 #120

Open
hubblezzhu opened this issue Apr 26, 2022 · 1 comment
Open

[Install failed] Can't install in ubuntu 22.04 #120

hubblezzhu opened this issue Apr 26, 2022 · 1 comment

Comments

@hubblezzhu
Copy link

/bin/bash ./libtool --tag=CC --mode=link gcc -g -O2 -Wall -I/tmp/pip-req-build-i1w9m5u1/mininet_dependencies/openflow/include -Wshadowpkg-config --cflags libconfig-static -Wl,-E -L/tmp/pip-req-build-i1w9m5u1/mininet_dependencies/openflow/libpkg-config --libs libconfig-o oflops channel_info.o context.o control.o module_run.o module_default.o oflops.o oflops_pcap.o timer_event.o msg.o log.o traffic_generator.o usage.o -ldl -lpcap -lnetsnmp -loflops_test -lpthread libtool: link: gcc -g -O2 -Wall -I/tmp/pip-req-build-i1w9m5u1/mininet_dependencies/openflow/include -Wshadow -Wl,-E -o oflops channel_info.o context.o control.o module_run.o module_default.o oflops.o oflops_pcap.o timer_event.o msg.o log.o traffic_generator.o usage.o -L/tmp/pip-req-build-i1w9m5u1/mininet_dependencies/openflow/lib -ldl -lpcap /tmp/pip-req-build-i1w9m5u1/mininet_dependencies/oflops/.libs/liboflops_test.a -lconfig -lnetsnmp -lpthread /usr/bin/ld: /tmp/pip-req-build-i1w9m5u1/mininet_dependencies/oflops/.libs/liboflops_test.a(wc_event.o): in functionevent_loop':
/tmp/pip-req-build-i1w9m5u1/mininet_dependencies/oflops/wc_event.c:399: undefined reference to `pthread_yield'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:589: oflops] Error 1
make[2]: Leaving directory '/tmp/pip-req-build-i1w9m5u1/mininet_dependencies/oflops'
make[1]: *** [Makefile:659: all-recursive] Error 1
make[1]: Leaving directory '/tmp/pip-req-build-i1w9m5u1/mininet_dependencies/oflops'
make: *** [Makefile:445: all] Error 2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ipmininet
Running setup.py clean for ipmininet
Failed to build ipmininet
Installing collected packages: ipmininet
Running setup.py install for ipmininet ... error
error: subprocess-exited-with-error

× Running setup.py install for ipmininet did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
/usr/lib/python3/dist-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
running install
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
DISTRIB_ID=Ubuntu
DISTRIB_DESCRIPTION="Ubuntu 22.04 LTS"

  *** pip3 -V
  
  *** apt-get update
  Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
  Hit:2 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
  Hit:3 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
  Hit:4 http://us.archive.ubuntu.com/ubuntu jammy-security InRelease
  Reading package lists...
  error: [Errno 17] File exists: '/tmp/pip-req-build-i1w9m5u1/mininet_dependencies'
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> ipmininet

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
root@ubuntu2204siqian1 ipmininet (master) # uname -a
Linux ubuntu2204siqian1 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
root@ubuntu2204siqian1 ipmininet (master) #
install failled with sudo pip install --upgrade git+https://github.com/cnp3/[email protected]`

@jadinm
Copy link
Collaborator

jadinm commented Apr 26, 2022

This is a Mininet dependency issue.
I invite you to tell them that there is an issue with openflow compilation on Ubuntu 22.04.

Once it is fixed on Mininet, ping here so that I can update the mininet version that we rely on.

In the meantime, you can always use the VM.

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

2 participants