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
On 16 August 2011 04:06, yyq at eisoo.com <yyq at 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 <esiotrot at gmail.com>
On Mon, Aug 15, 2011 at 9:06 PM, yyq at eisoo.com <yyq at 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.