ecosys
asked on
'lib' is not recognized as an internal or external command
Hi-
When trying to perform the following command :
C:\Documents and Settings\administrator>lib -NOLOGO -LIST e:/oracle/prodappl/ad/11.5 .0/lib/ads t.lib
I recieved an error: 'lib' is not recognized as an internal or external command, operable program or batch file.
I've installed the MS C++ ToolKit 2003 on the D:\MSC++tookkit folder on that machine, but still getting that error message.
when running that command. Is the path not set correctly on the machine? if not anyone know where is the path for 'lib' should be?
Thanks
When trying to perform the following command :
C:\Documents and Settings\administrator>lib
I recieved an error: 'lib' is not recognized as an internal or external command, operable program or batch file.
I've installed the MS C++ ToolKit 2003 on the D:\MSC++tookkit folder on that machine, but still getting that error message.
when running that command. Is the path not set correctly on the machine? if not anyone know where is the path for 'lib' should be?
Thanks
You need to execute the vcvars32.bat from the installation folder of the ToolKit 2003, which will set the PATH environment variable accordingly.
ASKER
Thanks jkr, for the quick response.
I've executed the the vcvars32.bat from commmand prompted, any idea what is the command/string to set the path for 'lib'?
I've executed the the vcvars32.bat from commmand prompted, any idea what is the command/string to set the path for 'lib'?
Open the .bat file in an editor. It is generated during the installation and should set the appropriate PATH environment. Usually, it is an expression like
set PATH=%PATH%;c:\[Path to your installation]\bin
set PATH=%PATH%;c:\[Path to your installation]\bin
ASKER
Opened the .bat file with an editor and it seem to be correct:
@echo off
Set PATH=D:\MSC++ToolKit2003\b in;%PATH%
Set INCLUDE=D:\MSC++ToolKit200 3\include; %INCLUDE%
Set LIB=D:\MSC++ToolKit2003\li b;%LIB%
echo Setting environment for using Microsoft Visual C++ 2003 Toolkit.
echo (If you have another version of Visual Studio or Visual C++ installed and wish
echo to use its tools from the command line, run vcvars32.bat for that version.)
echo.
echo Thank you for choosing the Visual C++ Toolkit 2003! Get started quickly by
echo building the code samples included in the "Samples" directory. Each sample
echo includes a short whitepaper discussing the Visual C++ features, and a batch
echo file for building the code.
echo.
echo Type "cl /?" for brief documentation on compiler options.
echo.
echo Visit http://msdn.microsoft.com/visualc/using/documentation/default.aspx for
echo complete compiler documentation.
@echo off
Set PATH=D:\MSC++ToolKit2003\b
Set INCLUDE=D:\MSC++ToolKit200
Set LIB=D:\MSC++ToolKit2003\li
echo Setting environment for using Microsoft Visual C++ 2003 Toolkit.
echo (If you have another version of Visual Studio or Visual C++ installed and wish
echo to use its tools from the command line, run vcvars32.bat for that version.)
echo.
echo Thank you for choosing the Visual C++ Toolkit 2003! Get started quickly by
echo building the code samples included in the "Samples" directory. Each sample
echo includes a short whitepaper discussing the Visual C++ features, and a batch
echo file for building the code.
echo.
echo Type "cl /?" for brief documentation on compiler options.
echo.
echo Visit http://msdn.microsoft.com/visualc/using/documentation/default.aspx for
echo complete compiler documentation.
ASKER
Even when I went on the server and type this:
D:\MSC++ToolKit2003\bin>li b
I would get
'lib' is not recognized as an internal or external command, operable proggram or batch file
D:\MSC++ToolKit2003\bin>li
I would get
'lib' is not recognized as an internal or external command, operable proggram or batch file
That's odd. Is 'lib.exe' located in that directory at all?
ASKER
nope, i don't see 'lib.exe' anywhere on the server.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thanks again jkr,
The Platform SDK is 398.5mb of downloading. Do you know of a better way? to get lib.exe?
The Platform SDK is 398.5mb of downloading. Do you know of a better way? to get lib.exe?
No legal one, sorry.
ASKER
jkr,
I went and downloaded as suggested.
I now found the 'lib.exe' under D:\Program Files\Microsoft Platform SDK\Bin\win64
Does it matter that it is located under win64 folder? we don't have a 64 bit processor.
I went and downloaded as suggested.
I now found the 'lib.exe' under D:\Program Files\Microsoft Platform SDK\Bin\win64
Does it matter that it is located under win64 folder? we don't have a 64 bit processor.
Argh, that's bad, this is the 64bit version. Hm, I think I misunderstood your Q, let me clarify: You have the Toolkit (i.e. the command line tools) or the Express Edition?
ASKER
I moved the D:\Program Files\Microsoft Platform SDK\Bin\win64\*.* to the D:\MSC++ToolKit2003\Bin\ folder on the server, as advised on http://wiki.tcl.tk/11431 it appears to be working.
Thanks jkl
Thanks jkl