Link to home
Start Free TrialLog in
Avatar of davidlu766
davidlu766

asked on

Trying to install app-swift on CentOS

Trying to install app-swift, following instruction from: http://nerdvittles.com/?p=202

I am trying to install app-swift using instruction from url above.

Here's the log:


[trixbox gcc-4.4.0]# cd /usr/src
[trixbox src]# wget http://pbxinaflash.net/source/app_swift/app_swift-1.4.2.tar.gz
--22:47:18--  http://pbxinaflash.net/source/app_swift/app_swift-1.4.2.tar.gz
Resolving pbxinaflash.net... 216.239.128.70
Connecting to pbxinaflash.net|216.239.128.70|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12497 (12K) [application/x-tar]
Saving to: `app_swift-1.4.2.tar.gz'

100%[=======================================>] 12,497      61.8K/s   in 0.2s

22:47:19 (61.8 KB/s) - `app_swift-1.4.2.tar.gz' saved [12497/12497]

[trixbox src]# tar -zxvf app_swift*
tar: app_swift-1.4.2: Cannot read: Is a directory
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now

gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: app_swift-1.4.2.tar.gz: Not found in archive
tar: app_swift-1.6.2: Not found in archive
tar: Error exit delayed from previous errors
[trixbox src]# cd app_swift-1.4.2
[trixbox app_swift-1.4.2]# make
gcc -I/opt/swift/include -g -Wall -D_REENTRANT -D_GNU_SOURCE -fPIC   -c -o app_swift.o app_swift.c
make: gcc: Command not found
make: *** [app_swift.o] Error 127
[trixbox app_swift-1.4.2]# make install
if ! [ -f /etc/asterisk/swift.conf ]; then \
                install -m 644 swift.conf.sample /etc/asterisk/swift.conf ; \
        fi
if [ -f app_swift.so ]; then \
                install -m 755 app_swift.so /usr/lib/asterisk/modules ; \
        fi
[trixbox app_swift-1.4.2]#


---------------------------------



Please help, I've been working on this the whole night...

Thanks.
Avatar of Kamran Arshad
Kamran Arshad
Flag of Pakistan image

Hi,

Seems corrupt package. Have you tried to Install it from different location?
Avatar of davidlu766
davidlu766

ASKER

Is it possible that gcc is not installed? And I did tried a different location...
What is the result of ?

#gcc -v
-bash: gcc: command not found


How do I install gcc? I think it's not installed.
ASKER CERTIFIED SOLUTION
Avatar of Kamran Arshad
Kamran Arshad
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial