1. ShesCake's Avatar
    So, I followed the "iPHUC" wiki and everything went successfully until I reached the point where I use the "./iPHUC" command.

    No such file or directory.

    I've searched the forums for a few days looking for bits of info to put together and solve this problem but I can't seem to work past it. There is no file at that path with that name and in the wiki snapshot there isn't either.

    I used iActivator 1.1 and jailbreak went flawlessly up until the point where I actually utilize iPhuc. I'm fairly certain there is something obvious I'm neglecting to take into consideration so please bare with me. If more info is needed about the logistics of my problem in order to assess it, let me know.

    Thanks.
    2007-08-09 07:59 PM
  2. jedibugs's Avatar
    Open up your finder and make sure you've installed iPhuc into the proper directory...

    It should be under YourHomeDir/phonedmg/iphuc/iPhone/trunk/iPHUC (where "YourHomeDir" is whatever the name of your home directory is -- for now let's say it's "ShesCake").

    make sure your Command line prompt reads: YourComputersName:~/phonedmg/iphuc/iPhone/trunk/iPHUC ShesCake$

    If you're at that prompt and your folders are set up properly, you should be good when you run ./iPHUC
    2007-08-09 08:26 PM
  3. ShesCake's Avatar
    cd ~phonedmg/iphuc/iPhone/trunk/iPHUC

    That's where I was. I've checked the contents of the path folder and there isn't anything with the title "iPHUC." I downloaded the binary that was posted recently and threw it around, trying it in different areas but still nothing.
    2007-08-09 08:32 PM
  4. jedibugs's Avatar
    I haven't used the binary, so I'm not sure what kind of download path it uses. To be sure you've got everything done properly, you might want to just do it manually with this guide: http://www.modmyi.com/wiki/index.php...g_iPHUC_iPhone

    It's not as complicated as it looks, as long as you cut and paste the commands into Terminal.
    2007-08-09 09:05 PM
  5. ShesCake's Avatar
    I ran through all the steps again and even got the MobileDevice.h again. When I ran the "./autogen.sh && ./configure --with-readline=/opt/local && make" though I got this:

    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... yes
    checking for g++... g++
    checking for C++ compiler default output file name... a.out
    checking whether the C++ compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking for style of include used by make... GNU
    checking dependency style of g++... gcc3
    checking for a BSD-compatible install... /usr/bin/install -c
    checking how to run the C++ preprocessor... g++ -E
    checking for egrep... grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking CoreFoundation.h usability... no
    checking CoreFoundation.h presence... no
    checking for CoreFoundation.h... no
    checking CoreFoundation/CoreFoundation.h usability... yes
    checking CoreFoundation/CoreFoundation.h presence... yes
    checking for CoreFoundation/CoreFoundation.h... yes
    checking for an ANSI C-conforming const... yes
    checking for stdlib.h... (cached) yes
    checking for GNU libc compatible malloc... yes
    checking for initscr in -lncurses... no
    checking for initscr in -lcurses... yes
    checking if libreadline needs libncurses... yes
    checking for readline in -lreadline... no
    checking for rl_completion_matches in -lreadline... no
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating config.h
    config.status: executing depfiles commands
    cd . && /bin/sh /Users/davidsiebold/phonedmg/iphuc/iPhone/trunk/iPHUC/missing --run autoheader
    touch ./config.h.in
    cd . && /bin/sh ./config.status config.h
    config.status: creating config.h
    config.status: config.h is unchanged
    make all-am
    source='main.cpp' object='main.o' libtool=no \
    depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \
    depmode=gcc3 /bin/sh ./depcomp \
    g++ -DHAVE_CONFIG_H -I. -I. -I. -I/opt/local/include -lncurses -g -O2 -c -o main.o `test -f 'main.cpp' || echo './'`main.cpp
    privateFunctions.h:50: warning: 'regparm' attribute directive ignored
    privateFunctions.h:51: warning: 'regparm' attribute directive ignored
    privateFunctions.h:52: warning: 'regparm' attribute directive ignored
    powerpc-apple-darwin8-g++-4.0.1: -lncurses: linker input file unused because linking not done
    g++ -g -O2 -L/opt/local/lib -o iphuc -framework CoreFoundation -F/System/Library/PrivateFrameworks -framework MobileDevice main.o Shell.o NormalInterface.o RestoreInterface.o privateFunctions.o RecoveryInterface.o -lcurses
    /usr/bin/ld: Undefined symbols:
    _add_history
    _readline
    _rl_attempted_completion_function
    _rl_catch_signals
    _rl_catch_sigwinch
    _rl_completion_append_character
    _rl_completion_matches
    _rl_readline_name
    _rl_set_signals
    _xmalloc
    collect2: ld returned 1 exit status
    make[1]: *** [iphuc] Error 1
    make: *** [all] Error 2

    I'm not sure if that's because I already ran this or what the problem is now.
    2007-08-09 09:22 PM
  6. jedibugs's Avatar
    The guide has two links to DL MobileDevice.h...make sure you DL from the first one--where the link syas "MobileDevice.h" NOT the one that says "Here" (just because I know for a fact that that one works).

    It's a zip file, so make sure you unzip it and put the MobileDevice.h file in the folder shown here:

    http://www.modmyi.com/wiki/images/5/59/Phuc9.png

    Also, look at the files in that foler in the pic. If you don't have all those (and then some, in all likelyhood), you must have missed a step somewhere.
    2007-08-09 10:00 PM
  7. ShesCake's Avatar
    I just returned home from work and have done everything provided on the wiki and acquired the other MobileDevice.h and yet when I run the "./autogen.sh && ./configure --with-readline=/opt/local && make" command I still get errors.


    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... yes
    checking for g++... g++
    checking for C++ compiler default output file name... a.out
    checking whether the C++ compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking for style of include used by make... GNU
    checking dependency style of g++... gcc3
    checking for a BSD-compatible install... /usr/bin/install -c
    checking how to run the C++ preprocessor... g++ -E
    checking for egrep... grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking CoreFoundation.h usability... no
    checking CoreFoundation.h presence... no
    checking for CoreFoundation.h... no
    checking CoreFoundation/CoreFoundation.h usability... yes
    checking CoreFoundation/CoreFoundation.h presence... yes
    checking for CoreFoundation/CoreFoundation.h... yes
    checking for an ANSI C-conforming const... yes
    checking for stdlib.h... (cached) yes
    checking for GNU libc compatible malloc... yes
    checking for initscr in -lncurses... no
    checking for initscr in -lcurses... yes
    checking if libreadline needs libncurses... yes
    checking for readline in -lreadline... no
    checking for rl_completion_matches in -lreadline... no
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing depfiles commands
    cd . && /bin/sh /Users/davidsiebold/phonedmg/iphuc/iPhone/trunk/iPHUC/missing --run autoheader
    touch ./config.h.in
    cd . && /bin/sh ./config.status config.h
    config.status: creating config.h
    config.status: config.h is unchanged
    make all-am
    source='main.cpp' object='main.o' libtool=no \
    depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \
    depmode=gcc3 /bin/sh ./depcomp \
    g++ -DHAVE_CONFIG_H -I. -I. -I. -I/opt/local/include -lncurses -g -O2 -c -o main.o `test -f 'main.cpp' || echo './'`main.cpp
    privateFunctions.h:50: warning: 'regparm' attribute directive ignored
    privateFunctions.h:51: warning: 'regparm' attribute directive ignored
    privateFunctions.h:52: warning: 'regparm' attribute directive ignored
    powerpc-apple-darwin8-g++-4.0.1: -lncurses: linker input file unused because linking not done
    source='Shell.cpp' object='Shell.o' libtool=no \
    depfile='.deps/Shell.Po' tmpdepfile='.deps/Shell.TPo' \
    depmode=gcc3 /bin/sh ./depcomp \
    g++ -DHAVE_CONFIG_H -I. -I. -I. -I/opt/local/include -lncurses -g -O2 -c -o Shell.o `test -f 'Shell.cpp' || echo './'`Shell.cpp
    privateFunctions.h:50: warning: 'regparm' attribute directive ignored
    privateFunctions.h:51: warning: 'regparm' attribute directive ignored
    privateFunctions.h:52: warning: 'regparm' attribute directive ignored
    powerpc-apple-darwin8-g++-4.0.1: -lncurses: linker input file unused because linking not done
    source='NormalInterface.cpp' object='NormalInterface.o' libtool=no \
    depfile='.deps/NormalInterface.Po' tmpdepfile='.deps/NormalInterface.TPo' \
    depmode=gcc3 /bin/sh ./depcomp \
    g++ -DHAVE_CONFIG_H -I. -I. -I. -I/opt/local/include -lncurses -g -O2 -c -o NormalInterface.o `test -f 'NormalInterface.cpp' || echo './'`NormalInterface.cpp
    privateFunctions.h:50: warning: 'regparm' attribute directive ignored
    privateFunctions.h:51: warning: 'regparm' attribute directive ignored
    privateFunctions.h:52: warning: 'regparm' attribute directive ignored
    powerpc-apple-darwin8-g++-4.0.1: -lncurses: linker input file unused because linking not done
    source='RestoreInterface.cpp' object='RestoreInterface.o' libtool=no \
    depfile='.deps/RestoreInterface.Po' tmpdepfile='.deps/RestoreInterface.TPo' \
    depmode=gcc3 /bin/sh ./depcomp \
    g++ -DHAVE_CONFIG_H -I. -I. -I. -I/opt/local/include -lncurses -g -O2 -c -o RestoreInterface.o `test -f 'RestoreInterface.cpp' || echo './'`RestoreInterface.cpp
    privateFunctions.h:50: warning: 'regparm' attribute directive ignored
    privateFunctions.h:51: warning: 'regparm' attribute directive ignored
    privateFunctions.h:52: warning: 'regparm' attribute directive ignored
    powerpc-apple-darwin8-g++-4.0.1: -lncurses: linker input file unused because linking not done
    source='privateFunctions.cpp' object='privateFunctions.o' libtool=no \
    depfile='.deps/privateFunctions.Po' tmpdepfile='.deps/privateFunctions.TPo' \
    depmode=gcc3 /bin/sh ./depcomp \
    g++ -DHAVE_CONFIG_H -I. -I. -I. -I/opt/local/include -lncurses -g -O2 -c -o privateFunctions.o `test -f 'privateFunctions.cpp' || echo './'`privateFunctions.cpp
    privateFunctions.h:50: warning: 'regparm' attribute directive ignored
    privateFunctions.h:51: warning: 'regparm' attribute directive ignored
    privateFunctions.h:52: warning: 'regparm' attribute directive ignored
    powerpc-apple-darwin8-g++-4.0.1: -lncurses: linker input file unused because linking not done
    source='RecoveryInterface.cpp' object='RecoveryInterface.o' libtool=no \
    depfile='.deps/RecoveryInterface.Po' tmpdepfile='.deps/RecoveryInterface.TPo' \
    depmode=gcc3 /bin/sh ./depcomp \
    g++ -DHAVE_CONFIG_H -I. -I. -I. -I/opt/local/include -lncurses -g -O2 -c -o RecoveryInterface.o `test -f 'RecoveryInterface.cpp' || echo './'`RecoveryInterface.cpp
    privateFunctions.h:50: warning: 'regparm' attribute directive ignored
    privateFunctions.h:51: warning: 'regparm' attribute directive ignored
    privateFunctions.h:52: warning: 'regparm' attribute directive ignored
    powerpc-apple-darwin8-g++-4.0.1: -lncurses: linker input file unused because linking not done
    g++ -g -O2 -L/opt/local/lib -o iphuc -framework CoreFoundation -F/System/Library/PrivateFrameworks -framework MobileDevice main.o Shell.o NormalInterface.o RestoreInterface.o privateFunctions.o RecoveryInterface.o -lcurses
    /usr/bin/ld: Undefined symbols:
    _add_history
    _readline
    _rl_attempted_completion_function
    _rl_catch_signals
    _rl_catch_sigwinch
    _rl_completion_append_character
    _rl_completion_matches
    _rl_readline_name
    _rl_set_signals
    _xmalloc
    collect2: ld returned 1 exit status
    make[1]: *** [iphuc] Error 1
    make: *** [all] Error 2

    I've been working on getting into my iPhone for quite some time now and I still can't figure out what the problem is.
    2007-08-10 03:20 AM
  8. killacam's Avatar
    Im having the same problem. I installed the latest xcode and readline and subversion according to the wiki. now this:

    Last login: Thu Aug 9 20:47:58 on ttyp2
    Welcome to Darwin!
    cameron-lees-computer:~ Cameron$ cd ./iPhone/trunk/iPHUC
    -bash: cd: ./iPhone/trunk/iPHUC: No such file or directory
    cameron-lees-computer:~ Cameron$ cd phonedmg/iphuc
    cameron-lees-computer:~/phonedmg/iphuc Cameron$ svn co http://iphonesvn.halifrag.com/svn/iPhone
    Checked out revision 8.
    cameron-lees-computer:~/phonedmg/iphuc Cameron$ cd ./iPhone/trunk/iPHUC
    cameron-lees-computer:~/phonedmg/iphuc/iPhone/trunk/iPHUC Cameron$ ./autogen.sh && ./configure --with-readline=/opt/local && make
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... yes
    checking for g++... g++
    checking for C++ compiler default output file name... a.out
    checking whether the C++ compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking for style of include used by make... GNU
    checking dependency style of g++... gcc3
    checking for a BSD-compatible install... /usr/bin/install -c
    checking how to run the C++ preprocessor... g++ -E
    checking for egrep... grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking CoreFoundation.h usability... no
    checking CoreFoundation.h presence... no
    checking for CoreFoundation.h... no
    checking CoreFoundation/CoreFoundation.h usability... yes
    checking CoreFoundation/CoreFoundation.h presence... yes
    checking for CoreFoundation/CoreFoundation.h... yes
    checking for an ANSI C-conforming const... yes
    checking for stdlib.h... (cached) yes
    checking for GNU libc compatible malloc... yes
    checking for initscr in -lncurses... yes
    checking if libreadline needs libncurses... yes
    checking for readline in -lreadline... yes
    checking for rl_completion_matches in -lreadline... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing depfiles commands
    cd . && /bin/sh /Users/Cameron/phonedmg/iphuc/iPhone/trunk/iPHUC/missing --run autoheader
    touch ./config.h.in
    cd . && /bin/sh ./config.status config.h
    config.status: creating config.h
    config.status: config.h is unchanged
    make all-am
    g++ -g -O2 -L/opt/local/lib -o iphuc -framework CoreFoundation -F/System/Library/PrivateFrameworks -framework MobileDevice main.o Shell.o NormalInterface.o RestoreInterface.o privateFunctions.o RecoveryInterface.o -lreadline -lncurses
    /usr/bin/ld: multiple definitions of symbol __AMRUSBInterfaceReadPipe
    main.o definition of __AMRUSBInterfaceReadPipe in section (__DATA,__data)
    Shell.o definition of __AMRUSBInterfaceReadPipe in section (__DATA,__data)
    /usr/bin/ld: multiple definitions of symbol __AMRUSBInterfaceWritePipe
    main.o definition of __AMRUSBInterfaceWritePipe in section (__DATA,__data)
    Shell.o definition of __AMRUSBInterfaceWritePipe in section (__DATA,__data)
    /usr/bin/ld: multiple definitions of symbol __performOperation
    main.o definition of __performOperation in section (__DATA,__data)
    Shell.o definition of __performOperation in section (__DATA,__data)
    /usr/bin/ld: multiple definitions of symbol __restored_receive_message
    main.o definition of __restored_receive_message in section (__DATA,__data)
    Shell.o definition of __restored_receive_message in section (__DATA,__data)
    /usr/bin/ld: multiple definitions of symbol __restored_send_message
    main.o definition of __restored_send_message in section (__DATA,__data)
    Shell.o definition of __restored_send_message in section (__DATA,__data)
    /usr/bin/ld: multiple definitions of symbol __sendCommandToDevice
    main.o definition of __sendCommandToDevice in section (__DATA,__data)
    Shell.o definition of __sendCommandToDevice in section (__DATA,__data)
    /usr/bin/ld: multiple definitions of symbol __sendControlPacket
    main.o definition of __sendControlPacket in section (__DATA,__data)
    Shell.o definition of __sendControlPacket in section (__DATA,__data)
    /usr/bin/ld: multiple definitions of symbol __socketForPort
    main.o definition of __socketForPort in section (__DATA,__data)
    Shell.o definition of __socketForPort in section (__DATA,__data)
    collect2: ld returned 1 exit status
    make[1]: *** [iphuc] Error 1
    make: *** [all] Error 2
    cameron-lees-computer:~/phonedmg/iphuc/iPhone/trunk/iPHUC Cameron$

    mine is intel c2d not ppc though.
    Last edited by killacam; 2007-08-10 at 05:38 AM. Reason: Automerged Doublepost
    2007-08-10 05:37 AM
  9. SCARECROW's Avatar
    I'm having the exact same issues as above - also on an Intel Mac..
    I am using Xcode 2.2 so I am in the process of upgrading that to 2.4.1 but I have a feeling that is not the problem.

    Anyone have any ideas?
    2007-08-10 07:13 AM
LINK TO POST COPIED TO CLIPBOARD