Hi,
A. INSTALL DRUSH
----------------------------------------------------------------------------------
Download the recommended version of Drush from http://drupal.org/project/drush - zip version: All-versions-5.x-dev
Extract the files to the folder of your choice. For example, extract the folders directly in C:\ (better than C:\wamp)
B. ADDING UNIX COMMANDS TO WINDOWS
----------------------------------------------------------------------------------
1. Install: libarchive, gzip, wget, gtar unix utilities. Download setup & install:
http://gnuwin32.sourceforge.net/packages/libarchive.htm
http://gnuwin32.sourceforge.net/packages/gzip.htm
http://gnuwin32.sourceforge.net/packages/wget.htm
http://gnuwin32.sourceforge.net/packages/gtar.htm
1.a. Install: coreutils, gawk utilities for drush_make - in the same dir: C:\Program Files (x86)\GnuWin32\bin; (32 bits syst: C:\Program Files\GnuWin32\bin)
http://gnuwin32.sourceforge.net/packages/coreutils.htm
http://gnuwin32.sourceforge.net/packages/gawk.htm
2. bsdtar.exe is more reliable than tar.exe, so copy bsdtar.exe to tar.exe
C:\Program Files\GnuWin32\bin\bsdtar.exe
C:\Program Files\GnuWin32\bin\tar.exe
3. cmd type: drush dl drush_make-6.x-2.3 (project drush_make contains 0 modules - OK) - will download drush_make in C:\users\user_name\.drush
-------------------------------------------------------------------------------------------------------------
C. USE GIT WITH DRUSH
You need GitBash to clone projects from github.
Install msysgit:
http://code.google.com/p/msysgit/downloads/detail?name=Git-1.7.6-preview...
--------------------------------------------------------------------------------------------------------------------
D. Set PATH environment variable to include drush, php, binaries, git installed above.
* Click on the start menu.
* Right click on "Computer" (My Computer), click on "Properties".
* Click "Advanced System Settings"
* On the "Advanced" tab, click the "Environmental Variables" button.
* Under "System Variables", edit the "Path" variable, adding the paths to the executables for the programs installed above. Do not remove existing parts of the Path variable.
example path addition:
;C:\drush;C:\Program Files (x86)\GnuWin32\bin;C:\wamp\bin\php\php5.3.0;C:\wamp\bin\mysql\mysql5.1.36\bin;C:\Program Files (x86)\Git\bin
The semicolon separates the paths; don't leave blank space between them.
Paths are those to: php.exe, mysql.exe, drush.bat, git.exe location, and the tar/gzip/wget/lib/gawk/coreutils binaries.
-----------------------------------------------------------------------------------
VERFICATION
from cmd type: drush - will list all available comamnds for drush - including drush_make
from cmd type: git - will list all available comamnds for git - including clone
DRUSH & DRUSH_MAKE & GITBASH - are installed corectly
================================================================
Create a DATABASE for your website.
* Open a browser & navigate to "http://localhost" or "http://localhost:8080" - depends on your port settings
* Click on "PHPMyAdmin"
* In the middle, under "Create a new database", type in a database name that you wish to
create (ex. "mediafrontdemo"). Choose the "utf8_general_ci" collation, and click the "Create" button.
================================================================
USE MEDIAFRONT.MAKE
I attached mediafront.make as mediafront.txt, from:
https://github.com/travist/mediafront_demo/blob/7.x-1.x/mediafront.make
* Download, save it as mediafront.make & copy mediafront.make in c:\wamp\www
* cmd: c:\wamp\www> type: drush make mediafront.make media - assemble drupal installation with specifications from "mediafront.make" in a site called "media" in c:\wamp\www
* Enable modules contained in installation: drush en -y [modules_name]
==================================================
DONE
Note: I used - drupal setting in: wamp\www\media; you might use: xampp\htdocs\media
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | mediafront.make_.txt | 1.34 KB | ZuluWarrior |
| mediafront.txt | 594 bytes | iancu35 |
Comments
Comment #1
ZuluWarrior commented+1 !!! in fact +1,000,000,000 for this post!!!!!
I've been trying to get drush_make and mediafront example work all week! Thank you so much for this documentation, travist pointed me to this post!
I now have great success!!
We need to get te word out for all those Win users that wish to use drupal_make and/or travist's examples! Perhaps I might try and post a link in MediaFronts comment's.
Thanks again!
Comment #2
ZuluWarrior commentedLOL, spoke too soon, seems I'm getting the following errors:
>Unable to clone mediafront from [error]
git@github.com:mediafront/mediafront.git.
> Unable to clone media from git@github.com:travist/media_module.git. [error]
>Unable to clone file_entity from [error]
git@github.com:travist/file_entity_module.git.
And nothing gets installed :( Any ideas??
Comment #3
ZuluWarrior commentedFixed it a bit myself, there was some spurious colons (:) in the make file, specifically the urls referring to the git repositories, attached is the make file (as a txt) that worked for me :)
Now the make file runs and installs fine (under Win7 at least!) :)
Comment #4
travist commentedThe latest mediafront_demo is still in flux. I am working on it right now and should have a stable version of it within the next week. I am going to have to back off the latest Dev versions of the Media module since it is really ALPHA right now.... I will make sure that I give it a major revision so that I don't change it beneath peoples feet again. This is maybe what is causing you headache ZuluWarior.
Comment #5
iancu35 commentedthank you both, for your comments
1. travist
is your great merit for doing these for the community
thank you for unifying many of media issues
my great request is how to set a audio files/ mp3 player: http://drupal.org/node/1246170
a short tutorial would be welcome
2. zuluwarrior
media 7.x-2.x. branch requires also file_enity; so you could dl these 3 projects directly from dupal.org in your .make file:
projects[media] = 2.x-dev
projects[file_entity] = 1.x-dev
projects[mediafront] = 1.x-dev
Comment #6
Thelonious Fonk commentedGreat post!!!! Thank you so much for this, I've been struggling for 3 days to get this mediafront demo installed and I hope this will help.
There is still something I don't get: how does drush make command know it has to create tables and insert data into the db you create in this procedure (mediafrontdemo in your example). I'm asking because I already have a db used by drupal for my existing site and I don't want the drush make command to overwrite the data in there.
Sorry if this is a stupid question, I'm just starting with Drupal/Media/Mediafront, etc.
Thanks!
Comment #7
Thelonious Fonk commentedOther question:
I backed up my db and tried this procedure but when I use the drush make command, here is what I get:
C:\ProgramData\Propeople\Drush>drush -i c:\programdata\propeople\Drush\commands
make mediafront.make
fopen(c:\programdata\propeople\Drush\commands): failed to open ←[1;33;40m←
[1m[warning]←[0m
stream: Permission denied drush.inc:381
Make new site in the current directory? (y/n): n
Build aborted. [ok]
Make new site in the current directory? (y/n): n
Build aborted. [ok]
Any clue?
Thanks!
Comment #8
Thelonious Fonk commentedRegarding my last post I was missing the 2nd argument in the command line (site name).
Sorry about that.
Cheers
Comment #9
ZuluWarrior commentedFYI, the make file I ran did install the facility to restore a backup, but no database file was found. I just ran the make, ran the install for the site it made (created a separate database for it and gave the db details in the drupal install script), and activted the modules via 'drush en'.
After this I had a site with the view pre-installed, and a content type, to which I added content and at /media there they where :)
Comment #10
inkling commentedThanks much for this. I've been trying to get the mediafront demo working for days. This has got me a lot closer.
FYI, the drush dl command (in step B.3) didn't work for me until I set the path (step D). Also, I believe backslashes are needed at the end of each directory in the path.
Comment #11
inkling commentedFWIW, I used the mediafront_complete.make file instead of the other .make file. You can get it at https://github.com/travist/mediafront_demo/blob/7.x-1.x/mediafront_compl...
I had to make sure other modules were up to date before using the command "drush en media_feature."
Comment #12
iancu35 commentedinkling
- if you are in drush installation dir (e.g. C:\drush), it should dl drush_make; otherwise first you need to specify the path i.e. telling system where to look for drush installation dir
- backslashes are need depending on the win version (I guess)
- to be sure the system finds also drush_make dir installation, you can add this path too in the environment variables line (e.g. C:\users\user_name\.drush\drush_make)
Comment #13
inkling commented@iancu35
It's a little late to go back and check now, but I think I tried drush_make in the drush installation dir and had a different sort of error come up. That's when I realized I needed to change the path and started looking at what I had installed. Only later did I find your helpful documentation down lower in the instructions about what to put in the path. I was hoping to save others a few minutes of time.
In any case, thanks again for this very useful documentation. It's the best I've found anywhere.
Comment #14
ZuluWarrior commentedRegarding Drush_make and windows, the ONLY way I got this to work was to use drush to install the drush_make module (v6.x), after I did that it was all fine!
I tried the manual drush_make file/folder way but ran inot backslash/forwardslash issues under windows...
FYI, the mediafront_complete make file is new (Travist created it a week or so after my last comment I believe) and if it works better I'd say go with that file now!
Comment #15
lionsharz commentedHi
I just tried running this make file several times on Windows and no dice. I can run other make files no problem on that machine. The thing is that I can run it fine on my Ubuntu virtual machine. Why is it faililng on Windows if other make files are fine?
It fails on a couple of things there and so the result is an empty folder. Any advice on this? I'd love to get it working so I can have something to go on for my own site :)
Cheers
Comment #16
anuppc commentedHi I get the same error. This is for MediaFront 7.x-2.x-media.
Is there a manual workaround to resolve these issues??
Thanks
Anup
Comment #17
anuppc commentedHi,
Tried the 7.x-1.x-media version.
Slightly better, only one error : html5_media-7.x-1.x-dev.tar.gz
Any tips on how to solve this?
Thanks
Anup
Comment #18
anuppc commentedResolved the error by changing the HTML5 project version
From : projects[html5_media] = 1.x-dev
To : projects[html5_media] = 1.x
Comment #19
travist commentedI just ran through the make files and they are working for me. I did have to update the modules, but other than that it seems to still work.