Re: [Samba] Directly replace smb.

2011-08-16 Thread Chris Weiss
On Mon, Aug 15, 2011 at 9:06 PM, y...@eisoo.com  wrote:
> Hi,all,
>    I have a redhat linux of 2.6.24 kernel(x86_64), which smb is 3.0, I want
> to upgrade it, but the system doesn't have gcc development and no rpm, that
> means I can't upgrade the smb on this machine.So I compile the new samba on
> other machine and copy necessary files and replace them on my target machine
> and checked:

without seeing error messages, anything anyone says is pure
speculation.  My speculation is that you have library version
mismatches.

worst case, or maybe even the "right way", is that you'll need to
clone the system to a test system or a virtual machine, install gcc
and the devel libs for the versions installed of all samba
dependencies and then compile.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Directly replace smb.

2011-08-16 Thread Michael Wood
On 16 August 2011 04:06, y...@eisoo.com  wrote:
> Hi,all,
>    I have a redhat linux of 2.6.24 kernel(x86_64), which smb is 3.0, I want
> to upgrade it, but the system doesn't have gcc development and no rpm, that
> means I can't upgrade the smb on this machine.So I compile the new samba on
> other machine and copy necessary files and replace them on my target machine
> and checked:
>
> smbd -V
> nmbd -V
> winbind -V
>
> are all the right version, but I can't start the service: service smb start
> and etc. are all failed. what's wrong with my method?

In what way are they all failing?  What error messages do you get?

I don't know what you mean by "and no rpm".  Do you mean the rpm
command or database is missing/broken?  Or do you mean you have not
found a compatible RPM?

SerNet (www.sernet.de) has RPMs for various versions of Red Hat
Enterprise Linux.  See here:

http://enterprisesamba.com/index.php?id=54

> My smb configure as below:
>
>   SBINDIR: /usr/sbin
>   BINDIR: /usr/bin
>   SWATDIR: /etc/swat
>   CONFIGFILE: /etc/samba/smb.conf
>   LOGFILEBASE: /var/samba
>   LMHOSTSFILE: /etc/samba/lmhosts
>   LIBDIR: /usr/lib
>   MODULESDIR: /usr/lib
>   SHLIBEXT: so
>   LOCKDIR: /usr/var/locks
>   STATEDIR: /usr/var/locks
>   CACHEDIR: /usr/var/locks
>   PIDDIR: /usr/var/locks
>   SMB_PASSWD_FILE: /usr/private/smbpasswd
>   PRIVATE_DIR: /usr/private

-- 
Michael Wood 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Directly replace smb. [Scanned]

2011-08-15 Thread y...@eisoo.com
Hi, the problem seems to be solved by creating /usr/var and /var/samba, 
that need more tests.


Thanks for replying guys.

于 2011-8-16 11:12, y...@eisoo.com 写道:
Actually, the target machine run on a DOM(Disk On Module), and its 
capacity is limited, so unnecessary module are all stripped, so I 
can't use the yum and rpm and etc.



于 2011-8-16 10:41, Christopher M. Bailey 写道:

- Original Message -
From: y...@eisoo.com
Sent: Tue, 8/16/2011 12:06pm
To: samba@lists.samba.org
Subject: [Samba] Directly replace smb. [Scanned]

Hi,all,
  I have a redhat Linux of 2.6.24 kernel(x86_64), which smb is 
3.0, I

want to upgrade it, but the system doesn't have gcc development and no
rpm, that means I can't upgrade the smb on this machine.So I compile the
new samba on other machine and copy necessary files and replace them on
my target machine and checked:

smbd -V
nmbd -V
winbind -V

are all the right version, but I can't start the service: service smb
start and etc. are all failed. what's wrong with my method?

My smb configure as below:

 SBINDIR: /usr/sbin
 BINDIR: /usr/bin
 SWATDIR: /etc/swat
 CONFIGFILE: /etc/samba/smb.conf
 LOGFILEBASE: /var/samba
 LMHOSTSFILE: /etc/samba/lmhosts
 LIBDIR: /usr/lib
 MODULESDIR: /usr/lib
 SHLIBEXT: so
 LOCKDIR: /usr/var/locks
 STATEDIR: /usr/var/locks
 CACHEDIR: /usr/var/locks
 PIDDIR: /usr/var/locks
 SMB_PASSWD_FILE: /usr/private/smbpasswd
 PRIVATE_DIR: /usr/private



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

What was wrong with using yum to install gcc and the other software 
you require before compiling the tar ball directly on the system you 
want to install on?


Cheers,
Chris







--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Directly replace smb. [Scanned]

2011-08-15 Thread y...@eisoo.com
Actually, the target machine run on a DOM(Disk On Module), and its 
capacity is limited, so unnecessary module are all stripped, so I can't 
use the yum and rpm and etc.



于 2011-8-16 10:41, Christopher M. Bailey 写道:

- Original Message -
From: y...@eisoo.com
Sent: Tue, 8/16/2011 12:06pm
To: samba@lists.samba.org
Subject: [Samba] Directly replace smb. [Scanned]

Hi,all,
  I have a redhat Linux of 2.6.24 kernel(x86_64), which smb is 3.0, I
want to upgrade it, but the system doesn't have gcc development and no
rpm, that means I can't upgrade the smb on this machine.So I compile the
new samba on other machine and copy necessary files and replace them on
my target machine and checked:

smbd -V
nmbd -V
winbind -V

are all the right version, but I can't start the service: service smb
start and etc. are all failed. what's wrong with my method?

My smb configure as below:

 SBINDIR: /usr/sbin
 BINDIR: /usr/bin
 SWATDIR: /etc/swat
 CONFIGFILE: /etc/samba/smb.conf
 LOGFILEBASE: /var/samba
 LMHOSTSFILE: /etc/samba/lmhosts
 LIBDIR: /usr/lib
 MODULESDIR: /usr/lib
 SHLIBEXT: so
 LOCKDIR: /usr/var/locks
 STATEDIR: /usr/var/locks
 CACHEDIR: /usr/var/locks
 PIDDIR: /usr/var/locks
 SMB_PASSWD_FILE: /usr/private/smbpasswd
 PRIVATE_DIR: /usr/private



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

What was wrong with using yum to install gcc and the other software you require 
before compiling the tar ball directly on the system you want to install on?

Cheers,
Chris




--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Directly replace smb. [Scanned]

2011-08-15 Thread Christopher M. Bailey
- Original Message - 
From: y...@eisoo.com 
Sent: Tue, 8/16/2011 12:06pm 
To: samba@lists.samba.org 
Subject: [Samba] Directly replace smb. [Scanned] 
 
Hi,all, 
 I have a redhat Linux of 2.6.24 kernel(x86_64), which smb is 3.0, I  
want to upgrade it, but the system doesn't have gcc development and no  
rpm, that means I can't upgrade the smb on this machine.So I compile the  
new samba on other machine and copy necessary files and replace them on  
my target machine and checked: 
 
smbd -V 
nmbd -V 
winbind -V 
 
are all the right version, but I can't start the service: service smb  
start and etc. are all failed. what's wrong with my method? 
 
My smb configure as below: 
 
SBINDIR: /usr/sbin 
BINDIR: /usr/bin 
SWATDIR: /etc/swat 
CONFIGFILE: /etc/samba/smb.conf 
LOGFILEBASE: /var/samba 
LMHOSTSFILE: /etc/samba/lmhosts 
LIBDIR: /usr/lib 
MODULESDIR: /usr/lib 
SHLIBEXT: so 
LOCKDIR: /usr/var/locks 
STATEDIR: /usr/var/locks 
CACHEDIR: /usr/var/locks 
PIDDIR: /usr/var/locks 
SMB_PASSWD_FILE: /usr/private/smbpasswd 
PRIVATE_DIR: /usr/private 
 
 
 
--  
To unsubscribe from this list go to the following URL and read the 
instructions:  https://lists.samba.org/mailman/options/samba 
 
--  
This message has been scanned for viruses and 
dangerous content by MailScanner, and is 
believed to be clean. 
 
What was wrong with using yum to install gcc and the other software you require 
before compiling the tar ball directly on the system you want to install on? 
 
Cheers, 
Chris 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Directly replace smb.

2011-08-15 Thread y...@eisoo.com

Hi,all,
I have a redhat linux of 2.6.24 kernel(x86_64), which smb is 3.0, I 
want to upgrade it, but the system doesn't have gcc development and no 
rpm, that means I can't upgrade the smb on this machine.So I compile the 
new samba on other machine and copy necessary files and replace them on 
my target machine and checked:


smbd -V
nmbd -V
winbind -V

are all the right version, but I can't start the service: service smb 
start and etc. are all failed. what's wrong with my method?


My smb configure as below:

   SBINDIR: /usr/sbin
   BINDIR: /usr/bin
   SWATDIR: /etc/swat
   CONFIGFILE: /etc/samba/smb.conf
   LOGFILEBASE: /var/samba
   LMHOSTSFILE: /etc/samba/lmhosts
   LIBDIR: /usr/lib
   MODULESDIR: /usr/lib
   SHLIBEXT: so
   LOCKDIR: /usr/var/locks
   STATEDIR: /usr/var/locks
   CACHEDIR: /usr/var/locks
   PIDDIR: /usr/var/locks
   SMB_PASSWD_FILE: /usr/private/smbpasswd
   PRIVATE_DIR: /usr/private



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba