Make Install & Mac Os does not seem to like eachother

Infernalspawn
Posts: 3
Joined: Mon Apr 06, 2009 11:41 pm

Make Install & Mac Os does not seem to like eachother

Post by Infernalspawn »

Hi,

i've downloaded the bullet 2.74 sdk, and tried to install it

./configure
and
make

looked fine, but when i'll run
make install

it gives me a

Making install in src
test -z "/usr/local/lib" || .././install-sh -c -d "/usr/local/lib"
/bin/sh: .././install-sh: /bin/sh^M: bad interpreter: No such file or directory
make[2]: *** [install-libLTLIBRARIES] Error 126
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1

any idea by what this is caused ?

thx for your help

Infernalspawn
Infernalspawn
Posts: 3
Joined: Mon Apr 06, 2009 11:41 pm

Re: Make Install & Mac Os does not seem to like eachother

Post by Infernalspawn »

ok parts of the problem solved, it is actualy a MacOs problem

/bin/sh: .././install-sh: /bin/sh^M: bad interpreter: No such file or directory

is caused by wron line return endings in that text file.
here's how to fix it
1.) save the old file

Code: Select all

cp install-sh install-sh.save
replace the cariage returns and store to a new file

Code: Select all

cat install-sh | tr -d '\r' > install-sh.new
override the "old" with the new

Code: Select all

mv install-sh.new install-sh

i'm now getting an other error
/bin/sh: .././install-sh: Permission denied
where i'm wondering because im excecuting it as root, .. any idea ?

thx!
Infernalspawn
Infernalspawn
Posts: 3
Joined: Mon Apr 06, 2009 11:41 pm

Re: Make Install & Mac Os does not seem to like eachother

Post by Infernalspawn »

okay, solved the problem

do a

Code: Select all

 chmod 755 install-sh 
to the install-sh, and that should do it.

i hope i could help someone with this in the future ;)

cheers
Infernal