LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-11-2013, 01:18 AM   #1
project.linux.proj
Member
 
Registered: Dec 2012
Posts: 75

Rep: Reputation: Disabled
compiling samba


when i compile samba on Ubuntu 12.04.3 LTS. The samba version samba-samba-2.2.12 it doesn't create samba service i.e /etc/init.d/smb or /etc/init.d/samba service. I followed steps mentioned in below url.

http://lofidellity.wordpress.com/201...n-ubuntu-8-04/

I can install the latest version using apt-get install samba. but for some reason i need lower version.

2nd problem that i m getting when i try to install the samba 3.x . i get the error for not library file i.e ldap.h. when i try to install this library with below command i get an error. command and error are also mentioned below.

# apt-get install libldap2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libldap-2.4-2 libldap-2.4-2:i386
The following NEW packages will be installed:
libldap2-dev
The following packages will be upgraded:
libldap-2.4-2 libldap-2.4-2:i386
2 upgraded, 1 newly installed, 0 to remove and 23 not upgraded.
1 not fully installed or removed.
Need to get 0 B/863 kB of archives.
After this operation, 1,393 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 16065 package 'abcmagt':
missing maintainer
dpkg: error: parsing file '/var/lib/dpkg/status' near line 22821 package 'abagntux':
duplicate value for `Package' field
E: Sub-process /usr/bin/dpkg returned an error code (2)
 
Old 10-11-2013, 01:27 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,
Quote:
Originally Posted by project.linux.proj View Post
when i compile samba on Ubuntu 12.04.3 LTS. The samba version samba-samba-2.2.12 it doesn't create samba service i.e /etc/init.d/smb or /etc/init.d/samba service.
Do you have a question releated to this?

Quote:
I can install the latest version using apt-get install samba. but for some reason i need lower version.
Care to explain the reason?

Quote:
2nd problem that i m getting when i try to install the samba 3.x . i get the error for not library file i.e ldap.h. when i try to install this library with below command i get an error. command and error are also mentioned below.

# apt-get install libldap2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libldap-2.4-2 libldap-2.4-2:i386
The following NEW packages will be installed:
libldap2-dev
The following packages will be upgraded:
libldap-2.4-2 libldap-2.4-2:i386
2 upgraded, 1 newly installed, 0 to remove and 23 not upgraded.
1 not fully installed or removed.
Need to get 0 B/863 kB of archives.
After this operation, 1,393 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 16065 package 'abcmagt':
missing maintainer
dpkg: error: parsing file '/var/lib/dpkg/status' near line 22821 package 'abagntux':
duplicate value for `Package' field
E: Sub-process /usr/bin/dpkg returned an error code (2)
Either manually fix your /var/lib/dpkg/status (be sure to make a backup) or revert to your /var/lib/dpkg/status-old. Do you know what this "abagntux" is? It seems to be very badly packaged. If you don't need it I recommend uninstalling it.

Evo2.
 
Old 10-11-2013, 01:49 AM   #3
project.linux.proj
Member
 
Registered: Dec 2012
Posts: 75

Original Poster
Rep: Reputation: Disabled
I am a new bie in ubuntu. my motive is to install the lower version of samba pkgs successfully. Yes it is a problem that i am not getting /etc/init.d/smbd in a standared path.

You meant to say. abagntux is a package . I am not able to list the pkgs.

# dpkg --list | grep abcmagt
#

Plz guide me next step

Last edited by project.linux.proj; 10-11-2013 at 02:01 AM.
 
Old 10-11-2013, 02:00 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,
Quote:
Originally Posted by project.linux.proj View Post
I am not new bie in ubuntu.
Ok.

Quote:
my motive is to install the lower version of samba pkgs successfully.
Have you considered getting a corresponding source deb package and building from that?

Quote:
Yes it is a problem that i am not getting /etc/init.d/smbd in a standared path.
That is because upstream samba does not provide them. If you insist on installing from upstream source, you can write your own based on those in found in the Ubuntu packages.

Quote:
You meant to say. abagntux is a package . I am not able to list the pkgs.

# dpkg --list | grep abcmagt
#
Did you read the error messages? Here they are as you posted them.
Quote:
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 16065 package 'abcmagt':
missing maintainer
dpkg: error: parsing file '/var/lib/dpkg/status' near line 22821 package 'abagntux':
duplicate value for `Package' field
Two packages with problem entries.
Quote:
Plz guide me next step
Fix your status file as I suggested in my previous post.

Evo2.
 
Old 10-11-2013, 02:25 AM   #5
project.linux.proj
Member
 
Registered: Dec 2012
Posts: 75

Original Poster
Rep: Reputation: Disabled
Thanks Evo. As you guided me the steps. I took the backup and cleaned those lines for both packages and i installed pkg happily.

# dpkg --list | grep libldap2-dev
ii libldap2-dev 2.4.28-1.1ubuntu4.4 OpenLDAP development libraries


Now i want to install the samba version samba-2.2.12 . Can i go ahead. I want to use /etc/samba as a configuration directory . service smbd should be in /etc/init.d.
Can i use the below command for the same .


./configure --cache-file=./config.cache \
--with-fhs \
--enable-shared \
--enable-static \
--disable-pie \
--prefix=/usr \
--sysconfdir=/etc \
--libdir=/etc/samba \
--with-privatedir=/etc/samba \
--with-piddir=/var/run/samba \
--localstatedir=/var \
--with-rootsbindir=/sbin \
--with-pammodulesdir=/lib/security \
--with-pam \
--with-syslog \
--with-utmp \
--with-readline \
--with-pam_smbpass \
--with-libsmbclient \
--with-winbind \
--with-shared-modules=idmap_rid,idmap_ad \
--with-automount \
--with-ldap \
--with-ads \
--with-dnsupdate \
--with-cifsmount \
--with-acl-support \
--with-quotas
Next you’ll want to compile the package
 
Old 10-11-2013, 02:45 AM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,
Quote:
Originally Posted by project.linux.proj View Post
Now i want to install the samba version samba-2.2.12 . Can i go ahead. I want to use /etc/samba as a configuration directory .
That is likely the default, but you should read the documentation to be sure.
Quote:
service smbd should be in /etc/init.d.
As I wrote earlier, upstream samba is unlikely to provide this. You'll have to do it yourself.

Quote:
Can i use the below command for the same .


./configure --cache-file=./config.cache \
--with-fhs \
--enable-shared \
--enable-static \
--disable-pie \
--prefix=/usr \
--sysconfdir=/etc \
--libdir=/etc/samba \
--with-privatedir=/etc/samba \
--with-piddir=/var/run/samba \
--localstatedir=/var \
--with-rootsbindir=/sbin \
--with-pammodulesdir=/lib/security \
--with-pam \
--with-syslog \
--with-utmp \
--with-readline \
--with-pam_smbpass \
--with-libsmbclient \
--with-winbind \
--with-shared-modules=idmap_rid,idmap_ad \
--with-automount \
--with-ldap \
--with-ads \
--with-dnsupdate \
--with-cifsmount \
--with-acl-support \
--with-quotas
Next you’ll want to compile the package
Setting libdir to /etc/samba seems a little strange. Anyway, please read the documentation that comes with the source. Additionally, since you are compiling this by hand the prefix should probably be /usr/local/, although personally I'd be using stow. Actually, I wouldn't be installing an ancient unmaintained version of samba at all.

Evo2.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem compiling samba Rognon Slackware 2 01-15-2005 03:04 PM
Compiling a samba server sudheendra.ss Linux - Networking 3 12-17-2004 04:51 AM
Error when Compiling Samba markshrimpton Linux - Software 2 10-01-2004 03:52 PM
Compiling Samba in Fedora x86_64 dwmorton Linux - Newbie 2 05-04-2004 11:13 PM
Error compiling Samba BorgKing Linux - Networking 1 06-23-2002 02:31 PM


All times are GMT -5. The time now is 12:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration