no install location 是no caller id怎么回事事

win7安装驱动出现找不到文件 - 漂泊浪子 - 博客园
&许久没有写文章了,今天写一篇吧,顺便记录一下get新技能。昨天要使用Mobile Device Power Monitor来测试个东西,结果连到电脑上,安装了软件。在安装驱动的时候,出现找不到指定文件:
各种折腾了半天,还是没搞定。在同事的电脑上可以识别,于是去同事那拷了usbser.sys到c:\windows\system32\drivers依然还是不行(我电脑上怎么没有这个文件?被卸载的时候删了?)为了找这个(系统找不到指定的文件),到底是哪个文件不行啊!今天又去控制面板-》管理工具-》事件查看器-》系统日志里翻了一下,只有这个:但是还是不知道0x2到底是啥意思啊!mchpcdc.inf也看了,没啥问题,里面就是要一个usbser.sys,再就是mchpcdc.cat。又去c:\windows\inf下翻,把文件按日期重新排序了一下,把最新的.inf,.pnf都干掉。重新安装驱动还是不行。这时注意到了两个文件setupapi.dev.log和setupapi.app.log,打开setupapi.dev.log,研究了一下,发现了!
&&& &[Device Install (DiShowUpdateDevice) - USB\VID_04D8&PID_FE23\5&2ADC6C57&0&4]
&&& &Section start
10:03:33.826
& & & cmd: "C:\windows\system32\mmc.exe" "C:\windows\system32\devmgmt.msc"
& & &dvi: {DIF_UPDATEDRIVER_UI} 10:03:33.826
& & &dvi: & & &No class installer for 'Mobile Device Power Monitor'
& & &dvi: & & &No CoInstallers found
& & &dvi: & & &Default installer: Enter 10:03:33.827
& & &dvi: & & &Default installer: Exit
& & &dvi: {DIF_UPDATEDRIVER_UI - exit(0xe000020e)} 10:03:33.827
& & &ndv: {Update Driver Software Wizard for USB\VID_04D8&PID_FE23\5&2ADC6C57&0&4}
& & &dvi: & & &Set selected driver complete.
& & &dvi: & & &{DIF_SELECTDEVICE} 10:03:40.860
& & &dvi: & & & & & Using exported function 'PortsClassInstaller' in module 'C:\windows\system32\MsPorts.Dll'.
& & &dvi: & & & & & Class installer == MsPorts.Dll,PortsClassInstaller
& & &dvi: & & & & & No CoInstallers found
& & &dvi: & & & & & Class installer: Enter 10:03:40.862
& & &dvi: & & & & & Class installer: Exit
& & &dvi: & & &{DIF_SELECTDEVICE - exit(0xe000020e)} 10:03:40.863
& & &inf: & & &{SetupCopyOEMInf: C:\windows\INF\oem16.inf} 10:03:59.517
& & &inf: & & & & & Driver Store location: C:\windows\System32\DriverStore\FileRepository\mchpcdc.inf_amd64_neutral_2ade53ce\mchpcdc.inf
& & &inf: & & & & & Published Inf Path: C:\windows\INF\oem16.inf
& & &inf: & & & & & Opened PNF: 'C:\windows\INF\oem16.inf' ([strings])
& & &inf: & & & & & Installing catalog mchpcdc.cat as: oem16.CAT
! & &inf: & & & & & Failed to install catalog - error ignored
! & &inf: & & & & & Error 2: The system cannot find the file specified. 这个错误估计可以忽略
& & &inf: & & & & & OEM source media location: C:\windows\INF\
& & &inf: & & &{SetupCopyOEMInf exit (0x)} 10:03:59.523
& & &dvi: & & &Searching for hardware ID(s):
& & &dvi: & & & & & usb\vid_04d8&pid_fe23&rev_0000
& & &dvi: & & & & & usb\vid_04d8&pid_fe23
& & &dvi: & & &Searching for compatible ID(s):
& & &dvi: & & & & & usb\class_02&subclass_02&prot_01
& & &dvi: & & & & & usb\class_02&subclass_02
& & &dvi: & & & & & usb\class_02
& & &inf: & & &Opened PNF: 'C:\windows\System32\DriverStore\FileRepository\mchpcdc.inf_amd64_neutral_2ade53ce\mchpcdc.inf' ([strings])
& & &sig: & & &{_VERIFY_FILE_SIGNATURE} 10:03:59.526
& & &sig: & & & & & Key & & &= mchpcdc.inf
& & &sig: & & & & & FilePath = C:\windows\System32\DriverStore\FileRepository\mchpcdc.inf_amd64_neutral_2ade53ce\mchpcdc.inf
& & &sig: & & & & & Catalog &= C:\windows\System32\DriverStore\FileRepository\mchpcdc.inf_amd64_neutral_2ade53ce\mchpcdc.cat
! & &sig: & & & & & Verifying file against specific (valid) catalog failed! (0x800b0109)&
! & &sig: & & & & & Error 0x800b0109: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.&这个错误估计可以忽略
& & &sig: & & &{_VERIFY_FILE_SIGNATURE exit(0x800b0109)} 10:03:59.532
& & &sig: & & &{_VERIFY_FILE_SIGNATURE} 10:03:59.532
& & &sig: & & & & & Key & & &= mchpcdc.inf
& & &sig: & & & & & FilePath = C:\windows\System32\DriverStore\FileRepository\mchpcdc.inf_amd64_neutral_2ade53ce\mchpcdc.inf
& & &sig: & & & & & Catalog &= C:\windows\System32\DriverStore\FileRepository\mchpcdc.inf_amd64_neutral_2ade53ce\mchpcdc.cat
& & &sig: & & & & & Success: File is signed in Authenticode(tm) catalog.
& & &sig: & & & & & Error 0xe0000241: The INF was signed with an Authenticode(tm) catalog from a trusted publisher.&这个错误估计可以忽略
& & &sig: & & &{_VERIFY_FILE_SIGNATURE exit(0xe0000241)} 10:03:59.550
& & &dvi: & & &Selected driver installs from section [DriverInstall] in 'c:\windows\system32\driverstore\filerepository\mchpcdc.inf_amd64_neutral_2ade53ce\mchpcdc.inf'.
& & &dvi: & & &Class GUID of device changed to: {4d36e978-e325-11ce-bfc1-0}.
& & &dvi: & & &{DIF_DESTROYPRIVATEDATA} 10:03:59.551
& & &dvi: & & & & & Class installer: Enter 10:03:59.551
& & &dvi: & & & & & Class installer: Exit
& & &dvi: & & & & & Default installer: Enter 10:03:59.552
& & &dvi: & & & & & Default installer: Exit
& & &dvi: & & &{DIF_DESTROYPRIVATEDATA - exit(0xe000020e)} 10:03:59.553
& & &dvi: & & &Set selected driver complete.
& & &dvi: & & &{Plug and Play Service: Device Install for USB\VID_04D8&PID_FE23\5&2ADC6C57&0&4}
& & &ump: & & & & & Creating Install Process: DrvInst.exe 10:03:59.569
& & &ndv: & & & & & Infpath=C:\windows\INF\oem16.inf
& & &ndv: & & & & & DriverNodeName=mchpcdc.inf:DeviceList.NTamd64:DriverInstall:16.20.34.438:usb\vid_04d8&pid_fe23
& & &ndv: & & & & & DriverStorepath=C:\windows\System32\DriverStore\FileRepository\mchpcdc.inf_amd64_neutral_2ade53ce\mchpcdc.inf
& & &ndv: & & & & & Building driver list from driver node strong name...
& & &dvi: & & & & & Searching for hardware ID(s):
& & &dvi: & & & & & & & &usb\vid_04d8&pid_fe23&rev_0000
& & &dvi: & & & & & & & &usb\vid_04d8&pid_fe23
& & &dvi: & & & & & Searching for compatible ID(s):
& & &dvi: & & & & & & & &usb\class_02&subclass_02&prot_01
& & &dvi: & & & & & & & &usb\class_02&subclass_02
& & &dvi: & & & & & & & &usb\class_02
& & &inf: & & & & & Opened PNF: 'C:\windows\System32\DriverStore\FileRepository\mchpcdc.inf_amd64_neutral_2ade53ce\mchpcdc.inf' ([strings])
& & &sig: & & & & & {_VERIFY_FILE_SIGNATURE} 10:03:59.591
& & &sig: & & & & & & & &Key & & &= mchpcdc.inf
& & &sig: & & & & & & & &FilePath = C:\windows\System32\DriverStore\FileRepository\mchpcdc.inf_amd64_neutral_2ade53ce\mchpcdc.inf
& & &sig: & & & & & & & &Catalog &= C:\windows\System32\DriverStore\FileRepository\mchpcdc.inf_amd64_neutral_2ade53ce\mchpcdc.cat
! & &sig: & & & & &&& & &Verifying file against specific (valid) catalog failed! (0x800b0109)
! & &sig: & & & & & & & &Error 0x800b0109: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.&这个错误估计可以忽略
& & &sig: & & & & & {_VERIFY_FILE_SIGNATURE exit(0x800b0109)} 10:03:59.622
& & &sig: & & & & & {_VERIFY_FILE_SIGNATURE} 10:03:59.622
& & &sig: & & & & & & & &Key & & &= mchpcdc.inf
& & &sig: & & & & & & & &FilePath = C:\windows\System32\DriverStore\FileRepository\mchpcdc.inf_amd64_neutral_2ade53ce\mchpcdc.inf
& & &sig: & & & & & & & &Catalog &= C:\windows\System32\DriverStore\FileRepository\mchpcdc.inf_amd64_neutral_2ade53ce\mchpcdc.cat
& & &sig: & & & & & & & &Success: File is signed in Authenticode(tm) catalog.
& & &sig: & & & & & & & &Error 0xe0000241: The INF was signed with an Authenticode(tm) catalog from a trusted publisher.这个错误估计可以忽略
& & &sig: & & & & & {_VERIFY_FILE_SIGNATURE exit(0xe0000241)} 10:03:59.644
& & &dvi: & & & & & Selected driver installs from section [DriverInstall] in 'c:\windows\system32\driverstore\filerepository\mchpcdc.inf_amd64_neutral_2ade53ce\mchpcdc.inf'.
& & &dvi: & & & & & Class GUID of device changed to: {4d36e978-e325-11ce-bfc1-0}.
& & &dvi: & & & & & Set selected driver complete.
& & &ndv: & & & & & {Core Device Install} 10:03:59.647
& & &inf: & & & & & & & &Opened PNF: 'C:\windows\INF\oem16.inf' ([strings])
& & &dvi: & & & & & & & &{DIF_ALLOW_INSTALL} 10:03:59.653
& & &dvi: & & & & & & & & & & Using exported function 'PortsClassInstaller' in module 'C:\windows\system32\MsPorts.Dll'.
& & &dvi: & & & & & & & & & & Class installer == MsPorts.Dll,PortsClassInstaller
& & &dvi: & & & & & & & & & & No CoInstallers found
& & &dvi: & & & & & & & & & & Class installer: Enter 10:03:59.656
& & &dvi: & & & & & & & & & & Class installer: Exit
& & &dvi: & & & & & & & & & & Default installer: Enter 10:03:59.656
& & &dvi: & & & & & & & & & & Default installer: Exit
& & &dvi: & & & & & & & &{DIF_ALLOW_INSTALL - exit(0xe000020e)} 10:03:59.657
& & &ndv: & & & & & & & &Installing files...
& & &dvi: & & & & & & & &{DIF_INSTALLDEVICEFILES} 10:03:59.658
& & &dvi: & & & & & & & & & & Class installer: Enter 10:03:59.658
& & &dvi: & & & & & & & & & & Class installer: Exit
& & &dvi: & & & & & & & & & & Default installer: Enter 10:03:59.659
& & &dvi: & & & & & & & & & & & & &{Install FILES}
& & &inf: & & & & & & & & & & & & & & & Opened PNF: 'c:\windows\system32\driverstore\filerepository\mchpcdc.inf_amd64_neutral_2ade53ce\mchpcdc.inf' ([strings])
& & &inf: & & & & & & & & & & & & & & & Opened PNF: 'C:\windows\INF\mdmcpq.inf' ([strings])
& & &inf: & & & & & & & & & & & & & & & {Install Inf Section [DriverInstall.NTAMD64]}
& & &inf: & & & & & & & & & & & & & & & & & &CopyFiles=DriverCopyFiles.NTamd64 &(mchpcdc.inf line 55)
& & &cpy: & & & & & & & & & & & & & & & & & &Open PnpLockdownPolicy: Err=2. This is OK. Use LockDownPolicyDefault
& & &flq: & & & & & & & & & & & & & & & & & &QueueSingleCopy...
& & &flq: & & & & & & & & & & & & & & & & & &Inf & & : 'c:\windows\system32\driverstore\filerepository\mchpcdc.inf_amd64_neutral_2ade53ce\mchpcdc.inf'
& & &flq: & & & & & & & & & & & & & & & & & &SourceInf: 'C:\windows\INF\mdmcpq.inf'
& & &flq: & & & & & & & & & & & & & & & & & &SourceSection: [sourcedisksfiles]
& & &flq: & & & & & & & & & & & & & & & & & &Source root path based on SourceInf
& & &flq: & & & & & & & & & & & & & & & & & &SourceRootPath: 'C:\windows\System32\DriverStore\FileRepository\mdmcpq.inf_amd64_neutral_fbc4a14a6a13d0c8'
& & &flq: & & & & & & & & & & & & & & & & & &{FILE_QUEUE_COPY}
& & &flq: & & & & & & & & & & & & & & & & & & & & CopyStyle & & &- 0x
& & &flq: & & & & & & & & & & & & & & & & & & & & {FILE_QUEUE_COPY}
& & &flq: & & & & & & & & & & & & & & & & & & & & & & &CopyStyle & & &- 0x
& & &flq: & & & & & & & & & & & & & & & & & & & & & & &SourceRootPath - 'C:\windows\System32\DriverStore\FileRepository\mdmcpq.inf_amd64_neutral_fbc4a14a6a13d0c8'
& & &flq: & & & & & & & & & & & & & & & & & & & & & & &SourceFilename - 'usbser.sys'
& & &flq: & & & & & & & & & & & & & & & & & & & & & & &TargetDirectory- 'C:\windows\system32\DRIVERS'
& & &flq: & & & & & & & & & & & & & & & & & & & & & & &TargetFilename - 'usbser.sys'
& & &flq: & & & & & & & & & & & & & & & & & & & & & & &SourceDesc & & - 'windows cd'
& & &flq: & & & & & & & & & & & & & & & & & & & & {FILE_QUEUE_COPY exit(0x)}
& & &flq: & & & & & & & & & & & & & & & & & &{FILE_QUEUE_COPY exit(0x)}
& & &inf: & & & & & & & & & & & & & & & {Install Inf Section [DriverInstall.NTAMD64] exit (0x)}
& & &dvi: & & & & & & & & & & & & & & & Processing co-installer registration section [DriverInstall.NTAMD64.CoInstallers].
& & &inf: & & & & & & & & & & & & & & & {Install Inf Section [DriverInstall.NTAMD64.CoInstallers]}
& & &inf: & & & & & & & & & & & & & & & {Install Inf Section [DriverInstall.NTAMD64.CoInstallers] exit (0x)}
& & &dvi: & & & & & & & & & & & & & & & Co-installers registered.
& & &dvi: & & & & & & & & & & & & & & & {Install INTERFACES}
& & &dvi: & & & & & & & & & & & & & & & & & &Installing section [DriverInstall.NTAMD64.Interfaces]
& & &dvi: & & & & & & & & & & & & & & & {Install INTERFACES exit }
& & &dvi: & & & & & & & & & & & & &{Install FILES exit (0x)}
& & &dvi: & & & & & & & & & & Default installer: Exit
& & &dvi: & & & & & & & &{DIF_INSTALLDEVICEFILES - exit(0x)} 10:03:59.672
& & &ndv: & & & & & & & &Pruning file queue...
& & &dvi: & & & & & & & &{_SCAN_FILE_QUEUE}
& & &flq: & & & & & & & & & & ScanQ flags=620
& & &flq: & & & & & & & & & & & & &SPQ_SCAN_PRUNE_COPY_QUEUE
& & &flq: & & & & & & & & & & & & &SPQ_SCAN_FILE_COMPARISON
& & &flq: & & & & & & & & & & & & &SPQ_SCAN_ACTIVATE_DRP
& & &flq: & & & & & & & & & & ScanQ number of copy nodes=1
& & &flq: & & & & & & & & & & ScanQ action=200 DoPruning=32
& & &flq: & & & & & & & & & & ScanQ end Validity flags=620 CopyNodes=1
& & &dvi: & & & & & & & &{_SCAN_FILE_QUEUE exit(0, 0x)}
& & &ndv: & & & & & & & &Committing file queue...
& & &flq: & & & & & & & &{_commit_file_queue}
& & &flq: & & & & & & & & & & CommitQ DelNodes=0 RenNodes=0 CopyNodes=1
& & &flq: & & & & & & & & & & {SPFILENOTIFY_STARTQUEUE}
& & &flq: & & & & & & & & & & {SPFILENOTIFY_STARTQUEUE - exit(0x)}
& & &flq: & & & & & & & & & & {_commit_copy_subqueue}
& & &flq: & & & & & & & & & & & & &subqueue count=1
& & &flq: & & & & & & & & & & & & &{SPFILENOTIFY_STARTSUBQUEUE}
& & &flq: & & & & & & & & & & & & &{SPFILENOTIFY_STARTSUBQUEUE - exit(0x)}
& & &flq: & & & & & & & & & & & & &source media:
& & &flq: & & & & & & & & & & & & & & &&Description &- [windows cd]
& & &flq: & & & & & & & & & & & & & & & SourcePath & -[C:\windows\System32\DriverStore\FileRepository\mdmcpq.inf_amd64_neutral_fbc4a14a6a13d0c8]
& & &flq: & & & & & & & & & & & & & & & SourceFile & - [usbser.sys]
& & &flq: & & & & & & & & & & & & & & & Flags & & & &- 0x
& & &flq: & & & & & & & & & & & & &{SPFQNOTIFY_NEEDMEDIA}
& & &flq: & & & & & & & & & & & & & & & {SPFILENOTIFY_NEEDMEDIA}
& & &flq: & & & & & & & & & & & & & & & {SPFILENOTIFY_NEEDMEDIA - exit(0x)}
& & &flq: & & & & & & & & & & & & &{SPFQNOTIFY_NEEDMEDIA - returned 0x}
!!! &flq: & & & & & & & & & & & & &source media: SPFQOPERATION_ABORT.
!!! &flq: & & & & & & & & & & & & &Error 2: The system cannot find the file specified. &问题来了!这个就是那个找不到的文件
& & &flq: & & & & & & & & & & {_commit_copy_subqueue exit(0x)}
!!! &flq: & & & & & & & & & & FileQueueCommit aborting!
!!! &flq: & & & & & & & & & & Error 2: The system cannot find the file specified.
& & &flq: & & & & & & & & & & {SPFILENOTIFY_ENDQUEUE}
& & &flq: & & & & & & & & & & {SPFILENOTIFY_ENDQUEUE - exit(0x)}
& & &flq: & & & & & & & &{_commit_file_queue exit(0x)}
& & &ndv: & & & & & & & &Device install status=0x
& & &ndv: & & & & & & & &Performing device install final cleanup...
! & &ndv: & & & & & & & &Queueing up error report since device installation failed...
& & &ndv: & & & & & {Core Device Install - exit(0x)} 10:03:59.684
& & &dvi: & & & & & {DIF_DESTROYPRIVATEDATA} 10:03:59.684
& & &dvi: & & & & & & & &Class installer: Enter 10:03:59.684
& & &dvi: & & & & & & & &Class installer: Exit
& & &dvi: & & & & & & & &Default installer: Enter 10:03:59.685
& & &dvi: & & & & & & & &Default installer: Exit
& & &dvi: & & & & & {DIF_DESTROYPRIVATEDATA - exit(0xe000020e)} 10:03:59.685
& & &ump: & & & & & Server install process exited with code 0x:03:59.691
& & &ump: & & &{Plug and Play Service: Device Install exit()}
& & &ndv: & & &Device Install failed for new device...installing NULL driver.
& & &dvi: & & &{Plug and Play Service: Device Install for USB\VID_04D8&PID_FE23\5&2ADC6C57&0&4}
& & &ump: & & & & & Creating Install Process: DrvInst.exe 10:03:59.713
! & &ndv: & & & & & Installing NULL driver!
& & &dvi: & & & & & Set selected driver complete.
& & &dvi: & & & & & {DIF_ALLOW_INSTALL} 10:03:59.730
& & &dvi: & & & & & & & &No class installer for 'Mobile Device Power Monitor'
& & &dvi: & & & & & & & &No CoInstallers found
& & &dvi: & & & & & & & &Default installer: Enter 10:03:59.731
& & &dvi: & & & & & & & &Default installer: Exit
& & &dvi: & & & & & {DIF_ALLOW_INSTALL - exit(0xe000020e)} 10:03:59.731
& & &dvi: & & & & & {DIF_INSTALLDEVICE} 10:03:59.731
& & &dvi: & & & & & & & &No class installer for 'Mobile Device Power Monitor'
& & &dvi: & & & & & & & &Default installer: Enter 10:03:59.732
! & &dvi: & & & & & & & & & & Installing NULL driver!
& & &dvi: & & & & & & & & & & Writing common driver property settings.
& & &dvi: & & & & & & & & & & {Restarting Devices} 10:03:59.770
& & &dvi: & & & & & & & & & & & & &Restart: USB\VID_04D8&PID_FE23\5&2ADC6C57&0&4
& & &dvi: & & & & & & & & & & & & &Restart complete.
& & &dvi: & & & & & & & & & & {Restarting Devices exit} 10:03:59.780
& & &dvi: & & & & & & & &Default installer: Exit
& & &dvi: & & & & & {DIF_INSTALLDEVICE - exit(0x)} 10:03:59.781
& & &ump: & & & & & Server install process exited with code 0x:03:59.783
& & &ump: & & &{Plug and Play Service: Device Install exit()}
& & &ndv: {Update Driver Software Wizard exit()}
&&& &Section end
10:07:12.485
&&& &[Exit status: FAILURE(0x)]
原来是要把usbser.sys放到C:\windows\System32\DriverStore\FileRepository\mdmcpq.inf_amd64_neutral_fbc4a14a6a13d0c8才可以!我的电脑居然没有&C:\windows\System32\DriverStore\FileRepository\mdmcpq.inf_amd64_neutral_fbc4a14a6a13d0c8这个目录,在文件夹FileRepository右键取得管理员权限,mdmcpq.inf_amd64_neutral_fbc4a14a6a13d0c8,再取得这个目录的管理员权限,放入usbser.sys,重新装一下驱动,搞定!折腾了半天终于好了啊!!!!!&go - Golang: Installation directory error? - Stack Overflow
Join the Stack Overflow Community
Stack Overflow is a community of 6.9 million programmers, just like you, helping each other.
J it only takes a minute:
I have the error:
go install: no install location for directory /Users/xwilly/Dropbox/go/project/src outside GOPATH
I'm using go version 1.1 on OS X.
I can build & run but can't install packages.
My environment:
GOPATH=/Users/xwilly/Dropbox/go/project
PATH=/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/go/bin:/Users/xwilly/Dropbox/go/project/bin
Project tree:
/Users/xwilly/Dropbox/go/project
I can build without error:
..:src xwilly$ go build test.go
..:src xwilly$ go install test.go
go install: no install location for directory /Users/xwilly/Dropbox/go/project/src outside GOPATH
Here is a simple example:
xwilly$ cat test.go
package main
func main() {
fmt.Println("Bonjour")
xwilly$ go run test.go
xwilly$ go install test.go
go install: no install location for directory /Users/xwilly/Dropbox/go/project/src/learning outside GOPATH
13.6k62251
Each directory listed in GOPATH must have a prescribed structure:
The src/ directory holds source code. The path below 'src' determines
the import path or executable name.
The pkg/ directory holds installed package objects. As in the Go tree,
each target operating system and architecture pair has its own
subdirectory of pkg (pkg/GOOS_GOARCH).
If DIR is a directory listed in the GOPATH, a package with source in
DIR/src/foo/bar can be imported as "foo/bar" and has its compiled form
installed to "DIR/pkg/GOOS_GOARCH/foo/bar.a".
The bin/ directory holds compiled commands. Each command is named for
its source directory, but only the final element, not the entire path.
That is, the command with source in DIR/src/foo/quux is installed into
DIR/bin/quux, not DIR/bin/foo/quux. The foo/ is stripped so that you
can add DIR/bin to your PATH to get at the installed commands. If the
GOBIN environment variable is set, commands are installed to the
directory it names instead of DIR/bin.
Here's an example directory layout:
GOPATH=/home/user/gocode
/home/user/gocode/
(go code in package bar)
(go code in package main)
(installed command)
linux_amd64/
(installed package object)
Your directory structure is wrong. You are trying to install a command (package main). It should be in a source directory named after your command. See the quux command above.
In your case, assume your command is going to be named billy.
$ mkdir -p /Users/xwilly/Dropbox/go/project/src/billy
which is inside your GOPATH. Move your test.go file to this directory. Run
$ go install billy
The command billy should, unless you have set GOBIN, be installed in the
/Users/xwilly/Dropbox/go/project/bin
directory inside your GOPATH, which should be in your PATH.
55.6k6105124
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
rev .25534
Stack Overflow works best with JavaScript enabled

我要回帖

更多关于 installlocation 的文章

 

随机推荐