![]() The next error encountered is when I try to start the rails server using ‘rails s’ ![]() with-mysql-include=/usr/local/mysql/include with-mysql-dir=/usr/local/mysql -with-mysql-lib=/usr/local/mysql/lib \ The next step is to download the gem for your ruby/rails use sudo env ARCHFLAGS="-arch x86_64" gem install mysql2 - \ If anyone has any further insights please let me know. Now, if I’m not mistaken that’s an i386 at the end – go figure. How to prove this I do not know – I’m confused and still searching for the answer. The rationale behind this is that your new beaut 10.6 is actually referencing 64 bit modules by default. Now go and download the 64 bit version of the MySQL package – get the dmg rather than the gzip file. Uninstall your MySQL using the commands belowĮdit /etc/hostconfig and remove the line MYSQLCOM=-YES Users/peter/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/st.h:69: error: size of array ‘st_check_for_sizeof_st_index_t’ is negative Users/peter/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/ruby.h:112: error: size of array ‘ruby_check_sizeof_voidp’ is negative This could take a while.ĮRROR: Failed to build gem native extension.ġ.9.1/ruby/ruby.h:108: error: size of array ‘ruby_check_sizeof_long’ is negative ![]() sudo gem install mysql2Īnd after a bit of crunching, we get to the following error: Building native extensions. I do a manual install using the following command. I then do a ‘bundle install’ and it gripes about not having mysql2 gem installed. I installed mysql 5.5.9-OSX10.6-X86 (because I thought everything was still i386 based…watch this space!) I installed RVM and installed ruby 1.92 under RVM control. I have a brand spanking new OSX 10.6 installation. Strapi also offers a starters CLI to create a project with a pre-made frontend application (see our dedicated blog post).Hopefully this will be a time saver for anyone else who goes through the following pain. -no-run: Prevent Strapi from automatically starting the server (useful in combination with -quickstart).įor more information on available flags, see our CLI documentation. ![]() -typescript/ -ts: Create a project in TypeScript.-template: Create a project with pre-made Strapi configurations (see Templates).-quickstart: Directly create the project in quickstart mode.There are other options that can be used when creating a new Strapi project, for example: The above installation guide only covers the basic installation option using the CLI. (Custom installation type only) Name your project's database. (Custom installation type only) Among the list of databases, choose a database for your Strapi project. Custom (manual settings), which allows to choose your preferred database.Quickstart (recommended), which uses the default database (SQLite).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |