install jekyll in windows7 - ruby

env: windows 7-64bit DevKit-mingw64-32-4.7.2-20130224-1151-sfx ruby200-64
I already install devkit and ruby. then I run gem install jekyll
looks like something wrong in ruby.h
it has some errors like follows:
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
d:/Ruby200-x64/bin/ruby.exe extconf.rb
creating Makefile
make "DESTDIR="
generating stemmer-x64-mingw32.def
compiling porter.c
porter.c: In function 'step1ab':
porter.c:233:4: warning: passing argument 2 of 'ends' discards qualifiers from p
...
..
compiling porter_wrap.c
In file included from d:/Ruby200-x64/include/ruby-2.0.0/ruby.h:33:0,from porter_wrap.c:1:
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:125:14: error: size of array 'ruby _ check_sizeof_voidp' is negative
In file included from d:/Ruby200-x64/include/ruby-2.0.0/ruby.h:33:0,
from porter_wrap.c:1:
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h: In function 'rb_float_value':
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:785:10: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h: In function 'rb_num2char_inline':
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1214:35: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1214:35: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1214:35: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1215:9: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1215:9: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1215:9: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h: In function 'rb_class_of':
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1515:12: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h: In function 'rb_type':
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1532:12: warning: cast to pointer from integer of different size
porter_wrap.c: In function 'stem_word':
porter_wrap.c:26:16: warning: cast to pointer from integer of different size
porter_wrap.c:26:16: warning: cast to pointer from integer of different size
porter_wrap.c:26:16: warning: cast to pointer from integer of different size
porter_wrap.c:27:16: warning: cast to pointer from integer of different size
porter_wrap.c:27:16: warning: cast to pointer from integer of different size
porter_wrap.c:27:16: warning: cast to pointer from integer of different size
porter_wrap.c:27:34: warning: cast to pointer from integer of different size
porter_wrap.c:27:34: warning: cast to pointer from integer of different size
porter_wrap.c:27:34: warning: cast to pointer from integer of different size
porter_wrap.c:28:7: warning: cast to pointer from integer of different size
porter_wrap.c:28:7: warning: cast to pointer from integer of different size
porter_wrap.c:28:7: warning: cast to pointer from integer of different size
porter_wrap.c:20:17: warning: unused variable 'i'
make: *** [porter_wrap.o] Error 1
Gem files will remain installed in d:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/fast-stemmer-1.0.2 for inspection.
Results logged to d:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/fast-stemmer-1.0.2/ext/gem_make.out
Successfully installed liquid-2.5.1
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Any assistance would be helpful.thx

Your Ruby is Ruby200-x64, which is 64-bit, so please download the 64-bit DevKit to match your Ruby.
The latest 64-bit DevKit is DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe, which can be found here, while currently yours is 32-bit DevKit-mingw64-32-4.7.2-20130224-1151-sfx.
Did you notice the difference? Yours is mingw64-32, but you need mingw64-64.

Another issue I encountered here is using Ruby2.00 which seems not an idea version.
The version worked for me is:
Ruby 1.9.3-p448
DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe
Basically it's just the version issue, other than that , just follow articles you can search around.
Details about where to get these packages:Issue installing jekyll on windows

Related

array type has incomplete element type ‘struct iovec’

I am trying to build libssh2 using cmake. I have downloaded current master commit cfe0bf64985fd6a5db3b45ffc31a2fe3b8fd9948. When I run the build command, I get this compile error:
extern/libssh2/src/libssh2_priv.h:907:38: error: array type has incomplete element type ‘struct iovec’
const struct iovec datavec[], void **abstract);
^~~~~~~
I am using a debian 10.6 machine and my gcc version is 8.3.0.
There was a colon in the path and removing it solved the problem.
Next question: Why it didn't make any problem to build C++ apps?

Error while building Linux Kernel 2.6.10 Error: operand type mismatch for `mov'

I am learning writing Linux Kernel Modules and following the book Linux Device Drivers. which instructs building and configure a kernel of 2.6.x . I am using kernel version 2.6.10. I followed the steps on thegeekstuff.com/compile-linux-kernel
i.e. I after untarring in the /usr/src directory, I did
$ make menuconfig #this opened up a gui
then I saved the config without making any changes, in the hope to enforce default configuration and then
$ make.
when I did make, it gave me this error and the warning’
include/asm/mpspec_def.h:78:2: warning: ‘packed’ attribute ignored for field
of type ‘unsigned char[6]’ [-Wattributes]
arch/i386/kernel/process.c: In function ‘show_regs’:
arch/i386/kernel/process.c:259:2: warning: pointer targets in passing argument 2 of ‘show_trace’ differ in signedness [-Wpointer-sign]
include/asm/processor.h:499:6: note: expected ‘long unsigned int *’ but argument is of type ‘long int *
arch/i386/kernel/process.c: Assembler messages:
arch/i386/kernel/process.c:384: Error: operand type mismatch for mov'
arch/i386/kernel/process.c:385: Error: operand type mismatch formov'
arch/i386/kernel/process.c:461: Error: operand type mismatch for `mov'
include/linux/elfcore.h:92: Error: operand type mismatch for mov'
include/linux/elfcore.h:92: Error: operand type mismatch formov'
arch/i386/kernel/process.c:583: Error: operand type mismatch for mov'
arch/i386/kernel/process.c:584: Error: operand type mismatch formov'
arch/i386/kernel/process.c:591: Error: operand type mismatch for mov'
arch/i386/kernel/process.c:592: Error: operand type mismatch formov'
make1: [arch/i386/kernel/process.o] Error 1
make: [arch/i386/kernel] Error 2
I have not written professional kernel code before so I am not sure if I should make any changes in the code. Can anybody help me with why this error occurred and how it can be removed. I used the default kernel config. prior to calling make using make menu-config.
The error in the process.c is in savesegment(fs,p->thread.fs); (all instances of the error are from the same function)
Thanks
It is not clear from your question that what are the exact steps you did.
This error may be due to some issues in configuration.
Please try the following steps and see if it solves the problem:
> make defconfig #Creates a default config based on your machine architecture
> make
I used a kernel version who version was closer to my native kernel version ~ 3.11.1. and used make oldconfig instead. This was easier than figuring out each configuration setting for my architecture.

Jekyll JSON errors in commandline?

I tried to look this up but to no avail. When running Jekyll with "Jekyll serve" I'm getting the following messages in my commandline after which Jekyll runs fine.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/version.rb:3: warning: already initialized constant JSON::VERSION
/Library/Ruby/Gems/2.0.0/gems/json-1.8.2/lib/json/version.rb:3: warning: previous definition of VERSION was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/version.rb:4: warning: already initialized constant JSON::VERSION_ARRAY
/Library/Ruby/Gems/2.0.0/gems/json-1.8.2/lib/json/version.rb:4: warning: previous definition of VERSION_ARRAY was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/version.rb:5: warning: already initialized constant JSON::VERSION_MAJOR
/Library/Ruby/Gems/2.0.0/gems/json-1.8.2/lib/json/version.rb:5: warning: previous definition of VERSION_MAJOR was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/version.rb:6: warning: already initialized constant JSON::VERSION_MINOR
/Library/Ruby/Gems/2.0.0/gems/json-1.8.2/lib/json/version.rb:6: warning: previous definition of VERSION_MINOR was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/version.rb:7: warning: already initialized constant JSON::VERSION_BUILD
/Library/Ruby/Gems/2.0.0/gems/json-1.8.2/lib/json/version.rb:7: warning: previous definition of VERSION_BUILD was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:99: warning: already initialized constant JSON::NaN
/Library/Ruby/Gems/2.0.0/gems/json-1.8.2/lib/json/common.rb:99: warning: previous definition of NaN was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:101: warning: already initialized constant JSON::Infinity
/Library/Ruby/Gems/2.0.0/gems/json-1.8.2/lib/json/common.rb:101: warning: previous definition of Infinity was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:103: warning: already initialized constant JSON::MinusInfinity
/Library/Ruby/Gems/2.0.0/gems/json-1.8.2/lib/json/common.rb:103: warning: previous definition of MinusInfinity was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:128: warning: already initialized constant JSON::UnparserError
/Library/Ruby/Gems/2.0.0/gems/json-1.8.2/lib/json/common.rb:128: warning: previous definition of UnparserError was here
Jekyll runs fine though! But I guess it couldn't harm to fix this. It probably has something to do with versions of JSON not matching Jekylls dependencies?
I fixed it by updating all my gems.
gem install rubygems-update
update_rubygems
gem update --system

gem install jekyll failed on windows 8 because of stemmer

Im trying to install jekyll on windows 8 but its getting failed because of stemmer. Please give me a good solutions.
Here is my comp config.
*Windows 8 Pro 64-bit
Intel Pentium Dual 1.6Ghz
2GB RAM*
and version of ruby and gem.
$ruby -v
ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]
$ gem --version
2.4.6
Even I have installed Ruby DevKit
DevKit-mingw64-64-4.7.2-20130224-1432-sfx
And this is what im getting while installing Jekyll.
$ gem install jekyll
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
c:/Ruby21/bin/ruby.exe -r ./siteconf20150302-1732-9b3i52.rb extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
generating stemmer-i386-mingw32.def
compiling porter.c
porter.c: In function 'step1ab':
porter.c:233:4: warning: passing argument 2 of 'ends' discards 'const' qualifier
from pointer target type [enabled by default]
porter.c:182:12: note: expected 'char *' but argument is of type 'const char *'
porter.c:234:7: warning: passing argument 2 of 'ends' discards 'const' qualifier
from pointer target type [enabled by default]
porter.c:182:12: note: expected 'char *' but argument is of type 'const char *'
.
.
.
.
.
.
porter.c:238:4: warning: passing argument 2 of 'ends' discards 'const' qualifier
from pointer target type [enabled by default]
porter.c:182:12: note: expected 'char *' but argument is of type 'const char *'
compiling porter_wrap.c
In file included from c:/Ruby21/include/ruby-2.1.0/ruby.h:33:0,
from porter_wrap.c:1:
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:109:14: error: size of array 'ruby_chec
k_sizeof_voidp' is negative
In file included from c:/Ruby21/include/ruby-2.1.0/ruby.h:33:0,
from porter_wrap.c:1:
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h: In function 'rb_obj_wb_unprotect':
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1234:9: warning: cast to pointer from i
nteger of different size [-Wint-to-pointer-cast]
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1235:6: warning: cast to pointer from i
nteger of different size [-Wint-to-pointer-cast]
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1238:2: warning: cast to pointer from i
nteger of different size [-Wint-to-pointer-cast]
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h: In function 'rb_obj_written':
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1253:9: warning: cast to pointer from i
nteger of different size [-Wint-to-pointer-cast]
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h: In function 'rb_num2char_inline':
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1324:35: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1324:35: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1324:35: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1325:9: warning: cast to pointer from i
nteger of different size [-Wint-to-pointer-cast]
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1325:9: warning: cast to pointer from i
nteger of different size [-Wint-to-pointer-cast]
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1325:9: warning: cast to pointer from i
nteger of different size [-Wint-to-pointer-cast]
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h: In function 'rb_class_of':
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1642:12: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h: In function 'rb_type':
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1659:12: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
porter_wrap.c: In function 'stem_word':
porter_wrap.c:26:16: warning: cast to pointer from integer of different size [-W
int-to-pointer-cast]
porter_wrap.c:26:16: warning: cast to pointer from integer of different size [-W
int-to-pointer-cast]
porter_wrap.c:28:7: warning: cast to pointer from integer of different size [-Wi
nt-to-pointer-cast]
porter_wrap.c:28:7: warning: cast to pointer from integer of different size [-Wi
nt-to-pointer-cast]
porter_wrap.c:20:17: warning: unused variable 'i' [-Wunused-variable]
make: *** [porter_wrap.o] Error 1
make failed, exit code 2
Gem files will remain installed in c:/Ruby21/lib/ruby/gems/2.1.0/gems/fast-stemm
er-1.0.2 for inspection.
Results logged to c:/Ruby21/lib/ruby/gems/2.1.0/extensions/x86-mingw32/2.1.0/fas
t-stemmer-1.0.2/gem_make.out
Windows is not officially supported by Jekyll, and will need some tweaks in order to run.
Check out Jekyll's helpful guide to get started.

Installing gcc 3.4.6 using gcc 4.2 on Mac OS X

I am trying to install gcc 3.4.6 on Mac OS X 10.6.8; To install gcc 3.4.6 I needed a compiler and somehow I was able to install gcc-4.2. Now using 4.2 I am trying to install 3.4.6 which throws an error as
./gcc.c:716: warning: string length ‘2483’ is greater than the length ‘509’ ISO C90 compilers are required to support
./gcc.c:723: warning: string length ‘636’ is greater than the length ‘509’ ISO C90 compilers are required to support
./gcc.c:906: warning: string length ‘529’ is greater than the length ‘509’ ISO C90 compilers are required to support
./gcc.c:924: warning: string length ‘608’ is greater than the length ‘509’ ISO C90 compilers are required to support
./gcc.c:1095: error: expected expression before ‘,’ token
./gcc.c:1506: warning: string length ‘833’ is greater than the length ‘509’ ISO C90 compilers are required to support
./gcc.c: In function ‘main’:
./gcc.c:6261: warning: format not a string literal and no format arguments
make[1]: *** [gcc.o] Error 1
make: *** [all-gcc] Error 2
Any help on why am getting this error and what is the solution is appreciated.
You can NOT using a new version gcc to compile a very old one because it will cause tons of syntax errors. Maybe you should find a precomipled version.

Resources