Hi Julien, I had success from step 1 to step 7 below. Can you advice on step
8 please. I think it will be where we install openchange. Any advice greatly
appreciated


Subject: Installing openchange on centos  6.5

****************************************************************************
****************************

Step 1 - Install centos 6.5 minimal install with networking. 

****************************************************************************
****************************
Step 2 - Install Samba4 requirements 
 
yum install git autoconf automake gcc python-devel popt-devel libacl-devel 

(Results )

Dependencies Resolved

============================================================================
====
 Package                   Arch       Version                 Repository
Size
============================================================================
====
Installing:
 autoconf                  noarch     2.63-5.1.el6            base
781 k
 automake                  noarch     1.11.1-4.el6            base
550 k
 gcc                       x86_64     4.4.7-4.el6             base
10 M
 git                       x86_64     1.7.1-3.el6_4.1         base
4.6 M
 libacl-devel              x86_64     2.2.49-6.el6            base
86 k
 popt-devel                x86_64     1.13-7.el6              base
21 k
 python-devel              x86_64     2.6.6-52.el6            updates
171 k
Installing for dependencies:
 cloog-ppl                 x86_64     0.15.7-1.2.el6          base
93 k
 cpp                       x86_64     4.4.7-4.el6             base
3.7 M
 glibc-devel               x86_64     2.12-1.132.el6          base
978 k
 glibc-headers             x86_64     2.12-1.132.el6          base
608 k
 kernel-headers            x86_64     2.6.32-431.11.2.el6     updates
2.8 M
 keyutils                  x86_64     1.4-4.el6               base
39 k
 libattr-devel             x86_64     2.4.44-7.el6            base
40 k
 libevent                  x86_64     1.4.13-4.el6            base
66 k
 libgomp                   x86_64     4.4.7-4.el6             base
118 k
 libgssglue                x86_64     0.1-11.el6              base
23 k
 libtirpc                  x86_64     0.2.1-6.el6_5.1         updates
79 k
 mpfr                      x86_64     2.4.1-6.el6             base
157 k
 nfs-utils                 x86_64     1:1.2.3-39.el6          base
320 k
 nfs-utils-lib             x86_64     1.1.5-6.el6             base
67 k
 perl                      x86_64     4:5.10.1-136.el6        base
10 M
 perl-Error                noarch     1:0.17015-4.el6         base
29 k
 perl-Git                  noarch     1.7.1-3.el6_4.1         base
28 k
 perl-Module-Pluggable     x86_64     1:3.90-136.el6          base
40 k
 perl-Pod-Escapes          x86_64     1:1.04-136.el6          base
32 k
 perl-Pod-Simple           x86_64     1:3.13-136.el6          base
212 k
 perl-libs                 x86_64     4:5.10.1-136.el6        base
578 k
 perl-version              x86_64     3:0.77-136.el6          base
51 k
 ppl                       x86_64     0.10.2-11.el6           base
1.3 M
 rpcbind                   x86_64     0.2.0-11.el6            base
51 k
 rsync                     x86_64     3.0.6-9.el6_4.1         base
334 k
Updating for dependencies:
 python                    x86_64     2.6.6-52.el6            updates
74 k
 python-libs               x86_64     2.6.6-52.el6            updates
5.3 M

Transaction Summary
============================================================================
====
Install      32 Package(s)
Upgrade       2 Package(s)

Total download size: 44 M
Is this ok [y/N]: y
(Results)

Installed:
  autoconf.noarch 0:2.63-5.1.el6      automake.noarch 0:1.11.1-4.el6
gcc.x86_64 0:4.4.7-4.el6            git.x86_64 0:1.7.1-3.el6_4.1
  libacl-devel.x86_64 0:2.2.49-6.el6  popt-devel.x86_64 0:1.13-7.el6
python-devel.x86_64 0:2.6.6-52.el6

Dependency Installed:
  cloog-ppl.x86_64 0:0.15.7-1.2.el6        cpp.x86_64 0:4.4.7-4.el6
glibc-devel.x86_64 0:2.12-1.132.el6
  glibc-headers.x86_64 0:2.12-1.132.el6    kernel-headers.x86_64
0:2.6.32-431.11.2.el6   keyutils.x86_64 0:1.4-4.el6
  libattr-devel.x86_64 0:2.4.44-7.el6      libevent.x86_64 0:1.4.13-4.el6
libgomp.x86_64 0:4.4.7-4.el6
  libgssglue.x86_64 0:0.1-11.el6           libtirpc.x86_64 0:0.2.1-6.el6_5.1
mpfr.x86_64 0:2.4.1-6.el6
  nfs-utils.x86_64 1:1.2.3-39.el6          nfs-utils-lib.x86_64
0:1.1.5-6.el6            perl.x86_64 4:5.10.1-136.el6
  perl-Error.noarch 1:0.17015-4.el6        perl-Git.noarch 0:1.7.1-3.el6_4.1
perl-Module-Pluggable.x86_64 1:3.90-136.el6
  perl-Pod-Escapes.x86_64 1:1.04-136.el6   perl-Pod-Simple.x86_64
1:3.13-136.el6         perl-libs.x86_64 4:5.10.1-136.el6
  perl-version.x86_64 3:0.77-136.el6       ppl.x86_64 0:0.10.2-11.el6
rpcbind.x86_64 0:0.2.0-11.el6
  rsync.x86_64 0:3.0.6-9.el6_4.1

Dependency Updated:
  python.x86_64 0:2.6.6-52.el6
python-libs.x86_64 0:2.6.6-52.el6

Complete!

Changing directory to temp
cd /tmp


****************************************************************************
*************************************

Step 3 -  Getting Source Code - OpenChange trunk repository is only
available through git. The repository can be found at:
git://git.openchange.org/openchange.git
 git clone https://github.com/openchange/openchange.git
(results)
Initialized empty Git repository in /tmp/openchange/.git/
remote: Reusing existing pack: 27982, done.
remote: Counting objects: 23, done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 28005 (delta 6), reused 1 (delta 0)
Receiving objects: 100% (28005/28005), 16.60 MiB | 226 KiB/s, done.
Resolving deltas: 100% (16955/16955), done.

****************************************************************************
************************************

Step 4 - Patch OpenChange samba4 build script
----------------------------------------------------------

When OpenChange build script defines pythondir, it computes the result of
sysconfig.get_python_lib() function and defines platform_specific as False.
However, it sounds like Samba4 python bindings are installed in a
patform_specific location. If prefix is /usr/local/samba, then bindings on
CentOS will be installed in /usr/local/samba/lib64/python2.6/site-packages
while the scripts expects them to be in
/usr/local/samba/lib/python2.6/site-packages. The following command will fix
samba4 compilation.

My openchange was downloaded to /tmp/openchange so I first did a cd
/tmp/openchange the command.

sed s/get_python_lib\(0,0/get_python_lib\(1,0/g -i script/installsamba4.sh

****************************************************************************
**********************************

Step 5 - Install Samba

make samba ----- wget was not found so I did - (yum install wget)

tried (make samba) again.

(Results)

The compiling of samba took some time but here is the last sniped of the
results.

* installing bin/default/examples/VFS/libvfs-skel-transparent.inst.so as
/usr/local/samba/lib/vfs/skel_transparent.so
* installing bin/default/examples/VFS/libvfs-shadow-copy-test.inst.so as
/usr/local/samba/lib/vfs/shadow_copy_test.so
* installing bin/default/file_server/libservice-s3fs.inst.so as
/usr/local/samba/lib/service/s3fs.so
Waf: Leaving directory `/tmp/openchange/samba4/bin'
'install' finished successfully (1m54.869s)
gmake[1]: Leaving directory `/tmp/openchange/samba4'
/tmp/openchange

****************************************************************************
*********************************************

Step 6 - Update dynamic linker

Update ld with non-standard path where we installed samba:
echo '/usr/local/samba/lib' > /etc/ld.so.conf.d/samba4.conf echo
'/usr/local/samba/lib64' >> /etc/ld.so.conf.d/samba4.conf ldconfig

****************************************************************************
**********************************************

Step 7 - Install OpenChange requirements

yum install flex bison zlib-devel file-devel libical-devel

(results)

Transaction Summary
============================================================================
=====================================
Install       6 Package(s)

Total download size: 1.2 M
Installed size: 3.8 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): bison-2.4.1-5.el6.x86_64.rpm
| 637 kB     00:03
(2/6): file-devel-5.04-15.el6.x86_64.rpm
|  25 kB     00:00
(3/6): flex-2.5.35-8.el6.x86_64.rpm
| 286 kB     00:01
(4/6): libical-0.43-6.el6.x86_64.rpm
| 178 kB     00:00
(5/6): libical-devel-0.43-6.el6.x86_64.rpm
|  63 kB     00:00
(6/6): zlib-devel-1.2.3-29.el6.x86_64.rpm
|  44 kB     00:00
----------------------------------------------------------------------------
-----------------------------------------------------------
Total
162 kB/s | 1.2 MB     00:07
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : libical-0.43-6.el6.x86_64
1/6
  Installing : libical-devel-0.43-6.el6.x86_64
2/6
  Installing : zlib-devel-1.2.3-29.el6.x86_64
3/6
  Installing : file-devel-5.04-15.el6.x86_64
4/6
  Installing : flex-2.5.35-8.el6.x86_64
5/6
  Installing : bison-2.4.1-5.el6.x86_64
6/6
  Verifying  : libical-devel-0.43-6.el6.x86_64
1/6
  Verifying  : bison-2.4.1-5.el6.x86_64
2/6
  Verifying  : libical-0.43-6.el6.x86_64
3/6
  Verifying  : flex-2.5.35-8.el6.x86_64
4/6
  Verifying  : file-devel-5.04-15.el6.x86_64
5/6
  Verifying  : zlib-devel-1.2.3-29.el6.x86_64
6/6

Installed:
  bison.x86_64 0:2.4.1-5.el6         file-devel.x86_64 0:5.04-15.el6
flex.x86_64 0:2.5.35-8.el6   libical-devel.x86_64 0:0.43-6.el6
  zlib-devel.x86_64 0:1.2.3-29.el6

Dependency Installed:
  libical.x86_64 0:0.43-6.el6

Complete!

****************************************************************************
******************************************************

Step 8 - ? this is where I need to start installing openchange...

****************************************************************************
*******************************************************







-----Original Message-----
From: devel [mailto:devel-boun...@lists.openchange.org] On Behalf Of Julien
Kerihuel
Sent: 30 April 2014 03:46 PM
To: devel@lists.openchange.org
Subject: Re: [openchange][devel] HowTo build OpenChange/Samba4 on CentOS 6.5

I just say you should go through the entire guide/tutorial first, then ask
questions if something is not working as documented.

Cheers,
Julien.

On 30/04/14 14:29, Raymond Potgieter wrote:
> Sorry Julien but I am a bit lost here. really not understanding where 
> to begin now ... sigh... are you saying that I must not try and 
> install on centos 6.5 ?
>
>
>
> Ray
>
>
>
>
>
>
>
> -----Original Message-----
> From: devel [mailto:devel-boun...@lists.openchange.org] On Behalf Of 
> Julien Kerihuel
> Sent: 30 April 2014 01:56 PM
> To: devel@lists.openchange.org
> Subject: Re: [openchange][devel] HowTo build OpenChange/Samba4 on 
> CentOS 6.5
>
>
> On 30/04/14 13:28, Raymond Potgieter wrote:
>> Hi Julien, thanks for this. On step no 3.2 below I presume samba must 
>> be installed already?
> Hi Raymond,
>
> No. Installing Samba is step 3.3
>
> Using currently packaged Samba is not going to work because it lacks 
> the availability of samba libraries required by OpenChange.
>
> Cheers,
> Julien.
>
>>
>>
>>
>>
>> -----Original Message-----
>> From: devel [mailto:devel-boun...@lists.openchange.org] On Behalf Of 
>> Julien Kerihuel
>> Sent: 23 March 2014 01:08 AM
>> To: devel@lists.openchange.org
>> Subject: [openchange][devel] HowTo build OpenChange/Samba4 on CentOS
>> 6.5
>>
>> Good evening all,
>>
>> A while ago, I promised some instructions on building OpenChange on
> CentOS.
>> 1. Context and scope
>> =============
>>
>> - Two approaches have been tried. Firstly, install openchange on top 
>> of CentOS samba4 packages and secondly install openchange/samba4 from 
>> scratch in a minimal environment.
>>
>> - The first approach (install openchange on top of samba4 packaged 
>> for
>> CentOS) has been a failure. It was caused by missing libraries in the 
>> devel RPM packages preventing OpenChange server from compiling properly.
>> The best solution shall probably to inspect the RPM spec files and 
>> include missing libraries but I did not have time for this.
>>
>> - The second approach (install samba4/openchange couple from scratch) 
>> has been a success and the following section only focuses on 
>> different instruction/requirements needed to get it working.
>>
>> - This HowTo only focuses on samba4/openchange deployment. If you 
>> have been building SOGo on CentOS and want to contribute to 
>> openchange documentation, send your pull requests to 
>> openchange/website.git repository on GitHub. Any help you can provide 
>> in making CentOS users life easier with OpenChange will be welcomed!
>>
>>
>> 2. Environment
>> ==========
>>
>> For this test, I have been deploying CentOS 6.5 on a x86_64 architecture.
>> The distribution was set as a minimal server.
>>
>>
>> 3. Instructions
>> =========
>>
>> 3.1 Install Samba4 requirements
>> --------------------------------------------
>>
>> yum install git autoconf automake gcc python-devel popt-devel 
>> libacl-devel
>>
>> 3.2 Patch OpenChange samba4 build script
>> ----------------------------------------------------------
>>
>> When OpenChange build script defines pythondir, it computes the 
>> result of
>> sysconfig.get_python_lib() function and defines platform_specific as
> False.
>> However, it sounds like Samba4 python bindings are installed in a 
>> patform_specific location. If prefix is /usr/local/samba, then 
>> bindings on CentOS will be installed in 
>> /usr/local/samba/lib64/python2.6/site-packages
>> while the scripts expects them to be in 
>> /usr/local/samba/lib/python2.6/site-packages. The following command 
>> will fix
>> samba4 compilation.
>>
>> sed s/get_python_lib\(0,0/get_python_lib\(1,0/g -i 
>> script/installsamba4.sh
>>
>>
>> 3.3 Install Samba
>> -----------------------
>>
>> make samba
>>
>>
>> 3.4 Update dynamic linker
>> -----------------------------------
>>
>> Update ld with non-standard path where we installed samba:
>>
>> echo '/usr/local/samba/lib' > /etc/ld.so.conf.d/samba4.conf echo 
>> '/usr/local/samba/lib64' >> /etc/ld.so.conf.d/samba4.conf ldconfig
>>
>> 3.5 Install OpenChange requirements
>> ---------------------------------------------------
>>
>> yum install flex bison zlib-devel file-devel libical-devel
>>
>>
>> Any other instructions from the cookbook should apply here - 
>> OpenChange compilation, server configuration etc.
>>
>> Br,
>> Julien.
>>
>> --
>> Julien Kerihuel
>> j.kerih...@openchange.org
>> OpenChange Project Founder
>>
>> Twitter: http://twitter.com/jkerihuel
>>
>> GPG Fingerprint: 0B55 783D A781 6329 108A  B609 7EF6 FE11 A35F 1F79
>>
>>
>>
>> _______________________________________________
>> devel mailing list
>> devel@lists.openchange.org
>> http://mailman.openchange.org/listinfo/devel
> --
> Julien Kerihuel
> j.kerih...@openchange.org
> OpenChange Project Founder
>
> Twitter: http://twitter.com/jkerihuel
>
> GPG Fingerprint: 0B55 783D A781 6329 108A  B609 7EF6 FE11 A35F 1F79
>
>
>
> _______________________________________________
> devel mailing list
> devel@lists.openchange.org
> http://mailman.openchange.org/listinfo/devel

--
Julien Kerihuel
j.kerih...@openchange.org
OpenChange Project Founder

Twitter: http://twitter.com/jkerihuel

GPG Fingerprint: 0B55 783D A781 6329 108A  B609 7EF6 FE11 A35F 1F79



_______________________________________________
devel mailing list
devel@lists.openchange.org
http://mailman.openchange.org/listinfo/devel

Reply via email to