PDA

View Full Version : Netinfo manager not working


leojose
10-05-2005, 04:49 AM
Hi all,

I'm trying to execute NetInfo manager but it doesn't seem to run. Could it be something I did? To get more disk space on the boot partition, I move all the application and Utilities files to the other (Data) partition. There was no error messages when I did, so I assume everything went fine. But now I'm unable to run some of the utilities. I copied them back to the original location, but even that didn't help.
What do I do?

PS: I don't have the setup disk with me right now.:(

hayne
10-05-2005, 05:04 AM
To get more disk space on the boot partition, I move all the application and Utilities files to the other (Data) partition. There was no error messages when I did, so I assume everything went fine.

Several utilities make use of helper programs that are setuid root and these cannot be copied using Finder. You said that there were no error messages when you did the copy - that seems strange as there is usually a dialog that comes up telling you that not all the items could be copied. Are you sure you didn't see that dialog? Or maybe you did this via the Terminal?

In any case, now that you have moved the apps back to their original locations (under /Applications and /Applications/Utilities), you should use Disk Utility to do a "Repair Permissions".
But perhaps Disk Utility will not work because it has been moved. In that case, you can do it from a Terminal window with the following command:

sudo /usr/sbin/diskutil repairpermissions /

leojose
10-05-2005, 05:14 AM
... there is usually a dialog that comes up telling you that not all the items could be copied. Are you sure you didn't see that dialog?

oh yes...I remember having seen that one. I just assumed it was not an error message, maybe just a warning that some applications are open and so I didn't have permission to move it.

But perhaps Disk Utility will not work because it has been moved.

you are right...i messed that one up too:o

sudo /usr/sbin/diskutil repairpermissions /
ok, i tried this and it asked for a password, which i gave...what after that?
Can i separately repair Netinfo manager?

hayne
10-05-2005, 07:21 AM
ok, i tried this and it asked for a password, which i gave...what after that?
Can i separately repair Netinfo manager?
Have you tried running NetInfo Manager again?
The repairpermissions should have fixed it - look in the messages from that command to see if it was mentioned.

leojose
10-05-2005, 08:11 AM
I ran repairPermissions and lot of files were repaired including the NetInfo Manager. But the application still doesn't open.
As a test, I opened the Package Contents of NetInfo Manager and executed the only application in the MacOS folder using Terminal and this is what I got...

MacSystem:~ Leo$ /Applications/Utilities/NetInfo\ Manager.app/Contents/MacOS/NetInfo\ Manager; exit
dyld: Library not loaded: /System/Library/PrivateFrameworks/NIAccess.framework/Versions/B/NIAccess
Referenced from: /Applications/Utilities/NetInfo Manager.app/Contents/MacOS/NetInfo Manager
Reason: image not found
Trace/BPT trap
logout
[Process completed]

I think this refers to the problems the application may be facing.

hayne
10-05-2005, 12:07 PM
dyld: Library not loaded: /System/Library/PrivateFrameworks/NIAccess.framework/Versions/B/NIAccess

The file /System/Library/PrivateFrameworks/NIAccess.framework/Versions/B/NIAccess doesn't exist on my 10.4.2 system either.
What version of OS X are you running?
It seems that NIAccess.framework only exists in 10.3 and earlier.

I don't see how something like this could have been screwed up just by you copying apps from /Applications to elsewhere and back again.
Anyway, you may need to extract the apps from your Install CD using the 3rd-party utility "Pacifist". Or just do an "archive & install" of OS X, being sure to enable the option to preserve users.

leojose
10-06-2005, 01:40 AM
Thanks for helping me out so far hayne:)

The file
What version of OS X are you running?
It seems that NIAccess.framework only exists in 10.3 and earlier.

Mac OS X v10.4.2

I don't see how something like this could have been screwed up just by you copying apps from /Applications to elsewhere and back again.

I was looking at other possibilities too...can renaiming the Startup Disk cause any problems?
Do you suspect any files have been deleted?

will diskutil repairVolume help? (I am just being cautious here :o )

Anyway, you may need to extract the apps from your Install CD using the 3rd-party utility "Pacifist". Or just do an "archive & install" of OS X, being sure to enable the option to preserve users.
That seems to be the final option left...but as I don't have any access to the Install CD now that will have to wait.

hayne
10-06-2005, 01:50 AM
can renaming the Startup Disk cause any problems?
No
Do you suspect any files have been deleted?
Not from the error message that you reported.
As I said, I don't understand how you could be getting that error message.
Open a Terminal window and run the following command:

otool -L "/Applications/Utilities/NetInfo Manager.app/Contents/MacOS/NetInfo Manager"

That will show which libraries are needed by NetInfo Manager.
The one mentioned in your error message should not appear for the Tiger version of NetInfo Manager.

will diskutil repairVolume help?
Not likely - but it won't hurt. That does filesystem repairs.

leojose
10-06-2005, 02:04 AM
I did what you said and these are the results...

NetInfo Manager:
/System/Library/PrivateFrameworks/NIAccess.framework/Versions/B/NIAccess (compatibility version 1.0.0, current version 1.0.0)
/System/Library/PrivateFrameworks/NIInterface.framework/Versions/B/NIInterface (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 663.0.0)
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 462.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 60.0.0)

I think the library mentioned in the error message does appear on the first line

hayne
10-06-2005, 02:16 AM
It's looking more and more like that is an older version of NetInfo Manager.
You didn't maybe copy it from some other (pre-Tiger) system?

What do you get from the following commands?

cat "/Applications/Utilities/NetInfo Manager.app/Contents/Info.plist" | grep -a1 CFBundleShortVersionString
strings "/Applications/Utilities/NetInfo Manager.app/Contents/MacOS/NetInfo Manager" | grep -i built

leojose
10-06-2005, 02:22 AM
This is what I get...

cat "/Applications/Utilities/NetInfo Manager.app/Contents/Info.plist" | grep -a1 CFBundleShortVersionString

<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.3</string>


strings "/Applications/Utilities/NetInfo Manager.app/Contents/MacOS/NetInfo Manager" | grep -i built

@(#)PROGRAM:NetInfo_Manager PROJECT:NetInfoManager-74 DEVELOPER:root BUILT:09/27/02 18:25:33

hayne
10-06-2005, 02:53 AM
Yep - that confirms it. You have an older version of NetInfo Manager, one that is not Tiger-compatible.
How exactly this happened is a mystery given what you have described so far.

leojose
10-06-2005, 03:38 AM
Yep - that confirms it. You have an older version of NetInfo Manager, one that is not Tiger-compatible.
I'm sure I wouldn't have been able to figure that out myself...thanks a bunch!

I think it was the BUILT:09/27/02 18:25:33 that revealed this...or was it something else too?

How exactly this happened is a mystery given what you have described so far.
I'm not the lone user of this MAC PC, I'll look into it and find out how it happened...I guess I can take it on from here ;) *fingers crossed*

I will post whatever solution I apply to get this resolved, that way this thread can have a happy ending:)

leojose
01-10-2006, 07:33 AM
I was away from Mac for some time as I had to handle other Windows based programming issues. But as promised I just want to report back the reason for the problems I faced in this thread.

Firstly, I had two partitions on my Mac machine. What I didn't know was that there was MacOS_10.2.8 installed on one and MacOS_10.4.2 installed on the other.
To get more disk space on the boot partition, I move all the application and Utilities files to the other (Data) partition.
When I moved the application files from 10.4.2 partition to 10.2.8 partition I may not have overwritten all the files, but when I moved them back I did a complete overwrite, as result I had application and utility files of 10.2 version in my 10.4 OS partition!

Now, the only thing left for me to do is re-install MacOS_X_10.4.2:)