Podrška #17630
Zatvorennmraka-2: vista: ruby windows exe, ruby installer, ruby-sqlite3
0%
Fajlovi
Povezani tiketi 1 (0 otvoreno — 1 zatvoren)
Izmjenjeno od Ernad Husremović prije više od 15 godina
ocra-1.1.0 Documentation
- rubyforge.org/projects/ocra/
- github.com/larsch/ocra/
DESCRIPTION:
OCRA (One-Click Ruby Application) builds Windows executables from Ruby source code. The executable is a self-extracting, self-running executable that contains the Ruby interpreter, your source code and any additionally needed ruby libraries or DLL.
Izmjenjeno od Ernad Husremović prije više od 15 godina
http://github.com/oneclick/rubyinstaller/tree/master
MinGW One-Click Installer: Bootstrapping RecipesThis project attempts to generate a development sandbox that will be used to
compile Ruby and it's components using MinGW tools. Our goal is to offer a
simplified way to boost your productivity and ease the path for anyone who
would like to contribute to the One-Click Ruby Installer for Windows.
These are a work-in-progress collection of Rake recipes that download, compile
and check MinGW utils required to build Ruby 1.8 (at this time) and it's depen-
dencies.
It depends on Rake (a Ruby make tool) and you can find most of the recipes for
each component inside recipes/ directory.
Layout and organization explained:
The recipes are distributed in the following layout:
compiler/*.rake: here resides the recipes to download and prepare the compiler
to be used to build the interpreter (MinGW for now).
interpreter/*.rake: the idea is to provide a series of recipes that would allow
one to build other interpreters besides Matz's Ruby (Rubinius, JRuby, etc).
dependencies/*.rake: this contains the dependencies needed to be downloaded,
compiled and included for the interpreter to work properly. At this time only
readline, zlib and openssl are included.
installer/*.rake: here we will store the basic recipes to generate MSI packages
(using the WiX toolset) or any other kind of package.
At this time you require to have a working Ruby installation (current stable
One-Click release is enough).
In case you don't use OCI for this, you need:
- Ruby 1.8.5 at least (mswin32 or mingw32 implementation will work) -- Not cygwin!
- Rake 0.7.3 or greater
- Zlib extension and DLL (zlib1.dll) available in the PATH (could be in system32
or your RUby bin directory)
=== Build options:
without specifying any options, 1.8.6 is built.
rake ruby19 builds 1.9.1
rake CHECKOUT=1 builds 1.8.6 svn latest
rake ruby19 CHECKOUT=1 builds 1.9.1 svn latest
rake ruby19 CHECKOUT=1 TRUNK=1 builds 1.9 trunk latest (1.9.2dev).
NOTE: Avoid extracting this project into a PATH with spaces, MSYS have issues
mounting fstab for MinGW.
To generate the Microsoft Windows Installer (MSI), you require have dotNET 2.0
for WiX toolset to work and dotNET 3.5 for Paraffin utility.
NOTE: On Vista, run the rake task from an administrator command prompt or "/bin/patch"
will fail during the build.
Izmjenjeno od Ernad Husremović prije više od 15 godina
- Naslov promijenjeno iz ruby windows exe u ruby windows exe, ruby installer
$ git clone git://github.com/oneclick/rubyinstaller.git
Initialized empty Git repository in c:/devel/git/rubyinstaller/.git/ remote: Counting objects: 1382, done. remote: Compressing objects: 100% (728/728), done. remote: Total 1382 (delta 652), reused 1133 (delta 509)/s Receiving objects: 100% (1382/1382), 331.60 KiB | 86 KiB/s, done. Resolving deltas: 100% (652/652), done.
Izmjenjeno od Ernad Husremović prije više od 15 godina
c:\ruby-1.8.7\rubygems-1.3.4\rubygems-1.3.4>ruby setup.rb install
Installing RubyGems Installing gem executable Removing old source_cache files Removing old RubyGems RDoc and ri Installing rubygems-1.3.4 ri into c:/ruby-1.8.7/lib/ruby/gems/1.8/doc/rubygems-1.3.4/ri ..
Izmjenjeno od Ernad Husremović prije više od 15 godina
Izmjenjeno od Ernad Husremović prije više od 15 godina
staviti u c:\ruby-1.8.7\bin
extrahovati ovaj zlib dll i preimenovati zlib1.dll u zlib.dll
Izmjenjeno od Ernad Husremović prije više od 15 godina
c:\ruby-1.8.7\rubygems-1.3.4\rubygems-1.3.4>gem install rake --no-ri --no-rdoc
Successfully installed rake-0.8.7 1 gem installed
Izmjenjeno od Ernad Husremović prije više od 15 godina
proje toga je setovan path na c:\ruby-1.8.7\bin
Izmjenjeno od Ernad Husremović prije više od 15 godina
Izmjenjeno od Ernad Husremović prije više od 15 godina
- otpakovao ruby 1.8.7 u c:\ruby-1.8.7
- u njegov poddirektorij bin stavio zlibdll.dll
- instalirao openssl (dll-ovi otišli u sistemski windows direktorij)
Izmjenjeno od Ernad Husremović prije više od 15 godina
nakon toga u c:\devel\git\rubyinstaller> rake default
Izmjenjeno od Ernad Husremović prije više od 15 godina
ovaj rake task kupi mingw binaries, binutils itd potrebne za pravljenje installer-a
Izmjenjeno od Ernad Husremović prije više od 15 godina
- Fajl sqlite-3_6_15.zip sqlite-3_6_15.zip dodano
sqlite3 konzola¶
instalirao sqlite3 u c:\devel\bin\sqlite3
C:\devel\git\harbour\harbour\contrib\hbsqlit3\tests>c:\devel\bin\sqlite3 test.sqlite3
SQLite version 3.6.15 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> .schema CREATE TABLE t1( id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT, age INTEGER ); sqlite> select * from t1; 1|Bob|52 2|Fred|40 3|Sasha|25 4|Ivet|28 5|Andy|17 6|Mary|19
Izmjenjeno od Ernad Husremović prije više od 15 godina
C:\devel\git\harbour\harbour\contrib\hbsqlit3\tests>dir sqlite3_1.exe
Volume in drive C is ACER Volume Serial Number is DC98-768C Directory of C:\devel\git\harbour\harbour\contrib\hbsqlit3\tests 15.06.2009 18:41 1.693.211 sqlite3_1.exe 1 File(s) 1.693.211 bytes 0 Dir(s) 14.260.928.512 bytes free
Izmjenjeno od Ernad Husremović prije više od 15 godina
ruby sqlite3¶
C:\devel\git\harbour\harbour\contrib\hbsqlit3\tests>gem search -r sqlite3
*** REMOTE GEMS *** activerecord-jdbcsqlite3-adapter (0.9.1) dbd-sqlite3 (1.2.4) do_sqlite3 (0.9.12) jdbc-sqlite3 (3.6.3.054) sqlite3-ruby (1.2.4)
C:\devel\git\harbour\harbour\contrib\hbsqlit3\tests>gem install sqlite3-ruby --n
o-ri --no-rdoc
Building native extensions. This could take a while... ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. c:/ruby-1.8.7/bin/ruby.exe extconf.rb checking for fdatasync() in rt.lib... no checking for sqlite3.h... no nmake 'nmake' is not recognized as an internal or external command, operable program or batch file.
Izmjenjeno od Ernad Husremović prije više od 15 godina
- Naslov promijenjeno iz ruby windows exe, ruby installer u ruby windows exe, ruby installer, ruby-sqlite3
Izmjenjeno od Ernad Husremović prije više od 15 godina
- Fajl mingw32-unzip-5.52-3.zip mingw32-unzip-5.52-3.zip dodano
rubyinstaller, ruby 1.8.6 mingw¶
prvo unzip\bin fajlovi idu u c:\ruby\1.8.7
e sad idemo napraviti ruby 1.8.6 mingw
c:\devel\git\rubyinstaller> rake
c:\devel\git\rubyinstaller\sandbox>mkdir c:\ruby-1.8.6-mingw
c:\devel\git\rubyinstaller\sandbox>xcopy /s ruby18_mingw\* c:\ruby-1.8.6-mingw
Izmjenjeno od Ernad Husremović prije više od 15 godina
idemo sa njim probyti napraviti ruby sqlite¶
C:\devel\git\sqlite3-ruby>set path=c:\ruby-1.8.6-mingw\bin;%PATH%
C:\devel\git\sqlite3-ruby>ruby --version
ruby 1.8.6 (2009-03-31 patchlevel 368) [i386-mingw32]
Izmjenjeno od Ernad Husremović prije više od 15 godina
C:\devel\git\sqlite3-ruby>gem install rake rake-native --no-ri --no-rdoc
Successfully installed rake-0.8.7 1 gem installed
C:\devel\git\sqlite3-ruby>rake native
Izmjenjeno od Ernad Husremović prije više od 15 godina
C:\devel\git\sqlite3-ruby>rake vendor:sqlite3
(in C:/devel/git/sqlite3-ruby) c:/devel/git/rubyinstaller/sandbox/mingw/bin/dlltool.exe --dllname vendor/sqlite 3/lib/sqlite3.dll --def vendor/sqlite3/lib/sqlite3.def --output-lib vendor/sqlit e3/lib/sqlite3.lib c:/devel/git/rubyinstaller/sandbox/mingw/bin/dlltool.exe: Path components stripp ed from dllname, 'vendor/sqlite3/lib/sqlite3.dll'. mkdir -p vendor/sqlite3/include cd vendor 'wget' is not recognized as an internal or external command, operable program or batch file. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 991k 100 991k 0 0 77170 0 0:00:13 0:00:13 --:--:-- 107k cd - cd vendor/sqlite3/include unzip C:/devel/git/sqlite3-ruby/vendor/sqlite-amalgamation-3_6_14_1.zip Archive: C:/devel/git/sqlite3-ruby/vendor/sqlite-amalgamation-3_6_14_1.zip inflating: sqlite3.c inflating: sqlite3.h inflating: sqlite3ext.h touch sqlite3.h cd -
Izmjenjeno od Ernad Husremović prije više od 15 godina
C:\devel\git\sqlite3-ruby>copy "c:\Qt\2009.02\mingw\bin\mingw32-make.exe" "c:\Qt\2009.02\mingw\bin\make.exe"
1 file(s) copied.
Izmjenjeno od Ernad Husremović prije više od 15 godina
ne mogu napraviti nijednu ekstenziju¶
C:\devel\git\sqlite3-ruby>rake native
(in C:/devel/git/sqlite3-ruby) cd tmp/i386-mingw32/sqlite3_api make make: *** No rule to make target `ruby.h', needed by `sqlite3_api_wrap.o'. Stop .
Izmjenjeno od Ernad Husremović prije više od 15 godina
mingw\msys je rješenje compilaciju ruby.ext-a¶
C:\devel\git\rubyinstaller>set PATH
Path=*C:\devel\git\rubyinstaller\sandbox\msys\bin*;C:\WINDOWS\system32;C:\WINDOWS;
C:\WINDOWS\System32\Wbem;C:\Program Files\CMake 2.6\bin;c:\qt\2009.02\qt\bin;c:\
Qt\2009.02\bin;c:\Qt\2009.02\mingw\bin;c:\harbour\bin;C:\Program Files\Git\cmd;c
:\Ruby\bin;c:\PostgreSql\8.3\bin
C:\devel\git\rubyinstaller>gem install eventmachine
Building native extensions. This could take a while... Successfully installed eventmachine-0.12.8 1 gem installed Installing ri documentation for eventmachine-0.12.8... Installing RDoc documentation for eventmachine-0.12.8...
Izmjenjeno od Ernad Husremović prije više od 15 godina
c:\devel\git\sqlite3-ruby>rake native gem
(in c:/devel/git/sqlite3-ruby) cp tmp/i386-mingw32/sqlite3_api/sqlite3_api.so lib/sqlite3_api.so WARNING: description and summary are identical Successfully built RubyGem Name: sqlite3-ruby Version: 1.2.4 File: sqlite3-ruby-1.2.4-x86-mingw32.gem mv sqlite3-ruby-1.2.4-x86-mingw32.gem pkg/sqlite3-ruby-1.2.4-x86-mingw32.gem
Izmjenjeno od Ernad Husremović prije više od 15 godina
c:\devel\git\sqlite3-ruby>gem install pkg\sqlite3-ruby-1.2.4-x86-mingw32.gem
Successfully installed sqlite3-ruby-1.2.4-x86-mingw32 1 gem installed Installing ri documentation for sqlite3-ruby-1.2.4-x86-mingw32...
u prilogu je mingw32 gem
Izmjenjeno od Ernad Husremović prije više od 15 godina
lib se učitava:
c:\devel\git\sqlite3-ruby>irb
irb(main):001:0> require 'rubygems' => true irb(main):002:0> require 'sqlite3' => true
Izmjenjeno od Ernad Husremović prije više od 15 godina
Izmjenjeno od Ernad Husremović prije više od 15 godina
ruby 1.8.6 (2009-03-31 patchlevel 368) [i386-mingw32]
Izmjenjeno od Ernad Husremović prije više od 15 godina
- Fajl libreadline_msi.diff libreadline_msi.diff dodano
da bi napravio msi ruby, morao sam ispraviti *.wxs fajlove u kojima su definicije fajlova koji se dodaju u installer.
i tu sam izbacio readline5.dll, readline.so
Izmjenjeno od Ernad Husremović prije više od 15 godina
najviše se napatih na ovom ne mogu naći ruby.h problemu ...
Izmjenjeno od Ernad Husremović prije više od 15 godina
- Naslov promijenjeno iz ruby windows exe, ruby installer, ruby-sqlite3 u nmraka-2: vista: ruby windows exe, ruby installer, ruby-sqlite3
uh dok dođem do ove viste pa ona sažvaće updateove što je pokupila treba mi po sahata
Izmjenjeno od Ernad Husremović prije više od 15 godina
evo dole mi popup viče "Make windows better" - ma razguli džuli dosta što vas moram koristit' još da vas pravim better
Izmjenjeno od Ernad Husremović prije više od 15 godina
Izmjenjeno od Ernad Husremović prije više od 14 godina
- Status promijenjeno iz Dodijeljeno u Zatvoreno