The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - Newcomers (http://hintsforums.macworld.com/forumdisplay.php?f=15)
-   -   tar tvf (http://hintsforums.macworld.com/showthread.php?t=148608)

ganbustein 05-07-2012 04:53 PM

Xcode 4.3.2 is a standalone app, requiring OS X 10.7, and normally stored in /Applications/Xcode.app. What previous versions of Xcode would normally have stored in /Developer can now be found in /Applications/Xcode.app/Contents/Developer.

Another difference is that Xcode 4.3.2 no longer installs the command-line tools by default. You have to install them explicitly by going to Xcode→Preferences...→Downloads→Components and clicking Command Line Tools→(install).

If you set $Developer to the correct path to the Developer folder corresponding your version of Xcode (which needn't be 4.3.2), the old Carbon headers can be found in "$Developer"/Headers/FlatCarbon. However, #including <Carbon/Carbon.h> (to get the "non-flat" Carbon headers) instead of all the individual headers should work as well. If you have multiple versions of Xcode installed, or if you've moved your Xcode from its default install location, man xcode-select to learn how to control which version is used by the Xcode command-line tools.

But my comment wasn't how to get the headers. You get to the headers by inserting the right #include lines in your source, and that lets you compile, but even after you've done that you still have to link with the precompiled library in the Carbon framework to get a working executable. (I'm old-school. I consider Compiling and Linking to be two separate phases, even though Xcode (or even /usr/bin/make) will do both in one fell swoop, blurring the distinction. You need to look carefully at the error messages to see which operation failed.)

Brian Schott 05-07-2012 04:53 PM

Where is gcc and where are header files?
 
Quote:

Originally Posted by Brian Schott (Post 681457)
Trevor,

I think you have discovered a big problem: there is no such directory on my Mini. There was a /Developer directory on my older Mac. Do I need to download it from Apple now, somehow? I have Xcode 4.3.2 (4E2002) already installed. What's wrong?

[snip]

Brian in Atlanta

I have found some interesting info regarding the /Developer directory in Xcode on Lion at the following link. Can anyone read this and help me find where the gcc compiler might be now, and if this new Xcode arrangement might explain where the missing header files might be?

https://developer.apple.com/library/...xcode_4_3.html


"/Developer No Longer Exists
The simplification afforded by repackaging Xcode 4.3 as a single app bundle eliminates the need for the /Developer directory containing prior versions of Xcode. As a result, the Install Xcode application and the uninstall-devtools command line script are also no longer needed."

"Since the /Developer directory no longer exists with Xcode 4.3, some other parts of prior Xcode installations have moved.

Sample Code. The three sample projects previously available in /Developer/Examples—TextEdit, Sketch and CircleView—have been moved to the Sample Code sections of the iOS and Mac OS X Developer Libraries at developer.apple.com.

Plug-ins, templates and other sub-components. Any path for component additions to developer tools that was previously found in a subdirectory of /Developer is now going to be located internal to the Xcode 4.3 application bundle. For example, Instruments templates—files such as Automation.tracetemplate—previously located in the /Developer subdirectory at /Developer/Platforms/iPhoneOS.platform/… is now stored in a similar path inside /Applications/Xcode.app/Contents/Developer/….

Other standalone utility applications and add-on technologies. Several additional tools are no longer part of the default Xcode installation, they are now downloadable as separate packages. The More Developer Tools menu command (Figure 5) provides a direct jump to developer.apple.com/downloads in Safari where these development tools can be found."

"The available downloads include:

Audio tools: AULab, HALLab, and audio utility source code
Accessibility tools: Accessibility Inspector, Accessibility Verifier
Hardware IO tools: Bluetooth tools, IORegistryExplorer, USB Prober
Graphics tools: CI Filter Browser Widget, OpenGL tools, Pixie, Quartz Debug, Quartz Composer tools
Auxiliary tools: Clipboard Viewer, CrashReporterPrefs, Help Indexer, PackageMaker, Speech tools, SleepX
Dashcode: Dashcode application"

Brian Schott 05-07-2012 05:13 PM

gcc found?
 
Quote:

Originally Posted by trevor (Post 681449)
These two statements would seem to contradict each other, but maybe you just don't have your PATH set properly.

Can we see the results of:

ls -al /Developer/usr/bin/gcc*
echo $PATH
echo "done"


Trevor

server:Developer brian$ ls -al /Applications/Xcode.app/Contents/Developer/usr/bin/gcc*
lrwxr-xr-x 1 brian admin 12 Mar 20 13:55 /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -> llvm-gcc-4.2
server:Developer brian$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
server:Developer brian$ echo "done"
done
server:Developer brian$


So, how might I alter the command /.configure suggested by the "real" alpine site, please?

Brian in Atlanta

acme.mail.order 05-07-2012 08:35 PM

Quote:

Originally Posted by ganbustein (Post 681490)
Another difference is that Xcode 4.3.2 no longer installs the command-line tools by default. You have to install them explicitly by going to Xcode→Preferences...→Downloads→Components and clicking Command Line Tools→(install).

Have you done this yet?

Brian Schott 05-08-2012 01:21 PM

downloaded command line components
 
Quote:

Originally Posted by acme.mail.order (Post 681519)
Have you done this yet?

Thank you.

Now I have downloaded the command line components, but the Xcode Run still produces the errors about not finding Desk.h .

Did you mean for me to try something else after the download?


Brian in Atlanta

acme.mail.order 05-08-2012 08:18 PM

You are apparently dealing with some rather dated source code, and it's going to be one error after another.

If all you want out of this is the alpine editor, then use fink. Alpine has already been processed, updated and tested by people who know their stuff.

Brian Schott 05-08-2012 09:59 PM

Quote:

Originally Posted by acme.mail.order (Post 681728)
You are apparently dealing with some rather dated source code, and it's going to be one error after another.

If all you want out of this is the alpine editor, then use fink. Alpine has already been processed, updated and tested by people who know their stuff.


Thanks for the advice, but ...

Fink does not have a binary-- only Source for re-alpine (not alpine, but the same, I think).

Also Fink requires Xcode, so why must I jump through a whole new set of installation hoops?

Brian in Atlanta

There is no binary for osx 10.6 or 10 .7 so I worry that it has not been compiled. Isn't that a fair worry?

acme.mail.order 05-09-2012 03:45 AM

Anything in fink or macports has already been updated by the übergeek maintaining that package - it typically compiles all by itself.

I've never had a fink/ports package fail to compile properly. I HAVE had to run it more than once, and either update or install a small mountain of dependencies.

On my desktop machine (10.6.8 Server with XCode 3.2.5) `fink install alpine` compiled in 12 minutes.

Brian Schott 05-09-2012 12:01 PM

I installed fink, but am getting the following error messages. Any ideas?

Brian in Atlanta

You should now have a working Fink installation in '/sw'. You still need
package descriptions if you want to compile packages yourself. You can get them
by running either of the commands: 'fink selfupdate-rsync', to update via rsync
(generally preferred); or 'fink selfupdate-cvs', to update via CVS (more likely
to work through a firewall).

Run '. /sw/bin/init.sh' to set up this terminal session environment to use
Fink. To make the software installed by Fink available in all of your future
terminal shells, add '. /sw/bin/init.sh' to the init script '.profile' or
'.bash_profile' in your home directory. The program /sw/bin/pathsetup.sh can
help with this. Enjoy.

server:fink-0.32.6 brian$ fink selfupdate-rsync
-bash: fink: command not found
server:fink-0.32.6 brian$ cd /sw
server:sw brian$ fink selfupdate-rsync
server:sw brian$ fink selfupdate-cvs
-bash: fink: command not found
server:sw brian$ fink selfupdate
-bash: fink: command not found
server:sw brian$

jsalmi 05-09-2012 01:11 PM

Brian - did you run /sw/bin/init.sh prior to running 'fink selfupdate-rsync'? Did you add it to your .profile as well?

Brian Schott 05-09-2012 02:52 PM

Fink install
 
Quote:

Originally Posted by jsalmi (Post 681843)
Brian - did you run /sw/bin/init.sh prior to running 'fink selfupdate-rsync'? Did you add it to your .profile as well?

I had not, but when I did I got this.


server:sw brian$ /sw/bin/init.sh
-bash: /sw/bin/init.sh: Permission denied
server:sw brian$ sudo /sw/bin/init.sh
sudo: /sw/bin/init.sh: command not found
server:sw brian$ ls -l /sw/bin/init.sh
-rw-r--r-- 1 root admin 3790 May 9 11:32 /sw/bin/init.sh
server:sw brian$


Brian in Atlanta

trevor 05-09-2012 03:11 PM

sudo chmod 755 /sw/bin/init.sh

Trevor

Brian Schott 05-09-2012 03:39 PM

Ready to download source re-alpine
 
Quote:

Originally Posted by trevor (Post 681857)
sudo chmod 755 /sw/bin/init.sh

Trevor

Yes, Trevor, that made a difference. Thank you.

I finally got fink selfupdate-rsync to work, but I am not sure how because I did two things differently before it worked. I opened a new terminal window and I issued the command from the $HOME and not from /sw .

I looked at my .profile and it looks like it has the fink stuff in it, so I may be installed.

server:~ brian$ more .profile

test -r /sw/bin/init.sh && . /sw/bin/init.sh


Now, a really dumb question. How do I download source re-alpine as described at the following link if I did this, (or is this unrelated to may question?): server:sw brian$ fink selfupdate-rsync

http://pdb.finkproject.org/pdb/packa...current-stable

TIA,

Brian in Atlanta

trevor 05-09-2012 05:31 PM

Quote:

Originally Posted by Brian Schott (Post 681862)
Yes, Trevor, that made a difference. Thank you.

I finally got fink selfupdate-rsync to work, but I am not sure how because I did two things differently before it worked. I opened a new terminal window and I issued the command from the $HOME and not from /sw .

If I'm understanding you, which working directory you are in shouldn't make any difference, since you are using full paths in your commands, at least in the ones that you've shown.

Again, if I'm understanding the situation correctly, the difference is because the 'sudo chmod 755' command added execute permissions to /sw/bin/init.sh, so now you can execute it. When you issued an ls command on /sw/bin/init.sh previously, it showed -rw-r--r--, but it should now show -rwxr-xr-x. Those three new x's indicate, in order, that it can be executed by the owner (root), the group owner (admin), and others.

Quote:

Originally Posted by Brian Schott (Post 681862)
Now, a really dumb question. How do I download source re-alpine as described at the following link if I did this, (or is this unrelated to may question?): server:sw brian$ fink selfupdate-rsync

http://pdb.finkproject.org/pdb/packa...current-stable

Again, if I'm understanding the situation, you don't need to worry so much--just issue the simple command

fink install re-alpine

Trevor

acme.mail.order 05-09-2012 08:06 PM

Have you logged out of the shell at any point? Changes to various profile settings take effect at login, not immediately.

Brian Schott 05-09-2012 08:11 PM

Quote:

Originally Posted by trevor (Post 681871)
Again, if I'm understanding the situation, you don't need to worry so much--just issue the simple command

fink install re-alpine

Trevor

Yes, I issued that command and processing went on for quite a while.
Now, what? How do I know what the result means? If it worked, where is the executable?

The key error message was as follows.

curl: (22) The requested URL returned error: 404
### execution of curl failed, exit code 22
Downloading the file "tcl8.5.10-src.tar.gz" failed.

I was unable to search the fink mailing list archives because I could not figure out how.

There is a "maintainer" URL for re-alpline, is he/she the person to ask about this?

Thanks,

Brian in Atlanta

dmacks 05-10-2012 12:20 AM

/sw/bin/init.sh does not need to be +x because it is not intended to be run *itself* as a program, but rather is intended to be loaded by the existing shell. Compare:

Run '. /sw/bin/init.sh'

to

server:sw brian$ /sw/bin/init.sh
-bash: /sw/bin/init.sh: Permission denied

Brian, it's often critical that you follow unix command instructions exactly unless you know exactly what your change from the instructions is trying to accomplish (or are just trying to experiment and learn obviously:). Omitting the leading "period and space" completely changes how init.sh is executed and what effect it has. That program is intended to adjust the existing shell, which means it has to be loaded by *it* ("period" is a command that means "load this file") rather than run itself (and having no effect outside of itself). You can see that the .profile command is similarly "period then init.sh", because it's intended to load that file (which sets up your *current shell* to access fink easily). This type of access is just reading the file, not actually "running" it in the usual sense, so it does not need +x permission.

It's also important to give a full and exact error message, not just the last few lines. In essence, you said "it failed, and curl said *it* failed", but you omitted the preceding information about exactly what was failing and/or other diagnostic messages about what exactly went wrong. For example, "404" means the file could not be found, but you omitted the detail about exactly what file and what server was being tried. I know some of fink's mirrors have been down recently, so there are many you could cycle through to try to find the file.

Brian Schott 05-10-2012 07:49 AM

Quote:

Originally Posted by dmacks (Post 681928)
It's also important to give a full and exact error message, not just the last few lines. In essence, you said "it failed, and curl said *it* failed", but you omitted the preceding information about exactly what was failing and/or other diagnostic messages about what exactly went wrong. For example, "404" means the file could not be found, but you omitted the detail about exactly what file and what server was being tried. I know some of fink's mirrors have been down recently, so there are many you could cycle through to try to find the file.

Here is more of the error report. You were right that more was needed.
I also reversed the +x on /sw/bin/init.sh as you explained. Thanks.

Brian in Atlanta

curl: (22) The requested URL returned error: 404
### execution of curl failed, exit code 22
Downloading the file "tcl8.5.10-src.tar.gz" failed.

(1) Give up
(2) Retry the same mirror
(3) Retry another mirror from your country
(4) Retry another mirror
(5) Retry using next mirror set "sourceforge"

Default answer will be chosen in 120 seconds...
How do you want to proceed? [3]
TIMEOUT: using default answer.
curl --connect-timeout 30 -f -L -A 'fink/0.32.6' -O http://distfiles.sjc.ca.us.finkmirro....10-src.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0
curl: (22) The requested URL returned error: 404
### execution of curl failed, exit code 22
Downloading the file "tcl8.5.10-src.tar.gz" failed.

(1) Give up
(2) Retry the same mirror
(3) Retry another mirror
(4) Retry using next mirror set "sourceforge"

Default answer will be chosen in 120 seconds...
How do you want to proceed? [4]
TIMEOUT: using default answer.
curl --connect-timeout 30 -f -L -A 'fink/0.32.6' -O http://downloads.sourceforge.net/tcl....10-src.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4392k 100 4392k 0 0 38517 0 0:01:56 0:01:56 --:--:-- 51722
curl --connect-timeout 30 -f -L -A 'fink/0.32.6' -O http://distfiles.sjc.ca.us.finkmirro....10-src.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404
### execution of curl failed, exit code 22
Downloading the file "tk8.5.10-src.tar.gz" failed.

(1) Give up
(2) Retry the same mirror
(3) Retry another mirror
(4) Retry using next mirror set "sourceforge"

Default answer will be chosen in 120 seconds...
How do you want to proceed? [4]
TIMEOUT: using default answer.
curl --connect-timeout 30 -f -L -A 'fink/0.32.6' -O http://downloads.sourceforge.net/tcl....10-src.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
342 161 342 552 0 0 56 0 0:00:02 0:00:09 --:--:-- 2369
The checksum of the file is incorrect. The most likely cause for this is a
corrupted or incomplete download
Expected: adfdaca46cc95fec8557df8ecdb0715c
Actual: MD5(59f87aa97d014e84426916a2f2572628)
SHA1(80205398c9881aabfad542bdec4c84a326428f5c)
Downloading the file "tk8.5.10-src.tar.gz" failed.

(1) Give up
(2) Retry the same mirror
(3) Retry another mirror from your country
(4) Retry another mirror

Default answer will be chosen in 120 seconds...
How do you want to proceed? [3]
TIMEOUT: using default answer.
curl --connect-timeout 30 -f -L -A 'fink/0.32.6' -O http://internap.dl.sourceforge.net/s....10-src.tar.gz

curl: (6) Could not resolve host: internap.dl.sourceforge.net; nodename nor servname provided, or not known
### execution of curl failed, exit code 6
Downloading the file "tk8.5.10-src.tar.gz" failed.

(1) Give up
(2) Retry the same mirror
(3) Retry another mirror from your country
(4) Retry another mirror

Default answer will be chosen in 120 seconds...
How do you want to proceed? [3]
TIMEOUT: using default answer.
curl --connect-timeout 30 -f -L -A 'fink/0.32.6' -O http://easynews.dl.sourceforge.net/s....10-src.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:29 --:--:-- 0
curl: (28) connect() timed out!
### execution of curl failed, exit code 28
Downloading the file "tk8.5.10-src.tar.gz" failed.

(1) Give up
(2) Retry the same mirror
(3) Retry another mirror from your country
(4) Retry another mirror

Default answer will be chosen in 120 seconds...
How do you want to proceed? [4]
TIMEOUT: using default answer.
curl --connect-timeout 30 -f -L -A 'fink/0.32.6' -O http://puzzle.dl.sourceforge.net/sou....10-src.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:29 --:--:-- 0
curl: (28) connect() timed out!
### execution of curl failed, exit code 28
Downloading the file "tk8.5.10-src.tar.gz" failed.

(1) Give up
(2) Retry the same mirror
(3) Retry another mirror from your country
(4) Retry another mirror

Default answer will be chosen in 120 seconds...
How do you want to proceed? [4]
TIMEOUT: using default answer.
curl --connect-timeout 30 -f -L -A 'fink/0.32.6' -O http://kent.dl.sourceforge.net/sourc....10-src.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3718k 100 3718k 0 0 46926 0 0:01:21 0:01:21 --:--:-- 42565
curl --connect-timeout 30 -f -L -A 'fink/0.32.6' -O http://distfiles.sjc.ca.us.finkmirro...-2.2.0.tar.bz2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 283k 100 283k 0 0 25373 0 0:00:11 0:00:11 --:--:-- 9764
Setting runtime build-lock...
dpkg-deb -b /sw/src/fink.build/root-fink-buildlock-db51-aes-5.1.29-2 /sw/src/fink.build
dpkg-deb: building package `fink-buildlock-db51-aes-5.1.29-2' in `/sw/src/fink.build/fink-buildlock-db51-aes-5.1.29-2_2012.05.09-19.15.44_darwin-x86_64.deb'.
Installing build-lock package...
/sw/bin/dpkg-lockwait -i /sw/src/fink.build/fink-buildlock-db51-aes-5.1.29-2_2012.05.09-19.15.44_darwin-x86_64.deb
Selecting previously deselected package fink-buildlock-db51-aes-5.1.29-2.
(Reading database ... 4568 files and directories currently installed.)
Unpacking fink-buildlock-db51-aes-5.1.29-2 (from .../fink-buildlock-db51-aes-5.1.29-2_2012.05.09-19.15.44_darwin-x86_64.deb) ...
Setting up fink-buildlock-db51-aes-5.1.29-2 (2012.05.09-19.15.44) ...

WillyT 05-10-2012 10:49 AM

oooh oooh oooh its working!

I see it is installing missing dependencies.

Good Luck

WillyT 05-10-2012 11:04 AM

Look into Fink Commander.

http://finkcommander.sourceforge.net/

It is probably included in the Fink download.


All times are GMT -5. The time now is 10:37 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.