dev.ivan

Registered
Jun 26, 2019
2
0
1
SA
cPanel Access Level
Root Administrator
I have manage to install the Varnish 6.0.5.
Code:
varnishd -V
varnishd (varnish-6.0.5 revision 204a927f4a4283529fc89f5182fe8cc3f2d0f617)
But when I starting it, I get the following error:

Code:
service varnish start
Redirecting to /bin/systemctl start varnish.service
Job for varnish.service failed because the control process exited with error code. See "systemctl status varnish.service" and "journalctl -xe" for details.
Code:
systemctl status varnish.service
● varnish.service - Varnish Cache, a high-performance HTTP accelerator
   Loaded: loaded (/usr/lib/systemd/system/varnish.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2019-10-25 20:38:14 BST; 23s ago
  Process: 23190 ExecStart=/usr/sbin/varnishd -a :6081 -f /etc/varnish/default.vcl -s malloc,256m (code=exited, status=255)

~ varnishd[23190]: Error:
~ varnishd[23190]: Message from C-compiler:
~ varnishd[23190]: collect2: fatal error: cannot find 'ld'
~ varnishd[23190]: compilation terminated.
~ varnishd[23190]: Running C-compiler failed, exited with 1
~ varnishd[23190]: VCL compilation failed
~ systemd[1]: varnish.service: control process exited, code=exited status=255
~ systemd[1]: Failed to start Varnish Cache, a high-performance HTTP accelerator.
~ systemd[1]: Unit varnish.service entered failed state.
~ systemd[1]: varnish.service failed.
Code:
whereis ld
ld: /usr/bin/ld.bfd /usr/bin/ld.gold /usr/bin/ld /opt/rh/devtoolset-8/root/usr/bin/ld.bfd /opt/rh/devtoolset-8/root/usr/bin/ld.gold /opt/rh/devtoolset-8/root/usr/bin/ld /usr/share/man/man1/ld.1.gz
ld
ld: no input files
I have found a guy who have a similar issue in 2016 on github . And he saying that
it was a permission issues with CentOS 7.2 and WHM
but he didn't remember how he fixed this, and I don't know where to start.

Can someone point me what I should check to fix this compiller issue. I am currently using CentOS 7 and WHM 84.
 

dev.ivan

Registered
Jun 26, 2019
2
0
1
SA
cPanel Access Level
Root Administrator
ok, it's solved
in WHM 84, I didn't have access to the
Compiler Access
section by default, but I have found the path to it:
Code:
{CPANEL_URL}/scripts2/tweakcompilers
but then I have only option to
Disable Compilers
, and nothing changed after I press it.

So I changed the value of the form input using Chrome Devtools to -
Enable Compilers
and it's solved the previous issue