LinuxQuestions.org
Latest LQ Deal: Linux Power User 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 01-22-2008, 05:48 PM   #1
klw1026
LQ Newbie
 
Registered: Jan 2008
Posts: 8

Rep: Reputation: 0
Question Need help installing Chrony for Kubuntu 7.10


** Ok, so first I went and downloaded
chrony-1.23.tar.gz

** Then I typed the command
tar -zxvf chrony-1.23.tar.gz

** Then went into the directory chrony-1.23/ and typed the command
./configure --prefix=/usr/local

** Then I typed the command

make
** and this is what was echoed back:
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c util.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c sched.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c regress.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c local.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c sys.c
./mkversion
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c main.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c ntp_io.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c ntp_core.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c ntp_sources.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c sources.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c sourcestats.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c reference.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c logging.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c conf.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c cmdmon.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c md5.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c keys.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c nameserv.c
nameserv.c: In function ‘DNS_Name2IPAddress’:
nameserv.c:49: warning: pointer targets in assignment differ in signedness
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c acquire.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c manual.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c addrfilt.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c cmdparse.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c mkdirpp.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c rtc.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c pktlength.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c clientlog.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c broadcast.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c sys_linux.c
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -c wrap_adjtimex.c
gcc -O2 -g -o chronyd util.o sched.o regress.o local.o sys.o main.o ntp_io.o ntp_core.o ntp_sources.o sources.o sourcestats.o reference.o logging.o conf.o cmdmon.o md5.o keys.o nameserv.o acquire.o manual.o addrfilt.o cmdparse.o mkdirpp.o rtc.o pktlength.o clientlog.o broadcast.o sys_linux.o wrap_adjtimex.o -lm
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -DFEAT_READLINE=1 -c client.c
client.c:44:31: error: readline/readline.h: No such file or directory
client.c:45:30: error: readline/history.h: No such file or directory
client.c: In function ‘read_line’:
client.c:117: warning: implicit declaration of function ‘readline’
client.c:117: warning: assignment makes pointer from integer without a cast
client.c:124: warning: implicit declaration of function ‘add_history’
make: *** [client.o] Error 1

** Then I typed

make
** again and this is what was echoed back:
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -DFEAT_READLINE=1 -c client.c
client.c:44:31: error: readline/readline.h: No such file or directory
client.c:45:30: error: readline/history.h: No such file or directory
client.c: In function ‘read_line’:
client.c:117: warning: implicit declaration of function ‘readline’
client.c:117: warning: assignment makes pointer from integer without a cast
client.c:124: warning: implicit declaration of function ‘add_history’
make: *** [client.o] Error 1

** Then I typed

sudo make install
** and this is what I got back:
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -DFEAT_READLINE=1 -c client.c
client.c:44:31: error: readline/readline.h: No such file or directory
client.c:45:30: error: readline/history.h: No such file or directory
client.c: In function ‘read_line’:
client.c:117: warning: implicit declaration of function ‘readline’
client.c:117: warning: assignment makes pointer from integer without a cast
client.c:124: warning: implicit declaration of function ‘add_history’
make: *** [client.o] Error 1

** I am pretty sure that something did not go right with the installation. Can anyone please help. Thanks
 
Old 01-23-2008, 01:32 PM   #2
arochester
Member
 
Registered: May 2006
Distribution: Debian
Posts: 601

Rep: Reputation: 96
Chrony is available to Kubuntu from the Universal repository. If you have an internet connection, and the repository enabled, just open Konsole (Terminal Program) and input:
Quote:
sudo apt-get install chrony
 
Old 01-23-2008, 01:50 PM   #3
klw1026
LQ Newbie
 
Registered: Jan 2008
Posts: 8

Original Poster
Rep: Reputation: 0
** Yes, I tried letting Adept go and install Chrony. However, ran into problems with some of the files that should have been installed (like the password to get chronyd to run etc.). Also when I looked into the documents that came after the sudo apt-get install chrony command it said that stuff would be generated after installed. Not sure what that means. But still I think that it should be able to install it from the source code (I think that is what the .gz file is called that I downloaded). Have no idea why the installation does not work though. Thanks for the suggestion and I will play around with that some more and please let me know if you come up with anything else. Thanks.
 
Old 01-23-2008, 03:26 PM   #4
arochester
Member
 
Registered: May 2006
Distribution: Debian
Posts: 601

Rep: Reputation: 96
I think that upon reboot chrony just runs as part of the system - it doesn't have a separate executable file.
 
Old 01-23-2008, 03:42 PM   #5
klw1026
LQ Newbie
 
Registered: Jan 2008
Posts: 8

Original Poster
Rep: Reputation: 0
** OK, I will try that and see what happens. But you are saying that there is no program that I can open up in the background? And then how do I know that it is actually working? Thanks.
 
Old 01-23-2008, 03:52 PM   #6
klw1026
LQ Newbie
 
Registered: Jan 2008
Posts: 8

Original Poster
Rep: Reputation: 0
** Ok, I wanted to start over fresh so I typed
sudo aptitude remove chrony

** And this is what happened
| klw1026 ~ > sudo aptitude remove chrony
[sudo] password for klw1026:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages will be REMOVED:
chrony
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 819kB will be freed.
Writing extended state information... Done
(Reading database ... 210440 files and directories currently installed.)
Removing chrony ...
invoke-rc.d: unknown initscript, /etc/init.d/chrony not found.
dpkg: error processing chrony (--remove):
subprocess pre-removal script returned error exit status 100
update-rc.d: /etc/init.d/chrony: file does not exist
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
chrony
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done

** So then I typed
sudo apt-get install chrony

** and this is what happened
| klw1026 ~ > sudo apt-get install chrony
Reading package lists... Done
Building dependency tree
Reading state information... Done
chrony is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up chrony (1.21z-5) ...
update-rc.d: /etc/init.d/chrony: file does not exist
dpkg: error processing chrony (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
chrony
E: Sub-process /usr/bin/dpkg returned an error code (1)

** This led me to believe that aptitude did not remvoe the program completely, so I again typed
sudo aptitude remove chrony

** and it echoed back
| klw1026 ~ > sudo aptitude remove chrony
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages will be REMOVED:
chrony
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 819kB will be freed.
Writing extended state information... Done
(Reading database ... 210440 files and directories currently installed.)
Removing chrony ...
invoke-rc.d: unknown initscript, /etc/init.d/chrony not found.
dpkg: error processing chrony (--remove):
subprocess pre-removal script returned error exit status 100
update-rc.d: /etc/init.d/chrony: file does not exist
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
chrony
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done

** Now, I think that I have half of a chrony program and that will mess up any new installation. To make matters worse I have no clue what to do next. HELP!!!
 
Old 01-23-2008, 05:51 PM   #7
klw1026
LQ Newbie
 
Registered: Jan 2008
Posts: 8

Original Poster
Rep: Reputation: 0
** So, I was looking closely at what it was saying in the shell after I ran the sudo aptitude removall command and noticed that it was looking for a file in the /etc/init.d/chrony directory. So I, from the shell, opened up kate (well sudo kate) and simply saved a blank document to that location. Then I ran the sudo aptitude command again and it appears to have deleted chrony. So now I really have no idea what is going on. Why would this allow for removal, it was just a blank document?
 
  


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
Installing kubuntu on ubuntu with kubuntu CD coolblue Ubuntu 6 06-30-2008 11:53 AM
Installing Kubuntu vertozia Ubuntu 2 09-23-2006 03:57 AM
help with installing kubuntu adamf4i Linux - General 6 08-07-2006 08:08 AM
Installing kubuntu on ubuntu with kubuntu CD coolblue Linux - Newbie 1 07-12-2005 02:22 PM
Enhanced RTC, Chrony, Realtime Linux solarblast Linux - Software 0 03-06-2005 10:47 AM


All times are GMT -5. The time now is 07:35 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