Giter Club home page Giter Club logo

In file included from lilcom/lilcom_extension.cc:15: In file included from lilcom/compression.h:6: lilcom/int_stream.h:7:10: fatal error: 'vector' file not found #include <vector> ^~~~~~~~ 1 error generated. error: command 'gcc' failed with exit status 1 about lilcom HOT 15 CLOSED

wuxiaobo avatar wuxiaobo commented on May 23, 2024
In file included from lilcom/lilcom_extension.cc:15: In file included from lilcom/compression.h:6: lilcom/int_stream.h:7:10: fatal error: 'vector' file not found #include ^~~~~~~~ 1 error generated. error: command 'gcc' failed with exit status 1

from lilcom.

Comments (15)

danpovey avatar danpovey commented on May 23, 2024

from lilcom.

danpovey avatar danpovey commented on May 23, 2024

from lilcom.

danpovey avatar danpovey commented on May 23, 2024

Likely problem is that /Users/wuxb/Library/Python/3.7/lib is owned by root and not readable by you because you made the same mistake before, using sudo when you should not.

from lilcom.

danpovey avatar danpovey commented on May 23, 2024

chown -R your_username /Users/wuxb/Library/Python/3.7
may help

from lilcom.

wuxiaobo avatar wuxiaobo commented on May 23, 2024

i use user_name

python3 setup.py install
running install
running bdist_egg
running egg_info
writing lilcom.egg-info/PKG-INFO
writing dependency_links to lilcom.egg-info/dependency_links.txt
writing requirements to lilcom.egg-info/requires.txt
writing top-level names to lilcom.egg-info/top_level.txt
reading manifest file 'lilcom.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'lilcom.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.6-intel/egg
running install_lib
running build_py
running build_ext
building 'lilcom.lilcom_extension' extension
gcc -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch i386 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lilcom/lilcom_extension.cc -o build/temp.macosx-10.6-intel-3.7/lilcom/lilcom_extension.o -g -Wall -UNDEBUG -Wno-c++11-compat-deprecated-writable-strings
clang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
clang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
In file included from lilcom/lilcom_extension.cc:15:
In file included from lilcom/compression.h:6:
lilcom/int_stream.h:7:10: fatal error: 'vector' file not found
#include
^~~~~~~~
1 error generated.
error: command 'gcc' failed with exit status 1
@danpovey Daniel Povey

from lilcom.

wuxiaobo avatar wuxiaobo commented on May 23, 2024

i use root user ,some error
wuxb@wuxbdeMacBook-Pro lilcom % sudo python3 setup.py install
running install
running bdist_egg
running egg_info
writing lilcom.egg-info/PKG-INFO
writing dependency_links to lilcom.egg-info/dependency_links.txt
writing requirements to lilcom.egg-info/requires.txt
writing top-level names to lilcom.egg-info/top_level.txt
reading manifest file 'lilcom.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'lilcom.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.6-intel/egg
running install_lib
running build_py
running build_ext
building 'lilcom.lilcom_extension' extension
gcc -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch i386 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lilcom/lilcom_extension.cc -o build/temp.macosx-10.6-intel-3.7/lilcom/lilcom_extension.o -g -Wall -UNDEBUG -Wno-c++11-compat-deprecated-writable-strings
clang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
clang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
In file included from lilcom/lilcom_extension.cc:15:
In file included from lilcom/compression.h:6:
lilcom/int_stream.h:7:10: fatal error: 'vector' file not found
#include
^~~~~~~~
1 error generated.
error: command 'gcc' failed with exit status 1
@danpovey

from lilcom.

wuxiaobo avatar wuxiaobo commented on May 23, 2024

@danpovey I user pip3 install lilcom ,then some error.
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting lilcom
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPConnectionPool(host='mirrors.aliyun.com', port=80): Read timed out. (read timeout=15)")': /pypi/simple/lilcom/
Downloading http://mirrors.aliyun.com/pypi/packages/46/78/9605e17af46a789747544c66f69bcfba17d43ae12f7caeb82f10bbd3fbd5/lilcom-1.1.1.tar.gz
Requirement already satisfied: numpy in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from lilcom) (1.19.4)
Building wheels for collected packages: lilcom
Building wheel for lilcom (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/y0/dntzz2g93b54yr3c200ccvy80000gn/T/pip-install-iwwzc8br/lilcom/setup.py'"'"'; file='"'"'/private/var/folders/y0/dntzz2g93b54yr3c200ccvy80000gn/T/pip-install-iwwzc8br/lilcom/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/y0/dntzz2g93b54yr3c200ccvy80000gn/T/pip-wheel-9of2btyw --python-tag cp37
cwd: /private/var/folders/y0/dntzz2g93b54yr3c200ccvy80000gn/T/pip-install-iwwzc8br/lilcom/
Complete output (22 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-3.7
creating build/lib.macosx-10.6-intel-3.7/lilcom
copying lilcom/lilcom_interface.py -> build/lib.macosx-10.6-intel-3.7/lilcom
copying lilcom/init.py -> build/lib.macosx-10.6-intel-3.7/lilcom
running build_ext
building 'lilcom.lilcom_extension' extension
creating build/temp.macosx-10.6-intel-3.7
creating build/temp.macosx-10.6-intel-3.7/lilcom
gcc -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch i386 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lilcom/lilcom_extension.cc -o build/temp.macosx-10.6-intel-3.7/lilcom/lilcom_extension.o -g -Wall -UNDEBUG -Wno-c++11-compat-deprecated-writable-strings
clang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
clang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
In file included from lilcom/lilcom_extension.cc:15:
In file included from lilcom/compression.h:6:
lilcom/int_stream.h:6:10: fatal error: 'vector' file not found
#include
^~~~~~~~
1 error generated.
error: command 'gcc' failed with exit status 1

ERROR: Failed building wheel for lilcom
Running setup.py clean for lilcom
Failed to build lilcom
Installing collected packages: lilcom
Running setup.py install for lilcom ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/y0/dntzz2g93b54yr3c200ccvy80000gn/T/pip-install-iwwzc8br/lilcom/setup.py'"'"'; file='"'"'/private/var/folders/y0/dntzz2g93b54yr3c200ccvy80000gn/T/pip-install-iwwzc8br/lilcom/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/y0/dntzz2g93b54yr3c200ccvy80000gn/T/pip-record-uy9bpv7w/install-record.txt --single-version-externally-managed --compile
cwd: /private/var/folders/y0/dntzz2g93b54yr3c200ccvy80000gn/T/pip-install-iwwzc8br/lilcom/
Complete output (22 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-3.7
creating build/lib.macosx-10.6-intel-3.7/lilcom
copying lilcom/lilcom_interface.py -> build/lib.macosx-10.6-intel-3.7/lilcom
copying lilcom/init.py -> build/lib.macosx-10.6-intel-3.7/lilcom
running build_ext
building 'lilcom.lilcom_extension' extension
creating build/temp.macosx-10.6-intel-3.7
creating build/temp.macosx-10.6-intel-3.7/lilcom
gcc -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch i386 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c lilcom/lilcom_extension.cc -o build/temp.macosx-10.6-intel-3.7/lilcom/lilcom_extension.o -g -Wall -UNDEBUG -Wno-c++11-compat-deprecated-writable-strings
clang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
clang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
In file included from lilcom/lilcom_extension.cc:15:
In file included from lilcom/compression.h:6:
lilcom/int_stream.h:6:10: fatal error: 'vector' file not found
#include
^~~~~~~~
1 error generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/y0/dntzz2g93b54yr3c200ccvy80000gn/T/pip-install-iwwzc8br/lilcom/setup.py'"'"'; file='"'"'/private/var/folders/y0/dntzz2g93b54yr3c200ccvy80000gn/T/pip-install-iwwzc8br/lilcom/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/y0/dntzz2g93b54yr3c200ccvy80000gn/T/pip-record-uy9bpv7w/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

from lilcom.

danpovey avatar danpovey commented on May 23, 2024

from lilcom.

wuxiaobo avatar wuxiaobo commented on May 23, 2024

😭 you are sure?

from lilcom.

csukuangfj avatar csukuangfj commented on May 23, 2024

😭 you are sure?

Maybe you can verify it by installing some other packages, e.g., pip install kaldialign.
If it still fails, it's very likely that there are some problems with your mac.

from lilcom.

csukuangfj avatar csukuangfj commented on May 23, 2024

Also, can you compile a hello world c++ program?

from lilcom.

danpovey avatar danpovey commented on May 23, 2024

from lilcom.

wuxiaobo avatar wuxiaobo commented on May 23, 2024

g++ helloworld.cpp -o helloworld
./helloworld
Hello, world!

from lilcom.

wuxiaobo avatar wuxiaobo commented on May 23, 2024

😭 you are sure?

Maybe you can verify it by installing some other packages, e.g., pip install kaldialign.
If it still fails, it's very likely that there are some problems with your mac.

pip3 install kaldialign
some error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/y0/dntzz2g93b54yr3c200ccvy80000gn/T/pip-install-q6hfu333/kaldialign/setup.py'"'"'; file='"'"'/private/var/folders/y0/dntzz2g93b54yr3c200ccvy80000gn/T/pip-install-q6hfu333/kaldialign/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/y0/dntzz2g93b54yr3c200ccvy80000gn/T/pip-record-5ic043ht/install-record.txt --single-version-externally-managed --compile
cwd: /private/var/folders/y0/dntzz2g93b54yr3c200ccvy80000gn/T/pip-install-q6hfu333/kaldialign/
Complete output (19 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-3.7
creating build/lib.macosx-10.6-intel-3.7/extensions
copying extensions/init.py -> build/lib.macosx-10.6-intel-3.7/extensions
running build_ext
building 'kaldialign' extension
creating build/temp.macosx-10.6-intel-3.7
creating build/temp.macosx-10.6-intel-3.7/extensions
gcc -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch i386 -arch x86_64 -g -I/private/var/folders/y0/dntzz2g93b54yr3c200ccvy80000gn/T/pip-install-q6hfu333/kaldialign/extensions -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c extensions/align.cpp -o build/temp.macosx-10.6-intel-3.7/extensions/align.o -std=c++11 -Wno-register -Wno-unused-function -Wno-unused-local-typedefs -funsigned-char -stdlib=libc++ -mmacosx-version-min=10.7
gcc -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch i386 -arch x86_64 -g -I/private/var/folders/y0/dntzz2g93b54yr3c200ccvy80000gn/T/pip-install-q6hfu333/kaldialign/extensions -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c extensions/kaldi_align.cpp -o build/temp.macosx-10.6-intel-3.7/extensions/kaldi_align.o -std=c++11 -Wno-register -Wno-unused-function -Wno-unused-local-typedefs -funsigned-char -stdlib=libc++ -mmacosx-version-min=10.7
g++ -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-3.7/extensions/align.o build/temp.macosx-10.6-intel-3.7/extensions/kaldi_align.o -o build/lib.macosx-10.6-intel-3.7/kaldialign.cpython-37m-darwin.so
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'g++' failed with exit status 1

from lilcom.

csukuangfj avatar csukuangfj commented on May 23, 2024

Then can you create a virtual environment for python to install packages? For example, with https://virtualenv.pypa.io/en/latest/

from lilcom.

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.