Created
May 5, 2019 16:28
-
-
Save unigiriunini/150f45627571392ecb2c2e9e23ec6084 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@07e7105e2127 /]# cat /etc/redhat-release | |
CentOS Linux release 7.6.1810 (Core) | |
[root@07e7105e2127 /]# gcc -v | |
Using built-in specs. | |
COLLECT_GCC=gcc | |
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper | |
Target: x86_64-redhat-linux | |
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux | |
Thread model: posix | |
gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) | |
[root@07e7105e2127 /]# gem install blurhash -v 0.1.2 | |
Building native extensions. This could take a while... | |
ERROR: Error installing blurhash: | |
ERROR: Failed to build gem native extension. | |
/usr/bin/ruby extconf.rb | |
creating Makefile | |
make "DESTDIR=" | |
gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -mtune=generic -fPIC -m64 -o encode.o -c encode.c | |
encode.c: In function 'blurHashForPixels': | |
encode.c:28:2: error: 'for' loop initial declarations are only allowed in C99 mode | |
for(int y = 0; y < yComponents; y++) { | |
^ | |
encode.c:28:2: note: use option -std=c99 or -std=gnu99 to compile your code | |
encode.c:29:3: error: 'for' loop initial declarations are only allowed in C99 mode | |
for(int x = 0; x < xComponents; x++) { | |
^ | |
encode.c:48:3: error: 'for' loop initial declarations are only allowed in C99 mode | |
for(int i = 0; i < acCount * 3; i++) { | |
^ | |
encode.c:62:2: error: 'for' loop initial declarations are only allowed in C99 mode | |
for(int i = 0; i < acCount; i++) { | |
^ | |
encode.c: In function 'multiplyBasisFunction': | |
encode.c:75:2: error: 'for' loop initial declarations are only allowed in C99 mode | |
for(int y = 0; y < height; y++) { | |
^ | |
encode.c:76:3: error: 'for' loop initial declarations are only allowed in C99 mode | |
for(int x = 0; x < width; x++) { | |
^ | |
encode.c: In function 'encode_int': | |
encode.c:129:2: error: 'for' loop initial declarations are only allowed in C99 mode | |
for(int i = 0; i < length - 1; i++) divisor *= 83; | |
^ | |
encode.c:131:10: error: redefinition of 'i' | |
for(int i = 0; i < length; i++) { | |
^ | |
encode.c:129:10: note: previous definition of 'i' was here | |
for(int i = 0; i < length - 1; i++) divisor *= 83; | |
^ | |
encode.c:131:2: error: 'for' loop initial declarations are only allowed in C99 mode | |
for(int i = 0; i < length; i++) { | |
^ | |
make: *** [encode.o] Error 1 | |
Gem files will remain installed in /usr/local/share/gems/gems/blurhash-0.1.2 for inspection. | |
Results logged to /usr/local/share/gems/gems/blurhash-0.1.2/ext/blurhash/gem_make.out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[root@07e7105e2127 /]# gem install blurhash -v 0.1.2 -- --with-cflags="-std=c99"
Building native extensions with: '--with-cflags=-std=c99'
This could take a while...
Successfully installed blurhash-0.1.2
Parsing documentation for blurhash-0.1.2
Installing ri documentation for blurhash-0.1.2
1 gem installed