פורסם 2013 בנובמבר 2112 שנים התקנתי עכשיו על VM של Widnows 7 מ http://railsinstaller.org/en והכל תקין כולל חיבור לGitHub ואפילו git clone לאחד הפרוייקטים.מה ניסית להתקין בכלל? אתה לא צריך לעשות שום דבר ב gem כדי שזה יעבוד. כנראה שניסית לעבוד לפי מדריך ממש ישן.
פורסם 2013 בנובמבר 2112 שנים מחבר ה railsinstaller נותן לך גרסה ישנה של railsאני התקנתי קודם:http://rubyinstaller.org/את הגרסה 2.0.0 של 64 ביט,ואז את הdevkit לפי https://github.com/oneclick/rubyinstaller/wiki/Development-Kitואז דרך הGEM את railsוהכול עד כאן אחלה...אבל שאני מנסה את השורה הזו :ruby new proname -d mysqlהוא נתקע לי בבאנדל,וגם אם אני מנסה להתקין לבד את הבאנדל - הוא נתקע לי ונותן לי את ההערה שהבאתי בתחילת שהדיון
פורסם 2013 בנובמבר 2112 שנים ה-gem שאתה מנסה להתקין (mysql2) בונה מה שנקרא native extensions, בשביל זה אתה צריך שיהיה לך mysql מותקן על המחשב. אם כבר יש לך (כחלק מ-xampp או לא) תנסה את הפתרון הבא:http://stackoverflow.com/a/5368767אגב, זה הלינק השני כשמחפשים בגוגל mysql2 windows
פורסם 2013 בנובמבר 2112 שנים מחבר לא עזר - זה מה שקיבלתי:C:\Users\home>gem install mysql2 --platform=ruby -- '--with-mysql-lib="C:\mysql-connector\lib" --with-mysql-include="C:\mysql-connector\include" --with-mysql-dir="C:\mysql-connector"'Temporarily enhancing PATH to include DevKit...Building native extensions with: '--with-mysql-lib="C:\mysql-connector\lib" --with-mysql-include="C:\mysql-connector\include" --with-mysql-dir="C:\mysql-connector"'This could take a while...ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. C:/Ruby200-x64/bin/ruby.exe extconf.rb --with-mysql-lib="C:\mysql-connector\lib" --with-mysql-include="C:\mysql-connector\include" --with-mysql-dir="C:\mysql-connector"checking for ruby/thread.h... yeschecking for rb_thread_call_without_gvl() in ruby/thread.h... yeschecking for rb_thread_blocking_region()... yeschecking for rb_wait_for_single_fd()... yeschecking for rb_hash_dup()... yeschecking for rb_intern3()... yes-----Cannot find include dir at C:\mysql-connector\include;C:\mysql-connector\include;C:\mysql-connector/include-----*** extconf.rb failed ***Could not create Makefile due to some reason, probably lack of necessarylibraries and/or headers. Check the mkmf.log file for more details. You mayneed configuration options.Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=C:/Ruby200-x64/bin/ruby --with-mysql-dir --with-mysql-include=${mysql-dir}/include --with-mysql-lib=${mysql-dir}/ --with-mysql-dir --with-mysql-include=${mysql-dir}/include --with-mysql-lib=${mysql-dir}/libGem files will remain installed in C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/mysql2-0.3.14 for inspection.Results logged to C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/mysql2-0.3.14/ext/mysql2/gem_make.outC:\Users\home>
פורסם 2013 בנובמבר 2212 שנים מחבר טוב...בגדול הבנתי מה הבעיה שלי-שאני בונה פרוייקט שה DB שלו הוא לא MYSQL אין לי שום בעיה...אבל שאני מגדיר בשורת קוד בקונסול -d mysqlפה אני כבר לא מצליח להריץ את הבנדלר ואת השרת...יש רעיון למישהו???והצלחתי להתקין את הMYSQL הרגיל... דרך ה GEM נערך 2013 בנובמבר 2212 שנים על-ידי puvsc
פורסם 2013 בנובמבר 2212 שנים אני ממליץ לך לא לנסות לעבוד עם ruby ו-rails על ווינדוס, אתה פשוט תתקל בבעיה אחרי בעיה. יש המון דברים שלא רצים על ווינדוס, ואלו שכאן נעשו בדרך כלל בצורה פאצ'ית.אתה יכול לעבוד על VM של לינוקס או להתקין ב-dual boot.אם חשוב לך כן לערוך את הקוד בסביבת ווינדוס אז אתה יכול להשתמש ב-VM ולשתף תיקיות בין הווינדוס ללינוקס, כלומר לעבוד בווינדוס אבל להריץ את הקוד בלינוקס.
פורסם 2013 בנובמבר 2212 שנים נראה שלמישהו קרה משהו דומה: https://groups.google.com/forum/#!msg/rubyinstaller/w4LPHQc3M2A/_zM6k2r5E8sJאם אתה בטוח ש-mysql מותקן אז כנראה יש בעיה בהגדרת הנתיב אל הספריות שה-gem צריך אותם תבדוק את הנתיבים:--with-mysql-lib="C:\mysql-connector\lib"--with-mysql-include="C:\mysql-connector\include"--with-mysql-dir="C:\mysql-connector"'לפי הפקודה האחרונה שנתתה:C:\Users\home>gem install mysql2 --platform=ruby -- '--with-mysql-lib="C:\mysql-connector\lib" --with-mysql-include="C:\mysql-connector\include" --with-mysql-dir="C:\mysql-connector"'התוצאה היא שהוא לא יכול למצוא include dir בתוך C:\mysql-connector\include (בנתיב שהוגדר לו)Cannot find include dir at C:\mysql-connector\include;C:\mysql-connector\include;C:\mysql-connector/include-----*** extconf.rb failed ***Could not create Makefile due to some reason, probably lack of necessarylibraries and/or headers. Check the mkmf.log file for more details. You mayneed configuration options.עוד לינק שיכול להיות שימושי:Cannot install mysql or mysql2 gem with my system MySQL https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting#wiki-gems_mix_bits נערך 2013 בנובמבר 2212 שנים על-ידי tranq
פורסם 2013 בנובמבר 2212 שנים למה -זה עד כדי כך בעייתי???פשוט הרוב המוחץ של מי שמשתמש בשפה מפתח ללינוקס (ומאק, Unix-like בכללי) וזה כולל מפתחים של gemים ו-frameworkים. זה אומר שבמקרה הטוב תקבל תמיכה בינונית, במקרה הסביר תשתמש ב-patchים למיניהם ובמקרה הרע פשוט לא תוכל לעבוד עם ספריות מסוימות.
פורסם 2013 בנובמבר 2812 שנים מחבר אוקיי- לכל הסקפטים הצלחתי להתקין את הבאנדל ואת ה mysql !!!! א-ב-ל שאני מנסה להריץ את הserver אני מקבל את המסך המצורף... יש למישהו מושג??? למה זה לא עובד לי....
פורסם 2013 בדצמבר 1511 שנים מחבר אוקיי , דבר ראשון- תודה לכול אלו שניסו לעזור אבל מצאתי את הפיתרון במדריך הבא:http://www.globalnerdy.com/2013/10/25/how-to-install-rails-4-on-windows-including-windows-8-and-8-1/הכול עובד פיצוץ!!!רק להשים לב שגם על 64 ביט להתקין את כול החבילות של 32 ביטאפשר לנעול
ארכיון
דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.