cannot write to this folder permission denied issue

hi i am getting this error. can anyone help resolve this.
>> mcc -W cpplib:libdetecttext -T link:lib anisodiff.m AspectRatio_Height_filter.m ConvHull2D.m decolorize.m detectText.m fillSmallHoles.m findEdges.m findLetter.m findMSERs.m findSWT.m formBoundingBox.m formHorizontalBoundingBox.m formTextLines.m formWordList.m genLetterPairs.m getOrientedSize.m horizontalLineClustering.m imclose_internal.m MSER_thinning.m MSER_widthFilter.m myCanny.m preprocessImage.m pruneMSERs.m removeBoundaryBoundingBoxes.m removeBoundingBoxes.m removeOverlappingRegions.m separateWords.m templateMatching.m -v
You do not have write permission in the output directory:
'/home/bamidele/matlab/bin'.
??? Error using ==> mcc
Error executing mcc, return status = 1 (0x1).

 Respuesta aceptada

Kaustubha Govind
Kaustubha Govind el 9 de Mzo. de 2011

0 votos

Are you running this command from inside a MATLAB directory (ie. where MATLAB is installed)? Try from a different location, such as your home directory.

4 comentarios

I had a similar problem. Your ans was simple and spot on. I hadn't noticed that ML booted to my \program files\... \matlab folder.Thx
Christopher
Christopher el 2 de Abr. de 2016
Why does the run location matter? This shouldn't be an issue so long as all the pathing parameters are absolute.
However, the user's paths were not absolute, they were relative, and they did not specify an output directory. The current directory was used, but the user's current directory could not be written to.
It is also possible that temporary or partial files needed to be created. The de facto standard for toolchains is that when partial results are to be created, that they are created relative to the current directory unless the command line directs otherwise. This arrangement allows for edit / compile cycles where errors might appear in one or more files, and it would be inefficient to require that all of the files be reprocessed.
Christopher
Christopher el 4 de Abr. de 2016
Ah, I see the lack of absolute pathing now. I missed that the first time around.
I'd disagree that the de factor for temporary files would be the working directory though. The de facto for temporary file locations should be the temporary directory of your system (i.e. %TEMP% or /tmp/).

Iniciar sesión para comentar.

Más respuestas (2)

ade bamidele
ade bamidele el 9 de Mzo. de 2011

0 votos

hi,
i installed matlab to /home/me/matlab
when i load matlab it goes to this directory.
i have cd to /home/me/workspace instead and run the mcc command with the same issue.
ade bamidele
ade bamidele el 9 de Mzo. de 2011

0 votos

problem was solved with sudo chown -R ${USER}:${USER} ~/.matlab

1 comentario

Dekang
Dekang el 29 de Oct. de 2024
could you please provide more details? I have tried sudo and it says undefined function.

Iniciar sesión para comentar.

Categorías

Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.

Preguntada:

el 9 de Mzo. de 2011

Comentada:

el 29 de Oct. de 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by