• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1545
  • Last Modified:

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.
0
davidlu766
Asked:
davidlu766
  • 3
  • 2
1 Solution
 
Kamran ArshadCommented:
Hi,

Seems corrupt package. Have you tried to Install it from different location?
0
 
davidlu766Author Commented:
Is it possible that gcc is not installed? And I did tried a different location...
0
 
Kamran ArshadCommented:
What is the result of ?

#gcc -v
0
 
davidlu766Author Commented:
-bash: gcc: command not found


How do I install gcc? I think it's not installed.
0
 
Kamran ArshadCommented:
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now