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

CommentFileSizeAuthor
#3 mediafront.make_.txt1.34 KBZuluWarrior
mediafront.txt594 bytesiancu35

Comments

ZuluWarrior’s picture

+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!

ZuluWarrior’s picture

LOL, 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??

ZuluWarrior’s picture

StatusFileSize
new1.34 KB

Fixed 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!) :)

travist’s picture

The 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.

iancu35’s picture

thank 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

Thelonious Fonk’s picture

Great 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!

Thelonious Fonk’s picture

Other 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!

Thelonious Fonk’s picture

Regarding my last post I was missing the 2nd argument in the command line (site name).

Sorry about that.

Cheers

ZuluWarrior’s picture

FYI, 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 :)

inkling’s picture

Thanks 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.

inkling’s picture

FWIW, 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."

iancu35’s picture

inkling
- 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)

inkling’s picture

@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.

ZuluWarrior’s picture

Regarding 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!

lionsharz’s picture

Hi

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?

Make new site in the current directory? (y/n): y
drupal-7.17 downloaded.                                                                                                  [ok]

 >> media_feature cloned from git://github.com/travist/media_feature.git.                                                [ok]

 >> Checked out branch 7.x-2.x-media.                                                                                    [ok]

 >> Unable to download html5_media-7.x-1.x-dev.tar.gz?date=1349440071 to                                              [error]

c:/Windows/TEMP/drush_tmp_1355867855_50d0e6cfb6370 from
http://ftp.drupal.org/files/projects/html5_media-7.x-1.x-dev.tar.gz?date=1349440071
 >> media_vimeo-7.x-1.0-beta5 downloaded.                                                                                [ok]

 >> media_youtube-7.x-1.0-beta3 downloaded.                                                                              [ok]

 >> media_browser_plus-7.x-1.0-beta3 downloaded.                                                                         [ok]

 >> Project media contains 3 modules: media_internet, file_entity, media.
 >> Unable to download mediafront-7.x-2.x-dev.tar.gz?date=1355706743 to                                               [error]

c:/Windows/TEMP/drush_tmp_1355867865_50d0e6d934ee8 from
http://ftp.drupal.org/files/projects/mediafront-7.x-2.x-dev.tar.gz?date=1355706743
 >> media-7.x-1.2 downloaded.                                                                                            [ok]

 >> styles-7.x-1.0-alpha4 downloaded.                                                                                    [ok]

 >> Project styles contains 3 modules: styles_ui, file_styles, styles.
 >> Project views contains 2 modules: views, views_ui.
 >> strongarm-7.x-2.0 downloaded.                                                                                        [ok]

 >> features-7.x-1.0-rc3 downloaded.                                                                                     [ok]

 >> views-7.x-3.3 downloaded.                                                                                            [ok]

 >> Project ctools contains 9 modules: views_content, stylizer, page_manager, ctools_plugin_example, ctools_custom_content, c
tools_ajax_sample, ctools_access_ruleset, bulk_export, ctools.
 >> ctools-7.x-1.0 downloaded.                                                                                           [ok]

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

anuppc’s picture

Hi I get the same error. This is for MediaFront 7.x-2.x-media.

C:\Users\anup\Sites\acquia-drupal\sites\all>drush make mediafront_complete.make
Make new site in the current directory? (y/n): y
drupal-7.18 downloaded.                                                                         [ok]

 >> Unable to download html5_media-7.x-1.x-dev.tar.gz?date=1349440071 to                     [error]

C:\Users\anup\AppData\Local\Temp/drush_tmp_1356359324_50d8669c3a362 from
http://ftp.drupal.org/files/projects/html5_media-7.x-1.x-dev.tar.gz?date=1349440071
 >> media_vimeo-7.x-1.0-beta5 downloaded.                                                       [ok]

 >> media_youtube-7.x-1.0-beta3 downloaded.                                                     [ok]

 >> media_browser_plus-7.x-1.0-beta3 downloaded.                                                [ok]

 >> Project media contains 3 modules: media_internet, file_entity, media.
 >> Unable to download mediafront-7.x-2.x-dev.tar.gz?date=1355879812 to                      [error]

C:\Users\anup\AppData\Local\Temp/drush_tmp_1356359327_50d8669f36131 from
http://ftp.drupal.org/files/projects/mediafront-7.x-2.x-dev.tar.gz?date=1355879812
 >> Project styles contains 3 modules: styles_ui, file_styles, styles.
 >> media-7.x-1.2 downloaded.                                                                   [ok]

 >> styles-7.x-1.0-alpha4 downloaded.                                                           [ok]

 >> Project views contains 2 modules: views, views_ui.
 >> views-7.x-3.3 downloaded.                                                                   [ok]

 >> strongarm-7.x-2.0 downloaded.                                                               [ok]

 >> features-7.x-1.0-rc3 downloaded.                                                            [ok]

 >> Project ctools contains 9 modules: views_content, stylizer, page_manager, ctools_plugin_example,
 ctools_custom_content, ctools_ajax_sample, ctools_access_ruleset, bulk_export, ctools.
 >> ctools-7.x-1.0 downloaded.                           

Is there a manual workaround to resolve these issues??

Thanks
Anup

anuppc’s picture

Hi,

Tried the 7.x-1.x-media version.

C:\Users\anup\Sites\acquia-drupal\sites\all>drush make mediafront_complete.make
Make new site in the current directory? (y/n): y
drupal-7.18 downloaded.                                                                         [ok]

 >> Unable to download html5_media-7.x-1.x-dev.tar.gz?date=1349440071 to                     [error]

C:\Users\anup\AppData\Local\Temp/drush_tmp_1356360432_50d86af0bb49e from
http://ftp.drupal.org/files/projects/html5_media-7.x-1.x-dev.tar.gz?date=1349440071
 >> media_vimeo-7.x-1.0-beta5 downloaded.                                                       [ok]

 >> media_youtube-7.x-1.0-beta3 downloaded.                                                     [ok]

 >> media_browser_plus-7.x-1.0-beta3 downloaded.                                                [ok]

 >> Project media contains 3 modules: media_internet, file_entity, media.
 >> media-7.x-1.2 downloaded.                                                                   [ok]

 >> Project mediafront contains 3 modules: osmplayer, minplayer, mediafront.
 >> mediafront-7.x-1.5 downloaded.                                                              [ok]

 >> Project styles contains 3 modules: styles_ui, file_styles, styles.
 >> styles-7.x-1.0-alpha4 downloaded.                                                           [ok]

 >> Project views contains 2 modules: views, views_ui.
 >> strongarm-7.x-2.0 downloaded.                                                               [ok]

 >> features-7.x-1.0-rc3 downloaded.                                                            [ok]

 >> views-7.x-3.3 downloaded.                                                                   [ok]

 >> Project ctools contains 9 modules: views_content, stylizer, page_manager, ctools_plugin_example,
 ctools_custom_content, ctools_ajax_sample, ctools_access_ruleset, bulk_export, ctools.
 >> ctools-7.x-1.0 downloaded.                                                                  [ok]

Slightly better, only one error : html5_media-7.x-1.x-dev.tar.gz

Any tips on how to solve this?

Thanks
Anup

anuppc’s picture

Resolved the error by changing the HTML5 project version

From : projects[html5_media] = 1.x-dev
To : projects[html5_media] = 1.x

travist’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Status: Active » Closed (cannot reproduce)

I 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.