Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2193
  • Last Modified:

'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/adst.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
0
ecosys
Asked:
ecosys
  • 7
  • 6
1 Solution
 
jkrCommented:
You need to execute the vcvars32.bat from the installation folder of the ToolKit 2003, which will set the PATH environment variable accordingly.
0
 
ecosysAuthor Commented:
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'?


0
 
jkrCommented:
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

0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
ecosysAuthor Commented:
Opened the .bat file with an editor and it seem to be correct:

@echo off

Set PATH=D:\MSC++ToolKit2003\bin;%PATH%
Set INCLUDE=D:\MSC++ToolKit2003\include;%INCLUDE%
Set LIB=D:\MSC++ToolKit2003\lib;%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.
0
 
ecosysAuthor Commented:
Even when I went on the server and type this:
 D:\MSC++ToolKit2003\bin>lib

I would get
'lib' is not recognized as an internal or external command, operable proggram or batch file
0
 
jkrCommented:
That's odd. Is 'lib.exe' located in that directory at all?
0
 
ecosysAuthor Commented:
nope, i don't see 'lib.exe' anywhere on the server.  
0
 
jkrCommented:
Well, then the error message is not really surprising ;o)

IIRC, the binary should come with the Platform SDK - get a copy from http://support.microsoft.com/default.aspx?pr=psdk
0
 
ecosysAuthor Commented:
Thanks again jkr,

The Platform SDK is 398.5mb of downloading.  Do you know of a better way? to get lib.exe?


0
 
jkrCommented:
No legal one, sorry.
0
 
ecosysAuthor Commented:
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.
0
 
jkrCommented:
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?
0
 
ecosysAuthor Commented:
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
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 7
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now