473,387 Members | 1,687 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to copy Symbolic link from linux to Windows

Hello Friends
I had built a library on Linux.
Now i want to copy the lib folder containing symbolic links to windows.
but when i copied those to windows each link is getting exactly the same memory as the original one.
For Example:
On Linux
lrwxrwxrwx 1 msingh named 18 Mar 14 16:58 libicudata.so -> libicudata.so.
36.0
lrwxrwxrwx 1 msingh named 18 Mar 14 16:58 libicudata.so.36 -> libicudata.
so.36.0
-rw-r--r-- 1 msingh named 10153924 Mar 14 16:58 libicudata.so.36.0

On Windows
-rwx------+ 1 msingh ???????? 10153924 Mar 14 16:58 libicudata.so
-rwx------+ 1 msingh ???????? 10153924 Mar 14 16:58 libicudata.so.36
-rwx------+ 1 msingh ???????? 10153924 Mar 14 16:58 libicudata.so.36.0

How can i rectify this problem.
Mar 21 '07 #1
8 17865
Motoma
3,237 Expert 2GB
This is the way it was intended to work. Windows doesn't support the use of symbolic links for files. If you are using a program such as FTP, instead of copying the link, the program will read the file (as symlinks are supposed to behave) and correctly upload the file it points to.
I may have a way to work around this, however, I would need to know more information about your usage of Windows and Linux, the programs you are using, and the reasons for copying the symlink itself.
Mar 21 '07 #2
This is the way it was intended to work. Windows doesn't support the use of symbolic links for files. If you are using a program such as FTP, instead of copying the link, the program will read the file (as symlinks are supposed to behave) and correctly upload the file it points to.
I may have a way to work around this, however, I would need to know more information about your usage of Windows and Linux, the programs you are using, and the reasons for copying the symlink itself.

Hello Motoma
I am aware of the fact that windows doesn't support Symbolic links.
Actually I had built a ICU (International component for Unicode) library on linux as well as on windows.
But now i have to provide a directory for distribution to all platforms.
In that case i need to copy the lib folder from linux to windows to make that directory(for distribution) a full fledge one.
But it is not copying the link as it is as it was in linux.
if you have some solution.. then please let me know.
I have searched all through the net but i am getting only one answer that it doesn't support.
Mar 22 '07 #3
Motoma
3,237 Expert 2GB
One solution would be to copy the actual file that the link is pointing to.

Hello Motoma
I am aware of the fact that windows doesn't support Symbolic links.
Actually I had built a ICU (International component for Unicode) library on linux as well as on windows.
But now i have to provide a directory for distribution to all platforms.
In that case i need to copy the lib folder from linux to windows to make that directory(for distribution) a full fledge one.
But it is not copying the link as it is as it was in linux.
if you have some solution.. then please let me know.
I have searched all through the net but i am getting only one answer that it doesn't support.
Mar 23 '07 #4
One solution would be to copy the actual file that the link is pointing to.
Hi Motoma
Are you aware of any other solution for the problem of copying symbolic links from linux to windows.
If yes than please let me know.

~Mini Singh
Apr 19 '07 #5
Motoma
3,237 Expert 2GB
I might be able to help more if you elaborate on the setup of your machine(s). Where is the windows partition in relation to the linux partition? Are they in the same machine? Are you using a system such as SMB or NFS to mount the partition, or are you using a tool such as FTP to place the files on the windows partition?
Apr 19 '07 #6
I might be able to help more if you elaborate on the setup of your machine(s). Where is the windows partition in relation to the linux partition? Are they in the same machine? Are you using a system such as SMB or NFS to mount the partition, or are you using a tool such as FTP to place the files on the windows partition?
Linux Partition is not on the same machine.My login is mounted on linux.I connect to that machine through my login.i.e i am using NFS to mount the partiton.
Now after building that library on linux i need to copy the lib folders from 'Linux to Windows and here the problem arises.

If you need more explanation then let me know.
Apr 20 '07 #7
Motoma
3,237 Expert 2GB
You will not be able to create symbolic links on your Windows partition. You will have to deal with three copies of the file, or change your files to link against the original.

I am curious, what libraries are these, and what are you trying to accomplish by putting them on a Windows partition? Surely you will not be able to compile against them from Windows, and if you are merely trying to move them while preserving the structure you could use tar which will preserve the symlinks.
Apr 20 '07 #8
anaser
1
hello Motoma,

can you help me about following problem-



I am trying to compile openoffice.org in windows. I am using cygwin. When I give ./configure command then following message displayed-


************************************************** ******************
* *
* OpenOffice.org build configuration. *
* *
* The configure process checks your platform to see whether *
* you can build OpenOffice.org on it. *
* This process checks all pre-requisites and generates a file *
* containing the necessary environment variables. *
* Source this file after configure has ended successfully. *
* *
* Any warning that is generated during the configure process *
* must be taken into account since it can be a reason for *
* an unsuccessful build of OpenOffice.org *
* *
************************************************** ******************

************************************************** ******************
* *
* Checking the platform pre-requisites. *
* *
************************************************** ******************

checking for egrep... grep -E
checking for gawk... gawk
checking for gawk... /usr/bin/gawk
checking for sed... /usr/bin/sed
checking for solenv environment... default
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-cygwin
cygwin
checking Cygwin version... 1.7.5(0.225/5/3)
checking whether to enable crashdump feature... no
checking whether to use the standard non-optimizing compiler... no
checking whether to turn warnings to errors... no
checking whether to do a debug build... no
checking whether to build with additional debug utilities... no, full product bu
ild
checking whether to include symbols into final build... no
checking whether to strip the solver or not.... checking whether to enable nativ
e CUPS support... no
checking whether to enable fontconfig support... no
checking whether to enable filters for legacy binary file formats (StarOffice 5.
2)... yes
checking whether to use DirectX... yes
checking whether to use ActiveX... yes
checking whether to use ATL... yes
checking whether to use RPATH in shared libraries... yes
checking whether to include MySpell dictionaries... yes
checking which shell to use... configure: error: /usr/bin/gawk, awk, tar or gunz
ip is a cygwin symlink!
Native windows programs cannot use cygwin symlinks. Remove the symbolic
link, and copy the program to the name of the link.

------------------------------------------------------------------------

I found several solution in net and already implemented all but still facing the problem.

For example::I triyed with

cd /bin
rm awk.exe
cp gawk.exe awk.exe

and also for

gzip.exe / gunzip.exe;

For tar when I am running-

$ ls -l /bin/tar.exe

it shows-

-rwxr-xr-x 1 Naser root 317454 2010-06-29 18:48 /bin/tar.exe

followings are also installed-

Archive::Zip
XML::Parser
URI
LWP::UserAgent
Crypt::SSLeay
SOAP::Lite


I get stacked with the above error, please help me.



thanks.
Aug 12 '10 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Khue Pham | last post by:
Does anyone knows how to copy database from one server to another. By copying I mean literally everything, not just the database. I know we can dump the database from one server then reload it to...
1
by: chris kittell | last post by:
Hi All, on db2 v8.1 for linux 32 bit redhat 7.3, when installing fixpak6,it's overwriting the symbolic link that I defined for the install directory, and proceeding to fill up my root partition....
1
by: solarin | last post by:
Hi, I've developed a program under VS 6.0. I can compile it and run it, but when I try to debbug , all my breakpoints are dissabled and I can see the following messages: Loaded...
3
by: TK | last post by:
Hi, how can I check wether a file a symbolic link is? Thanks for help. o-o Thomas
4
by: TK | last post by:
Hi, I have to know whether a typical file (under Linux) a symbolic link is (in the sense of the stat()-Funktion). How can I check it excactly? Thanks for help. o-o THomas
1
by: Remote_User | last post by:
Hi All, .NET 1.1 doesn't support creating symbolic links to files, like in Linux? Can i use C# to make a file point to another file? Thanks.
1
by: Remote_User | last post by:
Hi All, I am using .NET FW 1.1. Trying to create symbolic link(like in Linux)/file shortcut in the Windows sense across files programmaticaly using C#, could someone give me an idea if this...
1
by: amygrant1701 | last post by:
Hi, I've done this before so I don't see what I could doing wrong here. I'm running mysql 5x on freebsd. I'm using the default data directory of "/var/db/mysql" In there I have several dozen...
1
by: sora | last post by:
Hi, I've developed a MFC program under VS 6.0. My debugger *was* working fine and I've used it often for my project. Then, one day, the errors below appear and they prevent me from using the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.