can't seem to install misc package

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

can't seem to install misc package

Vincent
This post was updated on .
  Hi Help

I do the following command with unexpected results... any ideas what i
need to do to make it work?

I'm rather new to mac's and programming but had a look for the
config.log but it didn't show anything I could understand.

Any help would be much appreciated

Vincent

octave-3.2.3:12> pkg install miscellaneous-1.0.9.tar.gz
configure: error: in
`/var/folders/Yw/YwAbBzhZFJihlIWSLj+uGE+++TQ/-Tmp-/oct-5Aenq9/miscellaneous-1.0.9/src':
configure: error: C compiler cannot create executables
See `config.log' for more details.
the configure script returned the following error: checking for gcc... gcc
checking for C compiler default output file name...
error: called from `pkg>configure_make' in file
/Applications/Octave.app/Contents/Resources/share/octave/3.2.3/m/pkg/pkg.m
near line 1240, column 2
error: called from:
error:  
/Applications/Octave.app/Contents/Resources/share/octave/3.2.3/m/pkg/pkg.m
at line 714, column 5
error:  
/Applications/Octave.app/Contents/Resources/share/octave/3.2.3/m/pkg/pkg.m
at line 287, column 7
Reply | Threaded
Open this post in threaded view
|

Re: can't seem to install misc package

Jordi Gutiérrez Hermoso
On 11 October 2010 20:54, Vincent Dirks <[hidden email]> wrote:
> I do the following command with unexpected results... any ideas what i
> need to do to make it work?
[snip]
> octave-3.2.3:12> pkg install miscellaneous-1.0.9.tar.gz
> configure: error: in
> `/var/folders/Yw/YwAbBzhZFJihlIWSLj+uGE+++TQ/-Tmp-/oct-5Aenq9/miscellaneous-1.0.9/src':
> configure: error: C compiler cannot create executables

You probably need to install a compiler on your system. For Apple
products, I understand it's available in some installation media that
came with your hardware.

I believe it's also possible to get precompiled binaries, but an Apple
user would know better than I do.

- Jordi G. H.
_______________________________________________
Help-octave mailing list
[hidden email]
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: can't seem to install misc package

John B. Thoo

On Oct 12, 2010, at 6:33 AM, Jordi Gutiérrez Hermoso wrote:

> On 11 October 2010 20:54, Vincent Dirks <[hidden email]> wrote:
>> I do the following command with unexpected results... any ideas what i
>> need to do to make it work?
> [snip]
>> octave-3.2.3:12> pkg install miscellaneous-1.0.9.tar.gz
>> configure: error: in
>> `/var/folders/Yw/YwAbBzhZFJihlIWSLj+uGE+++TQ/-Tmp-/oct-5Aenq9/miscellaneous-1.0.9/src':
>> configure: error: C compiler cannot create executables
>
> You probably need to install a compiler on your system. For Apple
> products, I understand it's available in some installation media that
> came with your hardware.
>
> I believe it's also possible to get precompiled binaries, but an Apple
> user would know better than I do.
>
> - Jordi G. H.

You may need to install XCode from the installation disc or from Apple's developer web site.

<https://developer.apple.com/technologies/xcode.html>

---John.

-----------------------------------------------------------------------
Drive carefully.  Watch for Bikes!
<http://homepage.mac.com/jbthoo/watchforbikes.html>


_______________________________________________
Help-octave mailing list
[hidden email]
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: can't seem to install misc package

Vincent
Thanks guys.
For completeness

I downloaded xcode from
http://developer.apple.com/ios/download.action?path=/ios/ios_sdk_4.1__final/xcode_3.2.4_and_ios_sdk_4.1.dmg 
and installed it (including the unix tools)

Then ran
pkg install miscellaneous-1.0.9.tar.gz
Which then produced warnings and errors, first line shown below
ld: warning: in /Applications/Octave.app/Contents/Resources/bin/octave-3.2.3, file was built for i386 which is not the architecture being linked (x86_64)

Then found article
http://octave.1599824.n4.nabble.com/Install-Image-package-on-Mac-OS-X-td2551165.html
which said to add some lines in  "/Applications/Octave.app/Contents/Resources/bin/mkoctfile"  a few replies down. One small change was that in my case I had to modify the section below rather than add the lines

Original text
# Invoke mkoctfile, preserving spaces in all the input arguments.
OCTAVE_HOME="${OCTAVE_HOME}" PATH="${PATH}" \
  DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}" \
  CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" \
  CXXFLAGS="${CXXFLAGS}" FFLAGS="${FFLAGS}" LDFLAGS="${LDFLAGS}" \
  DL_LDFLAGS="${DL_LDFLAGS}" SED="$SED" MAGICK_HOME="${ROOT}" \
"${ROOT}/bin/mkoctfile-3.2.3" "$@"

Was modified to
# Invoke mkoctfile, preserving spaces in all the input arguments.
OCTAVE_HOME="${OCTAVE_HOME}" PATH="${PATH}" \
  DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH}" \
  CFLAGS="-m32 ${CFLAGS}" CPPFLAGS="-m32 ${CPPFLAGS}" \
  CXXFLAGS="-m32 ${CXXFLAGS}" FFLAGS="-m32 ${FFLAGS}" LDFLAGS="-m32 ${LDFLAGS}" \
  DL_LDFLAGS="${DL_LDFLAGS}" SED="$SED" MAGICK_HOME="${ROOT}" \
"${ROOT}/bin/mkoctfile-3.2.3" "$@"

That is, just adding the '-m32' options to most of the flags.