cant install from install file centos 7

907 views
Skip to first unread message

QLion

unread,
May 8, 2017, 5:50:51 PM5/8/17
to ASTPP
Hi 


I'm trying to install ASTPP on a centos 7 server using the install script, and i keep getting the following error. any advice?

*** Warning: Linking the shared library libfreeswitch.la against the

*** static library libs/libvpx/libvpx.a is not portable!

/usr/bin/ld: libs/libvpx/libvpx.a(vpx_codec.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC

libs/libvpx/libvpx.a: error adding symbols: Bad value

collect2: error: ld returned 1 exit status

make[1]: *** [libfreeswitch.la] Error 1

make[1]: Leaving directory `/usr/local/src/freeswitch'

make: *** [all] Error 2

Luis Daniel Lucio Quiroz

unread,
May 8, 2017, 11:31:04 PM5/8/17
to as...@googlegroups.com

--
Luis Daniel Lucio Quiroz
CISSP, CISM, CISA
Linux, VoIP and much more fun
www.okay.com.mx

Need LCR? Check out LCR for FusionPBX with FreeSWITCH
Need Billing? Check out Billing for FusionPBX with FreeSWITCH

--
=====================================================================
Documentation : https://astppdoc.atlassian.net/
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+unsubscribe@googlegroups.com.
To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/2a42c557-86f3-46b7-8a02-f1bfb796ba25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

QLion

unread,
May 9, 2017, 6:13:11 AM5/9/17
to ASTPP
So I just run yum install FreeSWITCH, no need to compile from source?

To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.

QLion

unread,
May 9, 2017, 6:31:47 AM5/9/17
to ASTPP
also, Thanks for hosting the repo's !!!



On Tuesday, May 9, 2017 at 5:31:04 AM UTC+2, Luis Daniel Lucio Quiroz wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.

QLion

unread,
May 11, 2017, 7:00:47 AM5/11/17
to as...@googlegroups.com
HI 


I still can install freeswitch, with the rpm's it installs in the wrong dir, /etc/freeswitch, astpp install want it at  /usr/local/freeswitch 

[root@tuscany-tele freeswitch]# make all install cd-sounds-install cd-moh-install

cd libs/libvpx && CC="gcc" CXX="g++" CFLAGS="-g -O2" CXXFLAGS="-g -O2" LDFLAGS="" ./configure --enable-pic --disable-docs --disable-examples --disable-install-bins --disable-install-srcs --disable-unit-tests --extra-cflags="-fvisibility=hidden"

  enabling pic

  disabling docs

  disabling examples

  disabling install_bins

  disabling install_srcs

  disabling unit_tests

Configuring selected codecs

  enabling vp8_encoder

  enabling vp8_decoder

  enabling vp9_encoder

  enabling vp9_decoder

Configuring for target 'x86_64-linux-gcc'

  enabling x86_64

  enabling runtime_cpu_detect

  enabling mmx

  enabling sse

  enabling sse2

  enabling sse3

  enabling ssse3

  enabling sse4_1

  enabling avx

  enabling avx2

Neither yasm nor nasm have been found. See the prerequisites section in the README for more info.


Configuration failed. This could reflect a misconfiguration of your

toolchains, improper options selected, or another problem. If you

don't see any useful error messages above, the next step is to look

at the configure error log file (config.log) to determine what

configure was trying to do when it died.

make: *** [libs/libvpx/Makefile] Error 1



_________________________________________________________________________

sed: can't read /etc/sysconfig/selinux: No such file or directory

sed: can't read /etc/selinux/config: No such file or directory

./install.sh: line 489: setenforce: command not found

Created symlink from /etc/systemd/system/multi-user.target.wants/nginx.service to /usr/lib/systemd/system/nginx.service.

Created symlink from /etc/systemd/system/multi-user.target.wants/php-fpm.service to /usr/lib/systemd/system/php-fpm.service.

Job for freeswitch.service failed because the control process exited with error code. See "systemctl status freeswitch.service" and "journalctl -xe" for details.

Failed to stop firewalld.service: Unit firewalld.service not loaded.

Note: Forwarding request to 'systemctl enable mariadb.service'.

Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.

error reading information on service firewalld: No such file or directory

/bin/cp: target '/usr/local/freeswitch/conf/autoload_configs/' is not a directory

./install.sh: line 527: /var/spool/cron/astpp: No such file or directory

chmod: cannot access '/var/spool/cron/astpp': No such file or directory

./install.sh: line 529: crontab: command not found

error reading information on service nginx: No such file or directory

Note: Forwarding request to 'systemctl enable nginx.service'.

error reading information on service mysqld: No such file or directory

error reading information on service mysqld: No such file or directory

Job for freeswitch.service failed because the control process exited with error code. See "systemctl status freeswitch.service" and "journalctl -xe" for details.




________________________________________________________________________________

[root@tuscany~]# systemctl status freeswitch.service

* freeswitch.service - SYSV: Freeswitch centos init script config:

   Loaded: loaded (/etc/rc.d/init.d/freeswitch; bad; vendor preset: disabled)

   Active: failed (Result: exit-code) since Thu 2017-05-11 10:53:00 UTC; 20s ago

     Docs: man:systemd-sysv-generator(8)

  Process: 585 ExecStart=/etc/rc.d/init.d/freeswitch start (code=exited, status=127)


May 11 10:51:57 tuscany systemd[1]: Failed to start SYSV: Freeswitch centos init script config:.

May 11 10:51:57 tuscany systemd[1]: Unit freeswitch.service entered failed state.

May 11 10:51:57 tuscany systemd[1]: freeswitch.service failed.

May 11 10:53:00 tuscany systemd[1]: Starting SYSV: Freeswitch centos init script config:...

May 11 10:53:00 tuscany freeswitch[585]: /etc/rc.d/init.d/freeswitch: line 40: /usr/local/freeswitch/bin/freeswitch: No such file or directory

May 11 10:53:00 tuscany systemd[1]: freeswitch.service: control process exited, code=exited status=127

May 11 10:53:00 tuscany freeswitch[585]: [FAILED]

May 11 10:53:00 tuscany systemd[1]: Failed to start SYSV: Freeswitch centos init script config:.

May 11 10:53:00 tuscany systemd[1]: Unit freeswitch.service entered failed state.

May 11 10:53:00 tuscany systemd[1]: freeswitch.service failed.


any advice?

Can't install astpp anymore...

QLion

unread,
May 11, 2017, 8:06:18 AM5/11/17
to ASTPP

This only happens on ver 1.6.17, 1.6.16, 1.6.15 


I can confirm 1.6.14 and 1.6.13 works...



 git clone -b v1.6.14 https://freeswitch.org/stash/scm/fs/freeswitch.git

QLion

unread,
May 11, 2017, 8:16:23 AM5/11/17
to ASTPP
To do a successful install from the install file change the following on line 270 

from 


to

install.sh

Luis Daniel Lucio Quiroz

unread,
May 11, 2017, 9:58:20 PM5/11/17
to as...@googlegroups.com
no problem :)

--
Luis Daniel Lucio Quiroz
CISSP, CISM, CISA
Linux, VoIP and much more fun
www.okay.com.mx

Need LCR? Check out LCR for FusionPBX with FreeSWITCH
Need Billing? Check out Billing for FusionPBX with FreeSWITCH

To unsubscribe from this group and stop receiving emails from it, send an email to astpp+unsubscribe@googlegroups.com.

To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.

QLion

unread,
May 15, 2017, 3:58:53 AM5/15/17
to ASTPP
Reply all
Reply to author
Forward
0 new messages