On 06/25/10 09:46 PM, Jason B. Hill wrote:
Could it be an option to add the relevant information to
sage_root/install.log and prune from there? Some of the info we're looking
at is already available in that file. For instance... info copied from an
install.log:
uname -a: Linux dirichlet 2.6.31-21-generic #59-Ubuntu SMP Wed Mar 24
07:28:27 UTC 2010 x86_64 GNU/Linux
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9)
checking whether we are using GNU C... yes
People are likely to delete install.log at some point. It's also possible that
the system on which Sage is built is not the one on which it is run (obviously
the case if someone downloads a binary).
I can create a Python script to gather information on Red Hat and Debian
based systems about hardware. As for OS-X, Solaris, BSD and *gasp* installs
under Cygwin or similar, I have little idea. I also am not sure how to
proceed in a consistent manner for other non-RH/D-based Linux systems like
Slackware.
Jason
I'm not much of a Python programmer, but if you can make available your code for
Redhat and Debian, I'm sure I could use it as a template and just substitute the
Solaris commands.
Here's some of the information the SystemInformationData for Mathematica gives.
Some of these things could be useful.
Out[1]= SystemInformationData[{Kernel ->
> {Version -> 6.0 for Linux x86 (64-bit) (June 19, 2007),
> ReleaseID -> 6.0.1 (876222, 875996), LicenseID -> L2482-2405,
> MachineID -> 6520-66425-76200, UserName -> kirkby,
> MachineName -> sage, MachineDomain -> math.washington.edu,
> LicenseServer -> abel.math.harvard.edu, MaxLicenseProcesses -> 1,
> LicenseExpirationDate -> {2010, 8, 1, 0, 0, 0}, MachineType -> PC,
> OperatingSystem -> Unix, ProcessorType -> x86-64,
> Language -> English, CharacterEncoding -> ISO8859-1,
> SystemCharacterEncoding -> ISO8859-1, TimeZone -> -7.,
> CreationDate -> {2007, 6, 19, 19, 20, 59},
> InstallationDirectory -> /usr/local/Wolfram/Mathematica/6.0,
> InitializationFiles -> {/home/kirkby/.Mathematica/Kernel/init.m},
> CurrentDirectory -> /home/kirkby, HomeDirectory -> /home/kirkby,
> UserDocumentsDirectory -> /home/kirkby,
> UserBaseDirectory -> /home/kirkby/.Mathematica,
> BaseDirectory -> /usr/share/Mathematica,
> Path ->
> {/usr/local/Wolfram/Mathematica/6.0/SystemFiles/Links,
> /home/kirkby/.Mathematica/Kernel,
> /home/kirkby/.Mathematica/Autoload,
> /home/kirkby/.Mathematica/Applications,
> /usr/share/Mathematica/Kernel, /usr/share/Mathematica/Autoload,
> /usr/share/Mathematica/Applications, ., /home/kirkby,
> /usr/local/Wolfram/Mathematica/6.0/AddOns/Packages,
> /usr/local/Wolfram/Mathematica/6.0/AddOns/LegacyPackages,
> /usr/local/Wolfram/Mathematica/6.0/SystemFiles/Autoload,
> /usr/local/Wolfram/Mathematica/6.0/AddOns/Autoload,
> /usr/local/Wolfram/Mathematica/6.0/AddOns/Applications,
> /usr/local/Wolfram/Mathematica/6.0/AddOns/ExtraPackages,
> /usr/local/Wolfram/Mathematica/6.0/SystemFiles/Kernel/Packages,
> /usr/local/Wolfram/Mathematica/6.0/Documentation/English/System},
> PackagesLoaded -> {WebServices`, System`, Global`},
> AllFilesLoaded ->
> {/usr/local/Wolfram/Mathematica/6.0/SystemFiles/CharacterEncodings/I\
> SO8859-1.m, /usr/local/Wolfram/Mathematica/6.0/SystemFiles/Kernel/\
> SystemResources/Linux-x86-64/sysinit.m,
> /usr/local/Wolfram/Mathematica/6.0/SystemFiles/Kernel/SystemResourc\
> es/Linux-x86-64/mainload.mx,
> /home/kirkby/.Mathematica/Kernel/init.m,
> /usr/local/Wolfram/Mathematica/6.0/SystemFiles/Kernel/SystemResourc\
> es/Linux-x86-64/SystemInformation.mx,
> /usr/local/Wolfram/Mathematica/6.0/SystemFiles/CharacterEncodings/U\
> nicode.m, /usr/local/Wolfram/Mathematica/6.0/SystemFiles/Kernel/Sy\
> stemResources/Linux-x86-64/StringPattern.mx},
> ContextPath -> {WebServices`, System`, Global`},
> AvailableAddOns ->
> {AuthorTools, DemonstrationsTools, DocumentationSearch,
> ResourceLocator, Security},
> OpenStreams -> {OutputStream[stdout, 1], OutputStream[stderr, 2]},
> OpenMathLinkConnections -> {}, InstalledPrograms -> {},
> SystemID -> Linux-x86-64,
> CommandLine ->
> {/usr/local/Wolfram/Mathematica/6.0/SystemFiles/Kernel/Binaries/Linu\
> x-x86-64/MathKernel}, ProcessID -> 12678,
> ParentProcessID -> 12439, MathLinkVersion -> 3.17 (875945),
> EvaluatorName -> Missing[NotActive],
> EvaluatorNames -> Missing[NotActive], ByteOrdering -> -1,
-16
> MachinePrecision -> 15.9546, MachineEpsilon -> 2.22045 10 ,
-308
> MinMachineNumber -> 2.22507 10 ,
308
> MaxMachineNumber -> 1.79769 10 ,
-646456782
> MinNumber -> 4.777563060419061 10 ,
646456781
> MaxNumber -> 2.093117322269914 10 },
> FrontEnd -> Missing[NotActive],
> Links -> {OpenStreams ->
> {OutputStream[stdout, 1], OutputStream[stderr, 2]},
> OpenMathLinkConnections -> {}, InstalledPrograms -> {},
> JLinkVersion -> Missing[NotActive], JavaRunning -> False,
> JavaVersion -> Missing[NotActive],
> JLinkClasspath -> Missing[NotActive],
> LoadedJavaClasses -> Missing[NotActive],
> .NetLinkVersion -> Missing[NotActive], .NETRunning -> False,
> .NETVersion -> Missing[NotActive],
> LoadedNETTypes -> Missing[NotActive],
> LoadedNETAssemblies -> Missing[NotActive],
> DatabaseLinkVersion -> Missing[NotActive],
> OpenDatabaseConnections -> Missing[NotActive],
> ConfiguredDatabases -> Missing[NotActive],
> DatabaseSearchPath -> Missing[NotActive],
> SupportedDatabaseTypes -> Missing[NotActive],
> WebServicesVersion -> Missing[NotActive], InstalledWebServices -> {}}\
> , Devices -> Missing[NotActive],
> Network ->
> {IPAddresses -> {192.168.2.8, 128.208.160.191},
> AllowInternetUse -> True, LoadOnDemand -> True,
> LoadOnDemandServers -> {http://pacletserver.wolfram.com},
> LatestTransaction -> Missing[NotActive],
> LatestTransactionServer -> Missing[NotActive],
> LastLocalIndexUpdate -> Missing[NotActive],
> LastLocalIndexUpdateServer -> {},
> Paclets -> PacletManager Version 1.0.2, TotalDownloads -> 0,
> DownloadsDirectory -> /home/kirkby/.Mathematica/Paclets/Repository}}]
In[2]:=
I'd like to see the value of exp(1.0), as that tends to change on different
platforms.
I think the build directory for would be useful, along with the current install
directory. There are certainly some issues that happen if the Sage install
directory is moved, with paths not being updated.
With Solaris on SPARC. it will be able to get the model number of the system -
at least to a certain degree. Machines like the Sun Blade 1000 and 2000 I own
have the same motherboard, so a 2000 displays itself as a 1000. There are a few
like that, but on the whole its possible to get the exact model, or at least
something which is very similar.
I suspect something that one can get easily on one platform may be very hard on
another.
That little memconf tools is cool. See on my system it know that one of the 2 GB
memory modules is made by Nanya Technology, and the other 5 by Micron. (I bought
the machine with 2 GB from Sun, and bought the other 10 GB at a lot less than
Sun wanted for RAM).
drkir...@hawk:~$ ./memconf
hostname: hawk
Sun Microsystems, Inc. Ultra 27 (Quad-Core Hyper-Threaded Intel(R) Xeon(R) W3580
3325MHz)
socket DIMM0: Micron 2048MB 18JSF25672AZ-1G4F1 DIMM, BANK0
socket DIMM1: Nanya Technology 2048MB NT2GC72B8PA0NF-CG DIMM, BANK1
socket DIMM2: Micron 2048MB 18JSF25672AZ-1G4F1 DIMM, BANK2
socket DIMM3: Micron 2048MB 18JSF25672AZ-1G4F1 DIMM, BANK3
socket DIMM4: Micron 2048MB 18JSF25672AZ-1G4F1 DIMM, BANK4
socket DIMM5: Micron 2048MB 18JSF25672AZ-1G4F1 DIMM, BANK5
empty memory sockets: None
total memory = 12288MB (12GB)
Dave
--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org