stujol
Posts: 25
Joined: Sat Mar 08, 2014 10:56 pm

lpconfig

Mon Mar 24, 2014 7:00 pm

I'm installing a script and one of the warnings is:

***************************************************************************
If you are installing Swift system-wide, you may need to add the following
line to /etc/ld.so.conf and run ldconfig as root:

/opt/swift/lib

(Otherwise, you will need to add it to the LD_LIBRARY_PATH environment
variable in order to run programs linked against the Swift libraries.)
***************************************************************************
Can someone please give me step by step instructions on how to do this please.

stujol
Posts: 25
Joined: Sat Mar 08, 2014 10:56 pm

Re: lpconfig

Mon Mar 24, 2014 7:14 pm

error im getting is

Testing the installed swift binary...
/opt/swift/bin/swift -o /dev/null 'hello world'
install.sh: 267: install.sh: /opt/swift/bin/swift: not found

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: lpconfig

Mon Mar 24, 2014 7:17 pm

It's NOT ipconfig!

Which part of the instructions can you not do?

Do you know how to edit a text file? If not, choose a text file editor ( leafpad, nano, vi... ) and learn how to do basic changes with it.

Then make the specified addition to the named file.
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

stujol
Posts: 25
Joined: Sat Mar 08, 2014 10:56 pm

Re: lpconfig

Mon Mar 24, 2014 7:30 pm

I've edited ld.so.conf, so now looks like

include /etc/ld.so.conf.d/*.conf
/opt/swift/lib

not sure on the format of lpconfig within the LXTerminal window to allow it to update

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: lpconfig

Mon Mar 24, 2014 9:17 pm

It isn't 'lpconfig' either!

For most commands, entering

Code: Select all

man <your command name>
will explain the options and how to use the command.

Now you have posted your error message, I don't think any of this helps...

Code: Select all

Testing the installed swift binary...
/opt/swift/bin/swift -o /dev/null 'hello world'
install.sh: 267: install.sh: /opt/swift/bin/swift: not found
That looks as though it is trying to run a file with an explicit name of /opt/swift/bin/swift, but no such file exists on your system.

Are you sure that the installation instructions you are following are relevant for the (unidentified) Operating System you are using on your RPi?
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

wimble
Posts: 34
Joined: Tue Feb 05, 2013 9:52 am

Re: lpconfig

Mon Mar 24, 2014 10:57 pm

stujol wrote:not sure on the format of lpconfig within the LXTerminal window to allow it to update
I'll second everything DeeJay has said. However, the answer to your original question on how to run ldconfig is simply:

Code: Select all

sudo ldconfig
That's all you need: no parameters, nothing else. By default, ldconfig reads /etc/ld.so.conf which you've already changed. So there's nothing else to do. However, that won't fix the error message you're getting: as DeeJay says, swift isn't where you think it is.

stujol
Posts: 25
Joined: Sat Mar 08, 2014 10:56 pm

Re: lpconfig

Tue Mar 25, 2014 5:44 pm

if I type in man swift, I get all the options listed.

using the file viewer, I can navigate to /opt/swift/bin/ and i have 4 filrs within this folder

cepstral-licsrv - shell script
cepstral-licsrv.bin - unknown
swift - shell script
swift.bin - unknown

/opt/swift/bin has a owner and group of 'root; with read and write to owner, read only to group and others.

the contents of /opt/swift/bin/swift is (only opens in leafpad, not nano)
#!/bin/sh
set -e
SWIFT_HOME="/opt/swift"
LD_LIBRARY_PATH="/opt/swift/lib"
SWIFT_BIN="opt/swift/bin"
export SWIFT_HOME
export LD_LIBRARY_PATH
exec "$SWIFT_BIN/swift.bin" ${1+"[email protected]"}

The company who made the files (Cepstral) are also struggling with this error message.

im using:
[email protected] ~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
NAME="Raspbian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=raspbian
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

sing file viewer, if I right click on the swift file located in /opt/swift/bin/ and click open, then click the execute button, I get an error saying 'failed to execute child process "opt/swift/bin/swift" (no such file or directory)

Don't know if any of the above will be of any help?

stujol
Posts: 25
Joined: Sat Mar 08, 2014 10:56 pm

Re: lpconfig

Tue Mar 25, 2014 5:57 pm

[email protected] ~$ man swift - returns the help file in what seems to be in edit mode
[email protected] ~$ swift --voices - returns bash: /user/local/bin/swift: /bin/sh^M: bad interpreter: no such file or directory
[email protected] ~$ swift --help - returns bash: /user/local/bin/swift: /bin/sh^M: bad interpreter: no such file or directory

stujol
Posts: 25
Joined: Sat Mar 08, 2014 10:56 pm

Re: lpconfig

Tue Mar 25, 2014 6:01 pm

found a copy of swift in /usr/local/bin but it has what I would call a shortcut icon on the file, black arrow top left corner. if I right click, then click the execute button, I get an error saying 'failed to execute child process "usr/local/bin/swift" (no such file or directory)

stujol
Posts: 25
Joined: Sat Mar 08, 2014 10:56 pm

Re: lpconfig

Tue Mar 25, 2014 6:03 pm

unable to find a /local/ directory

d_older
Posts: 118
Joined: Mon Jun 25, 2012 5:04 pm
Location: East Yorkshire, UK

Re: lpconfig

Tue Mar 25, 2014 8:19 pm

Hi Stujol


A couple of things I've noticed.

1) Some scripts seem to have DOS line endings (^M), which may be the cause of the "bad interpreter" messages, sudo apt-get install dos2unix and then run that against all scripts with ^M in them. ( may need to be root /sudo)
On my system ls -al /bin/sh gives /bin/sh -> dash

2: in /opt/switft/bin/swift, the line
SWIFT_BIN="opt/swift/bin"
seems to be missing the / in front of opt

again you may need root/sudo to correct this.

Hope this helps,
Dave.

Return to “Beginners”