New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation, composer, and the download via git #3346

Closed
mwjames opened this Issue Aug 25, 2018 · 4 comments

Comments

2 participants
@mwjames
Copy link
Contributor

mwjames commented Aug 25, 2018

Only for the purpose of documentation!

Download from Git

Fetching master

$ cd extensions

$ git clone -b master https://github.com/SemanticMediaWiki/SemanticMediaWiki.git

Cloning into 'SemanticMediaWiki'...
remote: Counting objects: 91929, done.
remote: Compressing objects: 100% (119/119), done.
remote: Total 91929 (delta 44), reused 33 (delta 13), pack-reused 91797
Receiving objects: 100% (91929/91929), 34.21 MiB | 1.24 MiB/s, done.
Resolving deltas: 100% (72255/72255), done.
Checking out files: 100% (2412/2412), done.

Fetching a specific branch (aka version)

$ cd extensions

$ git clone -b 2.5.x https://github.com/SemanticMediaWiki/SemanticMediaWiki.git

Cloning into 'SemanticMediaWiki'...
remote: Counting objects: 91929, done.
remote: Compressing objects: 100% (119/119), done.
remote: Total 91929 (delta 44), reused 33 (delta 13), pack-reused 91797
Receiving objects: 100% (91929/91929), 34.21 MiB | 1.24 MiB/s, done.
Resolving deltas: 100% (72255/72255), done.
Checking out files: 100% (2412/2412), done.

Make sure the folder you just downloaded is called SemanticMediaWiki and located in extensions/

Download archive

Instead of using Git you can alternatively download an archive with the latest version of SemanticMediaWiki or choose to download a specific version of SemanticMediaWiki.
Make sure you extract the archive into a new folder called SemanticMediaWiki inside the extensions folder of your MediaWiki installation.

Using the composer-merge-plugin

Include the following into composer.local.json at the root of your mediawiki installation:

{
  "extra": {
    "merge-plugin": {
      "include": [
        "extensions/SemanticMediaWiki/composer.json"
      ]
    }
  }
}

and run from the root of your mediawiki installation:

composer install --no-dev

or

php composer.phar install --no-dev
@mwjames

This comment has been minimized.

Copy link
Contributor

mwjames commented Aug 25, 2018

@kghbln I'd like us to stop producing tarball downloads as it binds volunteer time and is tedious to make for any minor release. So, instead maybe above can provide a installation method for those that have issues with a pure Composer approach and is similar to what the wikibase extension promotes [0].

[0] https://www.mediawiki.org/wiki/Wikibase/Installation

@kghbln kghbln added this to the SMW 3.0.0 milestone Aug 25, 2018

@kghbln kghbln added this to Documentation in Documentation Aug 25, 2018

@kghbln

This comment has been minimized.

Copy link
Member

kghbln commented Aug 25, 2018

Well, starting with SMW 3.0.0 I will no longer do it anyways, also due to the fact that it no longer works with extension registration. Moreover I think that it does no longer make sense to run SMW on a machine without command line access. I think that we will have to be frank about this and at the same time not requiring a graduation in "nuclear science" to get things running on the sever unlike e.g. MW itself.

@mwjames

This comment has been minimized.

Copy link
Contributor

mwjames commented Aug 25, 2018

Well, starting with SMW 3.0.0 I will no longer do it anyways, also due to the fact that it no longer works with extension registration.

We should add a note to the release notes about it.

@kghbln

This comment has been minimized.

Copy link
Member

kghbln commented Aug 25, 2018

We should add a note to the release notes about it.

Indeed, I created an extra issue for this.

@kghbln kghbln closed this Sep 1, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment