LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need help installing Chrony for Kubuntu 7.10 (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-installing-chrony-for-kubuntu-7-10-a-615576/)

klw1026 01-22-2008 04:48 PM

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

arochester 01-23-2008 12:32 PM

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

klw1026 01-23-2008 12:50 PM

** 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.

arochester 01-23-2008 02:26 PM

I think that upon reboot chrony just runs as part of the system - it doesn't have a separate executable file.

klw1026 01-23-2008 02:42 PM

** 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.

klw1026 01-23-2008 02:52 PM

** 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!!!

klw1026 01-23-2008 04:51 PM

** 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?


All times are GMT -5. The time now is 09:23 PM.