Latest git fails during install on arch linux
-
I have been toying with linux for some time but I would still call myself a novice user. I am currently trying arch linux to learn more. Due to my constant tinkering with computers I came across your project and had used it for a while on centos.
Since my transfer to arch I have been unable to install and configure FOG. The system is a fresh base install. The script appears to run successfully until it tries to back up the database where it fails.
Apache error_log gives:
Apache access_log gives:
I would be very appreciative of any assistance you can offer in order that this can be resolved and therefore my FOG system back running again.
Thank you in advance.
-
@ttjrm1 See here: http://stackoverflow.com/questions/20408943/fatal-error-call-to-undefined-function
You need the gettext PHP module. See how you can install and activate this in arch linux.
-
Thank you Sebastian. I was able to activate gettext for php by uncommenting the appropriate line in /etc/php/php.ini. This now allows me to view the web pages.
Unfortunately I post schema update the install appears to fail again with the following:
I have dhcpd installed through the install script but I am a bit stumped how to rectify this. dhcpd.conf exists in /etc/.
Thank you
-
@ttjrm1 this is the new function of the dhcp server. I’m guessing you are using FOG as the DHCP server?
-
@ttjrm1 Which shell are you using on arch?
echo $SHELL
Usually people have zsh on arch but zsh should be able to handle the+=
syntax. Or maybe I am sitting on my eyes and don’t really see where the error lies. -
@Sebastian-Roth I don’t think that’d matter as I’m forcing all scripts with #!/bin/bash
-
@Tom-Elliott Well if /bin/bash is just linking to e.g. /bin/dash (don’t laugh!! This is/was true in Ubuntu!)
-
Hi Tom, yes I am using FOG as the DHCP server
-
@Sebastian-Roth Oh I do understand, but in either case, it would be causing issues anyway.
That all said, the OP’s issue is related to the new function written by @Wayne-Workman . I haven’t adjusted the installer to add to the addresses properly yet but I will now.
-
@Sebastian-Roth echo $SHELL returns /bin/bash
-
Seams like Tom has found an issue. He knows the code heaps better than I do! But you can still see if /bin/bash is really a binary or just a link
file /bin/bash
andls -al /bin/bash
… -
@Sebastian-Roth the function can easily be re-written to not use
+=
-
Thank you all for assistance. I have downloaded the latest git (6068) but unfortunately I am unable to get passed the setting up the DHCP server:
The error_log does not state any issues. dhcp.conf does exist in /etc/
Thank you in advance
-
@ttjrm1 Can you please re-update and try again? I think I found the issue and hopefully we can get somewhere now.
-
@Tom-Elliott Just updated as requested. I also removed all dhcp files in etc. Unfortunately install fails at the same place. It would appear that the install script moves the dhcp.conf file instead of copying/backing up the old file before trying to make changes.
-
@ttjrm1 Thanks for the info. I see that was indeed what was happening and am now just copying the file, not moving it. Maybe now it will work?
-
@Tom-Elliott Your welcome. I see your script is trying to start dhcpd.service. On Arch linux the correct service would be dhcpd4.service, they have split IPv4 & v6 into 2 different service files.
-
@ttjrm1 Updated config to allow for dhcpd4. Thanks again.
-
@Tom-Elliott Thank you again Tom. The installer script successfully completes. All appears to be running, now to test.