{"action":"created","issue":{"url":"https://api.github.com/repos/openSUSE/open-build-service/issues/2113","repository_url":"https://api.github.com/repos/openSUSE/open-build-service","labels_url":"https://api.github.com/repos/openSUSE/open-build-service/issues/2113/labels{/name}","comments_url":"https://api.github.com/repos/openSUSE/open-build-service/issues/2113/comments","events_url":"https://api.github.com/repos/openSUSE/open-build-service/issues/2113/events","html_url":"https://github.com/openSUSE/open-build-service/issues/2113","id":175654109,"number":2113,"title":"How to install obs 2.7 on Ubuntu 16.04 X64?","user":{"login":"leemgs","id":82404,"avatar_url":"https://avatars.githubusercontent.com/u/82404?v=3","gravatar_id":"","url":"https://api.github.com/users/leemgs","html_url":"https://github.com/leemgs","followers_url":"https://api.github.com/users/leemgs/followers","following_url":"https://api.github.com/users/leemgs/following{/other_user}","gists_url":"https://api.github.com/users/leemgs/gists{/gist_id}","starred_url":"https://api.github.com/users/leemgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leemgs/subscriptions","organizations_url":"https://api.github.com/users/leemgs/orgs","repos_url":"https://api.github.com/users/leemgs/repos","events_url":"https://api.github.com/users/leemgs/events{/privacy}","received_events_url":"https://api.github.com/users/leemgs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-08T03:01:19Z","updated_at":"2016-09-08T07:24:38Z","closed_at":"2016-09-08T06:04:33Z","body":"I have been trying to build obs 2.7 on Ubuntu 16.04 X64. I seems that we need to apply for some patches to support Ubuntu 16.04 X64 distribution as well as OpenSUSE 12/13 distribution. I have got the some build errors in case that I tried to execute \"make install\" command on Ubuntu 16.04. Below is  how to build obs 2.7 on Ubuntu 16.04 X64. (**In progress**)\r\n\r\n###  Method1: How to use  'make'  and apache2\r\n\r\n\r\n* 0. install prerequisites\r\n\r\n```\r\nsudo apt update\r\nsudo apt install build-essential\r\nsudo apt install perl libjson-xs-perl libsocket-msghdr-perl libbssolv-perl libfile-sync-perl libmodule-build-perl\r\nsudo apt install ruby ruby-dev libldap2-dev ruby-bundler ruby-rails rake \r\n\r\nsudo apt install mysql-server libmysqlclient-dev\r\nsudo apt install libsasl2-dev libxslt1-dev\r\nsudo apt install memcached\r\n```\r\n\r\n\r\n\r\n* 1. Let's synchronize the script languages's version for obs 2.7. \r\n\r\n```\r\nu16.04$> sudo ln -s /usr/bin/rake    /usr/bin/rake.ruby2.3\r\nu16.04$> sudo ln -s /usr/bin/rails   /usr/bin/rails.ruby2.3\r\nu16.04$> sudo ln -s /usr/bin/ruby    /usr/bin/ruby.ruby2.3\r\n```\r\n\r\n* 2. Let's to apply the below patches for Ubuntu 16.04\r\n\r\n```\r\ndiff --git a/Makefile b/Makefile\r\nindex 8f48f47..e9f4eed 100644\r\n--- a/Makefile\r\n+++ b/Makefile\r\n@@ -1,4 +1,4 @@\r\n-all:\r\n+apidocs:\r\n        make -C docs/api/api apidocs\r\n \r\n install:\r\n```\r\n\r\n* 3. Let's try to run \"make\" command\r\n```\r\nu16.04$> make apidocs\r\nu16.04$> make install \r\n```\r\n\r\n### Method2: How to use standalone rake server\r\n\r\n* 1. Starting OBS back-end (written by perl): \r\n```\r\n#Back-end Source Server(5352) , Repository Server (5252)\r\ncd src/backend\r\ncp BSConfig.pm.template BSConfig.pm\r\nsu -c ./bs_srcserver\r\nsu -c ./bs_repserver\r\n```\r\n\r\n* 2. Starting OBS front-end (wirtten by Ruby on Rails)\r\n```\r\ncd ../../\r\ncd src/api\r\ncp config/database.yml.example config/database.yml\r\ncp config/options.yml.example  config/options.yml\r\nbundle install\r\nsudo gem install rdoc-data \r\nsudo rdoc-data --install \r\n# Executing rake inside the bundle using bundle exec\r\nbundle exec rake db:setup    ( or rake db:setup)\r\n```\r\n\r\n\r\n\r\n\r\n* 3.  run rails server (standalone web service)\r\n```\r\n# Start the rails server in a different port using \"rails s -p <port number>\" command instead of just \"rails s\r\nrails s -p 4000\r\nfirefox http://myobs.mooo.com:4000/   (id: Admin, password: opensuse)\r\n```\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/openSUSE/open-build-service/issues/comments/245515332","html_url":"https://github.com/openSUSE/open-build-service/issues/2113#issuecomment-245515332","issue_url":"https://api.github.com/repos/openSUSE/open-build-service/issues/2113","id":245515332,"user":{"login":"leemgs","id":82404,"avatar_url":"https://avatars.githubusercontent.com/u/82404?v=3","gravatar_id":"","url":"https://api.github.com/users/leemgs","html_url":"https://github.com/leemgs","followers_url":"https://api.github.com/users/leemgs/followers","following_url":"https://api.github.com/users/leemgs/following{/other_user}","gists_url":"https://api.github.com/users/leemgs/gists{/gist_id}","starred_url":"https://api.github.com/users/leemgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leemgs/subscriptions","organizations_url":"https://api.github.com/users/leemgs/orgs","repos_url":"https://api.github.com/users/leemgs/repos","events_url":"https://api.github.com/users/leemgs/events{/privacy}","received_events_url":"https://api.github.com/users/leemgs/received_events","type":"User","site_admin":false},"created_at":"2016-09-08T07:24:38Z","updated_at":"2016-09-08T07:24:38Z","body":"> But please create these pull request to git master branch first, we can consider a backport afterwards.\r\n\r\nYes. I will submit a PR as soon as I completely evaluate the normal operation of OBS on Ubuntu 16.04. "}}
{"actor":{"display_login":"leemgs"}}